Exception in bundles when starting applications

I have an ASP.NET MVC application. All scripts are bundled, as usual. Here is my code from 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"
                    ));

According to IntelliTrace, I got an exception that was thrown and handled by the system. Here is a description of the exception:

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

The application continues to work normally, without errors. Why does this error appear when the application starts?

+4
source share
1 answer

It seems to me that it does not use the user code (of your) application. Did you hit the point at Tools -> Options -> Debugging -> Enable Just My Code? There is also one interesting place with CLR exceptions: Debug -> Windows -> Exception Settings -> CLR ExceptionsThis is for VS2015.

+2
source

All Articles