"Reprint" IIS7.5 (Classic mode) access to static resources (. css and. js files) Tip: Failed to execute URL

Source: Internet
Author: User
Tags stack trace

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.