2009-06-10 11 views
0

が見つかりませんでした。c:\ development \ project \からc:\ inetpub \ wwwroot \ virtualdir \(同じpc)にWebサイトを展開しました。それはしばらくの間働いた、私はhttp://computername/virtualdir/に行くことによってウェブサイトに達することができた。.NET MVC - 昨日指定したパス

しかし、今朝誰もがエラーを出しました:システムが指定されたパスを見つけることができません。

指定されたパスが見つかりませんでした。/virtualdir/bin /にはSystem.Web.Mvc.Dllアセンブリが含まれています...また、デプロイメントプロジェクトでは依存関係としてマークされていますので、インストール中に実際に含まれていました。

スタックトレース:

[DirectoryNotFoundException: The system cannot find the path specified. (Exception from HRESULT: 0x80070003)]

[FileNotFoundException: Could not load file or assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the path specified.]

[FileNotFoundException: Could not load file or assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the path specified.] System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0 System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142 System.Reflection.Assembly.Load(String assemblyString) +28 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: Could not load file or assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the path specified.] System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178 System.Web.Compilation.BuildManager.GetReferencedAssemblies() +55 System.Web.Mvc.BuildManagerWrapper.System.Web.Mvc.IBuildManager.GetReferencedAssemblies() +21 System.Web.Mvc.ControllerTypeCache.GetAllControllerTypes(IBuildManager buildManager) +62 System.Web.Mvc.ControllerTypeCache.EnsureInitialized(IBuildManager buildManager) +73 System.Web.Mvc.DefaultControllerFactory.GetControllerTypeWithinNamespaces(String controllerName, HashSet`1 namespaces) +83 System.Web.Mvc.DefaultControllerFactory.GetControllerType(String controllerName) +305 System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +65 System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +128 System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +57 System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) +7 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

答えて

1

あなたはスタックトレースで見ることができるように、それは、うまくSystem.Web.Mvcを見つけることです:

System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +128 

を何が起こっていることが表示され、ControllerTypeCacheですコントローラを見つけるために参照されているすべてのアセンブリを列挙しようとしているが、別のアセンブリによって参照されているアセンブリを見つけることができません。

これは、blog entryに、欠落しているものを正確に特定する方法をお読みください。

+0

ありがとうございました! – Ropstah

0

検索でこの質問に出てくる人は、仮想ディレクトリの設定で 'asnet_isapi.dll'にワイルドカードマップが作成されていないと、エラーメッセージが表示される可能性がある別の設定エラーです。仮想ディレクトリのプロパティを開き

  • :マッピングを作成するには

    。 「仮想ディレクトリ」タブで

  • 、「構成」ボタン
  • クリックして「挿入」をクリックして、適切な.NETバージョンの「ASPNET_ISAPI.DLL」ファイル
  • チェックを外して「ファイルが存在することを確認する」のチェックボックスを参照し
関連する問題