小编Vis*_*amy的帖子

已导入具有等效标识的多个程序集:'<内存中程序集>'和'<内存中程序集>'

当我尝试启动容器时,我收到以下错误.这是一个简单的asp.net vnext Web应用程序.我试图在Windows Server 2016中托管这个内部的docker容器.请建议.

System.IO.FileLoadException: Could not load file or assembly 'samplewebapplication' or one of its dependencies. General Exc
eption (Exception from HRESULT: 0x80131500)
File name: 'samplewebapplication' ---> Microsoft.Framework.Runtime.Roslyn.RoslynCompilationException: error CS1703: Multipl
e assemblies with equivalent identity have been imported: '<in-memory assembly>' and '<in-memory assembly>'. Remove one
of the duplicate references.
   at Microsoft.Framework.Runtime.Roslyn.RoslynProjectReference.Load(IAssemblyLoadContext loadContext)
   at Microsoft.Framework.Runtime.Loader.ProjectAssemblyLoader.Load(AssemblyName assemblyName, IAssemblyLoadContext load
Context)
   at Microsoft.Framework.Runtime.Loader.ProjectAssemblyLoader.Load(AssemblyName assemblyName)
   at dnx.host.LoaderContainer.Load(AssemblyName assemblyName)
   at dnx.host.DefaultLoadContext.LoadAssembly(AssemblyName assemblyName)
   at Microsoft.Framework.Runtime.Loader.AssemblyLoaderCache.GetOrAdd(AssemblyName name, Func`2 factory)
   at Microsoft.Framework.Runtime.Loader.LoadContext.LoadAssemblyImpl(AssemblyName assemblyName)
   at Microsoft.Framework.Runtime.Loader.LoadContext.TryLoadAssembly(LoadContext …
Run Code Online (Sandbox Code Playgroud)

asp.net windows-server docker asp.net-core

10
推荐指数
1
解决办法
3212
查看次数

标签 统计

asp.net ×1

asp.net-core ×1

docker ×1

windows-server ×1