This article describes the next iis7 under the URL rewrite, the original existence of HTML can not be accessed, failed to execute the URL (asp.net to the real. HTML (but not conforming to the rules) do not know how to deal with the situation, friends can refer to the following
When the URL of the. html is handed to ASP.net (IIS no longer intervenes), the pseudo. HTML can correspond to aspx execution, while ASP.net does not know what to do with the real. HTML (but does not conform to the rewrite), causing the request not
for any treatment.
The following error occurred:
Server error in '/' Application.
--------------------------------------------------------------------------------
The URL could not be executed.
Note: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace for more information about the error and where the error occurred in the code.
Exception Details: System.Web.HttpException: Failed to execute URL. ”
Treatment methods:
Copy Code code as follows:
Webconfig files are configured under the httphandlers node:
<add verb= "*" path= "*.html" type= "System.Web.StaticFileHandler"/>
Ok