Webサイトをサーバーにアップロードしようとしました。私のローカルホストで正常に動作していたので、localhost 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-visual-studio –