Skip to content
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

Library DLL with AspNetCore throws exception when start. #401

Open
reitowo opened this issue Nov 23, 2024 · 0 comments
Open

Library DLL with AspNetCore throws exception when start. #401

reitowo opened this issue Nov 23, 2024 · 0 comments

Comments

@reitowo
Copy link

reitowo commented Nov 23, 2024

If the library tries to start a WebApplication, a exception will be thrown at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.ExecuteHostingStartups saying that it tries to load an hosting startup assembly with null name.

It can be resolved if I set a explicit applicationName when creating builder, so that it will use that dll name for loading the assembly. Otherwise it tries to use GetEntryAssembly and which seems to be null when loading with this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant