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

beta8 build error #552

Closed cheers00 closed 8 years ago

cheers00 commented 8 years ago

I'm getting the following compilation error with VS2015. I get the same error for build.cmd.

I don't see any contract folder at `System.Threading.Overlapped\4.0.0\lib`` on my computer.

Building MusicStore for DNXCore,Version=v5.0
Error: Could not find a part of the path 'C:\Users\chers00\.dnx\packages\System.Threading.Overlapped\4.0.0\lib\contract
\System.Threading.Overlapped.dll'.
fail: Exit code 1 from cmd
fail: Stack trace:
Eilon commented 8 years ago

@kichalla can you see if you can repro this?

JanSichula commented 8 years ago

+1 My setup is Windows 8.1 Pro with ASP.NET 5 Beta 8. I am getting same error when trying to build against CoreCLR but when I switch to Desktop CLR, a different error listed bellow appears.

System.TypeLoadException: Could not load type 'Microsoft.Framework.Configuration.ConfigurationProvider' from assembly 'M
icrosoft.Framework.Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
   at Microsoft.Framework.Configuration.CommandLineConfigurationExtensions.AddCommandLine(IConfigurationBuilder configur
ation, String[] args)
   at Microsoft.AspNet.Hosting.Program.Main(String[] args)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider service
Provider)
   at Microsoft.Dnx.ApplicationHost.Program.ExecuteMain(DefaultHost host, String applicationName, String[] args)
   at Microsoft.Dnx.ApplicationHost.Program.Main(String[] args)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider service
Provider)
   at Microsoft.Dnx.Host.Bootstrapper.RunAsync(List`1 args, IRuntimeEnvironment env, String appBase, FrameworkName targe
tFramework)
   at Microsoft.Dnx.Host.RuntimeBootstrapper.ExecuteAsync(String[] args, BootstrapperContext bootstrapperContext)
   at Microsoft.Dnx.Host.RuntimeBootstrapper.Execute(String[] args, BootstrapperContext bootstrapperContext)
kichalla commented 8 years ago

I am able to repro this...looking at the lock.json file, the file path for the compile is incorrect:

image

As a workaround try changing the System.Runtime.Serialization.Primitives in dnxcore50 target framework from 4.0.11-beta-23409 to 4.0.11-beta-23225 and try building again...this seems to work fine for me..

kichalla commented 8 years ago

@cheers00 @JanSichula while we still investigate the original issue, I have pushed in a regenerated project.lock.json file to master branch now...you should now be able to build successfully.

kichalla commented 8 years ago

The build should be fixed now. Feel free to re-open the issue if you still see it.

smbecker commented 8 years ago

After upgrading to beta8, I am seeing this same exception but while running my application under dnx451 so obviously, the suggested resolution wouldn't have any impact. Any ideas?

smbecker commented 8 years ago

Nevermind, I was using beta8-*, which seems to have pulled in an earlier build of the configuration package. It is working now.