2016-07-01 22 views
4

私はASP.NET MVCアプリケーションを持っています。すべてのスクリプトはいつものようにバンドルされています。ここでBundleConfig.csアプリケーション起動時のバンドルでの例外

bundles.Add(new ScriptBundle("~/bundles/public-js").Include(
        "~/Scripts/angular.min.js", 
        "~/Scripts/angular-route.min.js", 
        "~/Scripts/angular-resource.min.js", 
        "~/Scripts/angular-cookies.min.js", 
        "~/Scripts/angular-sanitize.min.js", 
        "~/Scripts/angular-ui/ui-bootstrap-tpls.min.js", 
        "~/Scripts/bootstrap.min.js", 

        "~/Scripts/string.utilities.js", 
        "~/Scripts/public/google-charts-loader.js", 
        "~/Scripts/biz/core/app-config.js", 

        "~/Scripts/public/core/db-api.js", 
        "~/Scripts/public/core/app.js", 
        "~/Scripts/public/core/directives.js", 
        "~/Scripts/public/core/controller-helpers.js", 
        "~/Scripts/public/core/public-controller-helpers.js", 
        "~/Scripts/public/core/services.js", 
        "~/Scripts/public/core/list-controller.js", 
        "~/Scripts/public/core/item-controller.js", 

        "~/Scripts/n.utilities.biz.js" 
        )); 

からの私のコードは、私がcaugthた例外を持って、システムが処理しましたIntelliTraceのよるあります。例外の説明は次のとおりです

Exception thrown: 'System.Web.HttpException' in System.Web.dll (": Invalid file name for file monitoring: 'C:\IISTest\SuperMVC\Scripts\public'. Common reasons for failure include: 
- The filename is not a valid Win32 file name. 
- The filename is not an absolute path. 
- The filename contains wildcard characters. 
- The file specified is a directory. 
- Access denied.) 

アプリケーションはエラーなしで正常に動作します。 アプリケーション起動時にこのエラーが表示されるのはなぜですか?

+0

同梱のアイテムは含まれていますか? –

+0

これは、このエラーを抑制するためにあなたを助けることができると思います:http://stackoverflow.com/questions/3565280/vs-2010-fails-debugging-httpexception-invalid-file-name-for-file-monitoring-in必要がありますVSデバッガのオプションで "Just My Code"を有効にするには –

+0

バンドルされているすべてのアイテムが含まれています – Anton

答えて

2

ユーザ(あなた)のアプリケーションコードではスローされないようです。 Tools -> Options -> Debugging -> Enable Just My Codeにポイントを当てましたか?また、CLR例外を含む1つの興味深い場所があります。Debug -> Windows -> Exception Settings -> CLR ExceptionsこれはVS2015用です。

関連する問題