IIS7.5 (Classic mode) static resources (. css and. js files) Hint: Failed to execute URL
Server error in "/" application.
Failed to execute URL.
Description: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace information For more information about the error and the source of the error in your code.
Exception Details: System.Web.HttpException: Failed to execute URL.
SOURCE Error:
An unhandled exception was generated during the execution of the current WEB request. You can use the following exception stack trace information to determine information about the cause of the exception and where it occurred.
Stack trace:
[HttpException (0x80004005): Failed to execute URL. ]
SYSTEM.WEB.HOSTING.ISAPIWORKERREQUESTINPROCFORIIS6.BEGINEXECUTEURL (string URL, string method, String childheaders, Boolean sendheaders, Boolean Adduserindo, IntPtr token, string name, String authtype, byte[] entity, AsyncCallback CB, OBJ ECT State) +3256704
System.Web.HttpResponse.BeginExecuteUrlForEntireResponse (String pathoverride, NameValueCollection requestheaders, AsyncCallback CB, Object State) +540
System.Web.DefaultHttpHandler.BeginProcessRequest (HttpContext context, AsyncCallback callback, Object State) +343
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute (+392)
System.Web.HttpApplication.ExecuteStep (IExecutionStep step, boolean& completedsynchronously) +263
Version information: Microsoft. NET Framework Version: 2.0.50727.5477; ASP. NET version: 2.0.50727.5483
There are two workarounds for the above error in IIS7.5 Classic mode:
1. This is generally because of the reason that the user added the script map. Please delete the extra script map with the extension *;
2. Add the corresponding wildcard script map (note: not "Add script map")
Finally, add the code under the node httpmodules of the Web. config
<add verb="*"Path="*.gif"Type="System.Web.StaticFileHandler"/> <add verb="*"Path="*.jpg"Type="System.Web.StaticFileHandler"/> <add verb="*"Path="*.js"Type="System.Web.StaticFileHandler"/> <add verb="*"Path="*.css"Type="System.Web.StaticFileHandler"/>
Reprint please indicate the source in the form of link: This article originates from "53BK newspaper Net" website: http://www.53bk.com/news/detail/v879.html
"Reprint" IIS7.5 (Classic mode) access to static resources (. css and. js files) Tip: Failed to execute URL