前提・実現したいこと
現在、ASP MVC5にて1ソリューション、多プロジェクトのウェブアプリケーションを開発しています。
開発環境のローカルIIS上では、AreaRegistration.RegisterAllAreas()が正しく実行されるのですが、本番環境において、エラーが発生しています。
例外名:ディレクトリは存在しません。
呼び出そうとしている、WebAreaRegistration.csファイルのパスが開発環境のパスとなっている。
C:\○○○\○○○\work\TestApp\Test2\WebAreaRegistration.cs:23
特にAreaRegistrationの実行時に指定などしていない為、何が原因で起きているのかが不明です。
発生している問題・エラーメッセージ
ディレクトリは存在しません。 Parameter name: directoryVirtualPath Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: ディレクトリは存在しません。 Parameter name: directoryVirtualPath [ArgumentException: ディレクトリは存在しません。 Parameter name: directoryVirtualPath] System.Web.Optimization.Bundle.Include(String virtualPath, IItemTransform[] transforms) +146 Test2.WebAreaRegistration.RegisterBundles(BundleCollection bundles) in C:\○○○\○○○\work\TestApp\Test2\WebAreaRegistration.cs:23 Test2.WebAreaRegistration.RegisterArea(AreaRegistrationContext context) in C:\○○○\○○○\work\TestApp\Test2\WebAreaRegistration.cs:57 System.Web.Mvc.AreaRegistration.RegisterAllAreas(RouteCollection routes, IBuildManager buildManager, Object state) +230 Top.MvcApplication.Application_Start() in C:\○○○\○○○\work\TestApp\Top\Global.asax.cs:17
補足情報(FW/ツールのバージョンなど)
開発環境
Windows7SP1 64bit
IISExpress
VisualStudio2017
ASP.NET MVC 5.2.3.0
本番環境
WindowsServer2008R2 64bit
IIS7.5
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/12/18 08:40