© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
13 replies
TheBrambleShark

Blazor - Identity Scaffolding Fails

Hi all, trying to scaffold identity into a blazor app. I have an
AuthDbContext
AuthDbContext
that looks like this
public sealed class AuthDbContext(DbContextOptions<AuthDbContext> options)
  : IdentityDbContext<IdentityUser>(options);
public sealed class AuthDbContext(DbContextOptions<AuthDbContext> options)
  : IdentityDbContext<IdentityUser>(options);


When in the scaffolding wizard, I select this db context. It works up to a point, but then I get an exception popup from Visual Studio:
---------------------------
Microsoft Visual Studio
---------------------------
Error

There was an error running the selected code generator:

'value cannot be null or empty

Parameter name: projectRelativePath'
---------------------------
OK   
---------------------------
---------------------------
Microsoft Visual Studio
---------------------------
Error

There was an error running the selected code generator:

'value cannot be null or empty

Parameter name: projectRelativePath'
---------------------------
OK   
---------------------------

Googling this issue doesn't find me any results for this particular error. Any ideas?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Blazor Server - scaffolding Identity error
C#CC# / help
3y ago
Help scaffolding Identity?
C#CC# / help
3y ago
identity blazor
C#CC# / help
2y ago
❔ Blazor and Auth - Identity
C#CC# / help
3y ago