2015-09-22 8 views
8

जब मैं कंटेनर शुरू करने का प्रयास करता हूं तो मुझे निम्न त्रुटि मिल रही है। यह एक साधारण asp.net vnext वेब अनुप्रयोग है। मैं विंडोज सर्वर 2016 में इस अंदर डॉकर कंटेनर को होस्ट करने की कोशिश कर रहा हूं। कृपया सलाह दें।समकक्ष पहचान वाले एकाधिक असेंबली आयात किए गए हैं: '<in-memory assembly>' और '<in-memory assembly>'

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 context, AssemblyName assemblyName, Ass 
embly& assembly) 
    at Microsoft.Framework.Runtime.Loader.LoadContext.ResolveAssembly(Object sender, ResolveEventArgs args) 
    at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName) 
    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Runtim 
eAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntro 
spection, Boolean suppressSecurityChecks) 
    at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Runtime 
Assembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntros 
pection, Boolean suppressSecurityChecks) 
    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, Ru 
ntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIn 
trospection, Boolean suppressSecurityChecks) 
    at System.Reflection.Assembly.Load(AssemblyName assemblyRef) 
    at Microsoft.AspNet.Hosting.Startup.StartupLoader.FindStartupType(String startupAssemblyName, IList`1 diagnosticMessa 

यहां प्रोजेक्ट.जेसन फाइल सामग्री है।

{ 
"webroot": "wwwroot", 
"version": "1.0.0-*", 

"dependencies": { 
"Microsoft.AspNet.Diagnostics": "1.0.0-beta6", 
"Microsoft.AspNet.Mvc": "6.0.0-beta6", 
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-beta6", 
"Microsoft.AspNet.Server.IIS": "1.0.0-beta6", 
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta6", 
"Microsoft.AspNet.StaticFiles": "1.0.0-beta6", 
"Microsoft.AspNet.Tooling.Razor": "1.0.0-beta6", 
"Microsoft.Framework.Configuration.Json": "1.0.0-beta6", 
"Microsoft.Framework.Logging": "1.0.0-beta6", 
"Microsoft.Framework.Logging.Console": "1.0.0-beta6", 
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-beta6", 
"AzureCloudTableContext": "2.2.0-beta", 
"Sendgrid": "6.1.0", 
"Microsoft.AspNet.WebPages": "3.2.3" 
}, 

"commands": { 
"web": "Microsoft.AspNet.Hosting --config hosting.ini" 
}, 

"frameworks": { 
"dnx451": { 
    "dependencies": { 
    "System.Net.Http.Formatting.Extension": "5.2.3.0", 
    "System.Configuration.Abstractions": "2.0.2.24", 
    "System.Net.Http": "4.0.1-beta-23225", 
    "System.Runtime.Serialization.Primitives": "4.0.10-*", 
    "System.Runtime": "4.0.20-beta-22816", 
    "System.Collections": "4.0.0.0", 
    "System.IO": "4.0.0.0", 
    "System.Text.Encoding": "4.0.0.0", 
    "System.Threading.Tasks": "4.0.0.0", 
    "System.Collections.Concurrent": "4.0.0.0", 
    "System.Linq": "4.0.0.0" 
    }, 
    "frameworkAssemblies": { 
    "System.Core": "", 
    "System": "", 
    "mscorlib": "", 
    "System.ComponentModel.DataAnnotations": "4.0.0.0", 
    "System.Data": "4.0.0.0", 
    "System.Data.Services.Client": "4.0.0.0", 
    "System.Data.Linq": "4.0.0.0", 
    "System.Configuration": "4.0.0.0", 
    "System.Security": "4.0.0.0", 
    "System.Xml": "4.0.0.0", 
    "System.Xml.Linq": "4.0.0.0", 
    "System.Net": "4.0.0.0" 
    } 
} 
}, 

"exclude": [ 
"wwwroot", 
"node_modules", 
"bower_components" 
], 
"publishExclude": [ 
"node_modules", 
"bower_components", 
"**.xproj", 
"**.user", 
"**.vspscc" 
], 
"scripts": { 
"prepublish": [ "npm install", "bower install", "gulp clean", "gulp min" ] 
} 
} 
+0

अंदर डोकर कंटेनर में आवेदन पुश करने के लिए कर रहा था मैं अतिरिक्त जानकारी के लिए project.json अनुलग्न करना चाहते हैं। लेकिन मैं पात्रों के प्रतिबंध की संख्या के कारण नहीं कर पा रहा हूं। कृपया सलाह दें। –

उत्तर

0

सब, इसे दो दिनों और कई प्रयोगों के लिए पीछा करने के बाद। मैंने संकुचित कर दिया है। मुद्दा यह है कि मैं केवल dnx451 ढांचे के साथ एएसपीनेट vnext एप्लिकेशन को धक्का देने की कोशिश कर रहा था। dnxcore50 सहित बाद मैं Windows सर्वर 2016.

"frameworks": { 
    "dnx451": { }, 
    "dnxcore50": { } 
    }, 
संबंधित मुद्दे