लोड नहीं किया जा सका मैंने अपनी वेबसाइट को किसी सर्वर पर अपलोड करने का प्रयास किया। यह मेरे स्थानीय होस्ट के साथ ठीक काम कर रहा था, इसलिए मैंने सर्वर पर अपने लोकहोस्ट wwwroot
फ़ोल्डर में सब कुछ अपलोड किया और कनेक्शन स्ट्रिंग बदल दी।फ़ाइल या असेंबली 'Microsoft.Web.Infrastructure,
लेकिन इस त्रुटि है:
Exception information:
Exception type: InvalidOperationException
Exception message: The pre-application start initialization method Start on type RouteDebug.PreApplicationStart threw an exception with the following error message: Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..
at System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods)
at System.Web.Compilation.BuildManager.CallPreStartInitMethods()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
at RouteDebug.PreApplicationStart.Start()
परियोजना nopcommerce
था।
इस त्रुटि को हल करने के लिए क्या किया जाना चाहिए?
कॉपी करना संभवतः काम नहीं करता है क्योंकि मेजबान की समान निर्भरताएं स्थापित नहीं होती हैं, इस मार्गदर्शिका को देखें: http://www.iwantmymvc.com/2011-03-23-bin-deploy-aspnet-mvc- 3-विज़ुअल-स्टूडियो –