-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scaffolding exceptions for Blazor Web App #2694
Comments
I'm facing the same issue. |
@Ksdmg: Do you found a solution? I have the same issuce in .NET 8.0 |
I ran into this issue today.
|
Hello, yes i found yesterday a workaround for me. It did not work for me directly in Visual Stuido. But when i run in project folder with cmd |
I have a IDesignTimeDbContextFactory, that creates a DbContext. I have checked this by launching a debugger during scaffolding. When the IDesignTimeDbContextFactory returns the DbContext, I still get:
Is there any more information on this error? What is the Parameter 'path'? |
In the very latest VS, with all updates, in my project I have tried:
There is no information anywhere to be found. |
The App.razor file must exist in order for scaffolding to work. I am not using the App.razor file, therefore I removed it. Adding it back into the project makes the scaffolding operation complete without error. |
File a bug
Include your code
Steps to reproduce are basic use of the scaffolder without any custom code ...
Exception
Include stack traces
Stack Trace:
Result
It seems like the scaffolder is working. The
EnableAuthenticator
component is present. However, I only ask for theEnableAuthenticator
component, but the scaffolder is giving the app all of them ...Anyway ... kill the app and restart it ... here is the next exception during migrations on first run ...
I then killed the app and restarted it again ... everything seems to work. I'm able to register a test user, sign them in, and access the authenticator page ...
Include provider and version information
Microsoft.VisualStudio.Web.CodeGeneration.Design/Microsoft.DotNet.MSIdentity version: 8.0.2
Target framework: .NET 8.0
Operating system: Windows
IDE: Visual Studio 17.10.0 Preview 1.0
The text was updated successfully, but these errors were encountered: