aspnet / MusicStore

[Archived] MusicStore test application that uses ASP.NET/EF Core. Project moved to https://github.com/aspnet/AspNetCore
1.3k stars 878 forks source link

RuntimeMetadataVersion exception with debian and mono #618

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi,

I try to run the project with the configuration net451 under debian with mono 4.2.3. I get the exception below

An unhandled exception has occurred: One or more compilation failures occurred:
      error CS8021: No value for RuntimeMetadataVersion found. No assembly containing System.Object was found nor was a value for RuntimeMetadataVersion specified through options.
Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationFailedException: One or more compilation failures occurred:
error CS8021: No value for RuntimeMetadataVersion found. No assembly containing System.Object was found nor was a value for RuntimeMetadataVersion specified through options.
  at Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationResult.EnsureSuccessful () <0x421e6920 + 0x00063> in <filename unknown>:0 
  at Microsoft.AspNetCore.Mvc.Razor.Internal.CompilerCache.CreateCacheEntry (System.String normalizedPath, System.Func`2 compile) <0x42091c90 + 0x003af> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---

When i execute dotnet restore, it show 2 warning

warning NU1007: Dependency specified was System.IO >= 4.1.0-* but ended up with System.IO 4.0.0.0.
warning NU1007: Dependency specified was System.Runtime >= 4.1.0-* but ended up with System.Runtime 4.0.0.0.

But mono version is 4.2.3

And when i execute the command "dotnet run" with by default the netstandard 1.5, i get the error below

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

It seem to have a problem with the runtime specific package.

Under ubuntu 14.04 and mono 4.2.3 the project is fine with the netstandardapp1.5 but an error occured with net451

Object reference not set to an instance of an object.
Eilon commented 8 years ago

Not planning on fixing Mono-specific issues.