Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Under iis7, the existing html cannot be accessed after url rewriting. How to solve it?

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

Today, I would like to share with you the existing html under iis7 after url rewriting can not access the relevant knowledge points of how to solve, detailed content, clear logic, I believe that most people still know too much about this knowledge, so share this article for your reference, I hope you can get something after reading this article, let's take a look at it.

When the url of .html is handed over to asp.net for processing (iis no longer interferes with it), pseudo. Html can be executed corresponding to aspx, but asp.net does not know what to do with the real .html (but does not comply with the rewriting rules), resulting in this request without

Make any treatment.

The following error occurred:

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 in the code that caused the error.

Exception details: system.web.httpexception: failed to execute url. "

How to handle it:

The copy code is as follows:

Add the following configuration under the webconfig file httphandlers node:

These are all the contents of the article "the existing html cannot be accessed after url rewriting under iis7". Thank you for your reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report