c# – 应用程序启动时捆绑包中的异常

我有一个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"
                    ));

根据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.)

应用程序继续正常运行,没有错误.
为什么应用程序启动时出现此错误

解决方法

在我看来,它不会抛出用户(您的)应用程序代码.您是否在工具中找到了一点 – >选项 – >调试 – >启用我的代码?还有一个有趣的地方有CLR例外:调试 – > Windows – >例外设置 – > CLR例外适用于VS2015.

相关文章

在要实现单例模式的类当中添加如下代码:实例化的时候:frmC...
1、如果制作圆角窗体,窗体先继承DOTNETBAR的:public parti...
根据网上资料,自己很粗略的实现了一个winform搜索提示,但是...
近期在做DSOFramer这个控件,打算自己弄一个自定义控件来封装...
今天玩了一把WMI,查询了一下电脑的硬件信息,感觉很多代码都...
最近在研究WinWordControl这个控件,因为上级要求在系统里,...