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
blazor wasm project deployed with error #43738
Comments
only reference:
|
I have found it's caused by PublishTrimmed, it's ok for everything is default, but if publish with trimmed and link, will get this error
|
now I remove PublishTrimmed, and use compress config like this: but get error when open sample fetch data page:
|
@coader thanks for contacting us. Thanks for contacting us. Could you provide a minimal repro project as a public github repository as well as the steps you use to publish the project so that we could help you? Are you configuring the linker in any way yourself? |
Hi @coader. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
just a blazor project create by default template |
Thanks for contacting us. We're moving this issue to the |
@coader can you please try out the latest 7.0 RC release. We know that the default project template works, so can't help you with this data. it should be something going on on your end. |
Is there an existing issue for this?
Describe the bug
debug is ok, and after deployed to IIS, show error below, already check version of referenced package:
determined url of main script to be http://localhost:8036/_framework/dotnet.7.0.0-preview.7.22375.6.d5v38wupev.js
blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Arg_NoDefCTor, Project1.Shared.MainLayout
System.MissingMethodException: Arg_NoDefCTor, Flight.Blazor.Shared.MainLayout
at System.RuntimeType.CreateInstanceMono(Boolean , Boolean )
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean , Boolean )
at System.Activator.CreateInstance(Type , Boolean , Boolean )
at System.Activator.CreateInstance(Type , Boolean )
at System.Activator.CreateInstance(Type )
at Microsoft.AspNetCore.Components.DefaultComponentActiva
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
7.0.100-preview.7.22377.5
Anything else?
No response
The text was updated successfully, but these errors were encountered: