Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Dnu publish generates non runnable bundle #1839

Closed
victorhurdugaci opened this issue May 11, 2015 · 4 comments
Closed

Dnu publish generates non runnable bundle #1839

victorhurdugaci opened this issue May 11, 2015 · 4 comments
Assignees
Milestone

Comments

@victorhurdugaci
Copy link
Contributor

  1. Clone MusicStore or clean it if it is already on your machine then sync to the latest
  2. Install the following 2 runtimes, both CoreCLR/x64:
    • 1.0.0-beta5-11706
    • 1.0.0-beta5-11749
  3. Start with 11706 and do the following:
  4. dnu restore in MusicStore root
  5. Go to test\MusicStore.Test
  6. Run dnu publish --runtime active
  7. Go to bin\output and run test.cmd
  8. Result: everything works
  9. Switch to runtime 11749 and repeat steps 4-7
  10. Result:
System.InvalidOperationException: Unable to load application or execute command 'xunit.runner.aspnet'. Available command
s: test. ---> System.IO.DirectoryNotFoundException: The system cannot find the path specified. (Exception from HRESULT:
0x80070003)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String
niPath, ObjectHandleOnStack retAssembly)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
   at Microsoft.Framework.Runtime.Loader.NuGetAssemblyLoader.Load(String name, IAssemblyLoadContext loadContext)
   at dnx.host.LoaderContainer.Load(String name)
   at Microsoft.Framework.Runtime.Loader.AssemblyLoaderCache.GetOrAdd(String name, Func`2 factory)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)
   at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)

   --- End of inner exception stack trace ---
   at Microsoft.Framework.ApplicationHost.Program.ThrowEntryPointNotfoundException(DefaultHost host, String applicationN
ame, Exception innerException)
   at Microsoft.Framework.ApplicationHost.Program.ExecuteMain(DefaultHost host, String applicationName, String[] args)
   at Microsoft.Framework.ApplicationHost.Program.Main(String[] args)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Framework.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider s
erviceProvider)
   at dnx.host.Bootstrapper.RunAsync(List`1 args)
   at dnx.host.RuntimeBootstrapper.ExecuteAsync(String[] args)
   at dnx.host.RuntimeBootstrapper.Execute(String[] args)
System.IO.DirectoryNotFoundException: The system cannot find the path specified. (Exception from HRESULT: 0x80070003)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String
niPath, ObjectHandleOnStack retAssembly)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
   at Microsoft.Framework.Runtime.Loader.NuGetAssemblyLoader.Load(String name, IAssemblyLoadContext loadContext)
   at dnx.host.LoaderContainer.Load(String name)
   at Microsoft.Framework.Runtime.Loader.AssemblyLoaderCache.GetOrAdd(String name, Func`2 factory)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)
   at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)

It seems that one of the checkins between those two build broke the publish command.
The Nano server automation caught this bug and now it is blocked by it.

@victorhurdugaci
Copy link
Contributor Author

cc @ChengTian

@davidfowl
Copy link
Member

This has to do with my changes to publish. Does it run when you publish a simpler app?

@victorhurdugaci
Copy link
Contributor Author

Nope. For the empty web application I get:

System.InvalidOperationException: Unable to load application or execute command 'Microsoft.AspNet.Hosting'. Available co
mmands: web. ---> System.IO.DirectoryNotFoundException: The system cannot find the path specified. (Exception from HRESU
LT: 0x80070003)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String
niPath, ObjectHandleOnStack retAssembly)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
   at Microsoft.Framework.Runtime.Loader.NuGetAssemblyLoader.Load(String name, IAssemblyLoadContext loadContext)
   at dnx.host.LoaderContainer.Load(String name)
   at Microsoft.Framework.Runtime.Loader.AssemblyLoaderCache.GetOrAdd(String name, Func`2 factory)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)
   at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)

   --- End of inner exception stack trace ---
   at Microsoft.Framework.ApplicationHost.Program.ThrowEntryPointNotfoundException(DefaultHost host, String applicationN
ame, Exception innerException)
   at Microsoft.Framework.ApplicationHost.Program.ExecuteMain(DefaultHost host, String applicationName, String[] args)
   at Microsoft.Framework.ApplicationHost.Program.Main(String[] args)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Framework.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider s
erviceProvider)
   at dnx.host.Bootstrapper.RunAsync(List`1 args)
   at dnx.host.RuntimeBootstrapper.ExecuteAsync(String[] args)
   at dnx.host.RuntimeBootstrapper.Execute(String[] args)
System.IO.DirectoryNotFoundException: The system cannot find the path specified. (Exception from HRESULT: 0x80070003)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String
niPath, ObjectHandleOnStack retAssembly)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
   at Microsoft.Framework.Runtime.Loader.NuGetAssemblyLoader.Load(String name, IAssemblyLoadContext loadContext)
   at dnx.host.LoaderContainer.Load(String name)
   at Microsoft.Framework.Runtime.Loader.AssemblyLoaderCache.GetOrAdd(String name, Func`2 factory)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)
   at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)

@davidfowl davidfowl added this to the 1.0.0-beta5 milestone May 11, 2015
@davidfowl davidfowl self-assigned this May 11, 2015
davidfowl added a commit that referenced this issue May 11, 2015
- Fix slash resolution for lock file
- Skip running events when generating lock file after copy

#1839 #1832 #1833
davidfowl added a commit that referenced this issue May 11, 2015
- Fix slash resolution for lock file
- Skip running events when generating lock file after copy

#1839 #1832 #1833
@victorhurdugaci
Copy link
Contributor Author

@davidfowl is you fixed supposed to fix the publish bug? I'm still seeing the failure: https://xplat-ci.asp.net/viewLog.html?buildId=511&buildTypeId=XPlat_Windows_WinNanoServer_MusicStore&tab=buildLog

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

No branches or pull requests

2 participants