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

Exception at startup with latest SDK #3929

Closed
sebastienros opened this issue Nov 18, 2019 · 6 comments
Closed

Exception at startup with latest SDK #3929

sebastienros opened this issue Nov 18, 2019 · 6 comments

Comments

@sebastienros
Copy link
Member

Starting an ASP.NET application targeting netcoreapp5.0 with recent SDKs (since last week between Wednesday 13th and Thursday 14th) triggers:

Job failed at runtime:
Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
File name: 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

Latest known version to work for me is:

e6edf2d93f8491a21aa4b0b32e2a55dacb8ef9c2
5.0.100-alpha1-015721

Could repro with at least 5.0.100-alpha1-015731 but I don't have the list of versions in between to be more precise.

@sebastienros sebastienros changed the title Exception as startup with latest SDK Exception at startup with latest SDK Nov 18, 2019
@JunTaoLuo
Copy link
Contributor

cc @jkotalik this is the issue we are seeing in the dependency updates.

@sebastienros
Copy link
Member Author

Should there be a functional test as part of the SDK to ensure you can build and run a simple ASP.NET app? Maybe it's already done with other types of applications but for me it's the second week in a raw that it breaks them. Is it something I could do as a PR if you point me to where you would want it to be added?

@sebastienros
Copy link
Member Author

I can repro when a custom runtime reference is defined in the project like this:

<FrameworkReference Update="Microsoft.NETCore.App" RuntimeFrameworkVersion="$(MicrosoftNETCoreAppPackageVersion)" />

@sebastienros
Copy link
Member Author

sebastienros commented Dec 6, 2019

In case it would help to solve this, I shared the application deployed as self-contained for windows, and the corehost_trace.log file at this location: \\scratch2\scratch\sebros\repro.zip

Just run PlatformBenchmarks.exe to repro the issue.

@joshpearce
Copy link

Any update on this?

@sebastienros
Copy link
Member Author

Fixed in current version as dotnet/runtime is now used

rainersigwald pushed a commit that referenced this issue Jul 20, 2020
….4 (#3929)

- Microsoft.DotNet.Cli.Runtime - 3.1.200-preview.19627.4
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

3 participants