-
Notifications
You must be signed in to change notification settings - Fork 311
Suppress exceptions from failing to load HostingStartup assemblies #1075
Comments
By (bad) design:
That this fails so easily for a default VS scenario shows we need to revisit this. |
Offline discussion: |
Is there any workaround available at the moment? |
You can disable Hosting Startup entirely by setting the |
Note that this does not occur in IIS, because our default configuration suppresses this exception in IIS (that's the "By (bad) design" note above ;), we'll be suppressing the exception in all cases moving forward) |
@muratg please triage and assign for preview2. This is a small code change. |
🎉 |
When using Visual Studio to launch a project (created from the MVC template) targeting .NET Core 2.0 preview 2 dev builds, the process immediately crashes with the below exception:
This is because the deps file is linked to the
2.0.0-preview1-002111-00
runtime, but the app is running in2.0.0-preview2-25309-07
runtime. Thus the deps file isn't merged and the assembly is nowhere to be found when we try to load it.I expect the HostingStartup to fail to load. What I don't expect is to be unable to launch my project with no idea how to fix it :). We should suppress and log these errors. I didn't do anything beyond just installing a preview runtime from https://github.com/dotnet/cli.
The text was updated successfully, but these errors were encountered: