Today, the MVC project tested a problem, and when the W3wp.exe process shuts down, the first time you run the Web site, the following error occurs
Directory does not exist
Directory does not exist.
Parameter Name:directoryvirtualpath
After troubleshooting, the following code in BundleConfig.cs has been found to be problematic
Bundles. ADD (NewScriptbundle ("~/bundles/jquery"). Include ("~/scripts/jquery-{version}.js")); Bundles. ADD (NewScriptbundle ("~/bundles/jqueryui"). Include ("~/scripts/jquery-ui-{version}.js")); Bundles. ADD (NewScriptbundle ("~/bundles/jqueryval"). Include ("~/scripts/jquery.unobtrusive*", "~/scripts/jquery.validate*")); //use the development version of the MODERNIZR to be used for development and learning. And then, when you're done//when preparing your production, usehttp://modernizr.comto select only the tests that you want on the build tool. Bundles. ADD (NewScriptbundle ("~/bundles/modernizr"). Include ("~/scripts/modernizr-*"));
Cause: The JS files in the above code are no longer present. Cause failure at initialization
Solution:
Double-check to remove bindings that do not exist for all files in the BundleConfig.cs file
The MVC directory does not have a solution for/directory does not exist.