Adding Blazor Identity to existing Blazer project fails with a 'null path' exception

kodo65 0 Reputation points
2024-12-18T11:16:39.07+00:00

Hi!

I have the following:

  • .Net SDK 9
  • Visual Studio Community 2022 v 17.12.3
  • Windows v10.0.19044
  • Blazer Server App

When I try to add the Blazor Identity "scaffolding" I get a "There was an error running the selected code generator: 'Value cannot be null. (Parameter 'path'). I can see that some of the EF-framework assemblies and SQLite-engine was installed but nothing else. Is there a solution to this?

Cheers

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,636 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,307 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,152 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kodo65 0 Reputation points
    2024-12-18T14:07:56.0233333+00:00

    I performed exactly the same steps as you with the exception I selected SQLite as I want this to be a bundled solution without relying on the SQLServer (Windows) service. The target system will be run on Linux which means I need to keep the dependencies in Windows components to a minimum. I thought that relying on SQLite would make my solution "more cross platform". Is this correct?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.