Solution to the failure of the default document after using .net framework 4.0 in IIS6 (Win2003).

A WEB project developed with .net framework 4.0, but the default document cannot be used in iis6. The situation is as follows:

Enter in the address bar: http://xxx.xxx.xxx.xxx/ It prompts that the file cannot be found

Enter the full name: http://xxx.xxx.xxx.xxx/default.aspx and it will display normally.


I checked on Baidu, but found nothing. I am not allowed to use extraordinary means to search on Googleiis6 .net 4.0 document]This keyword , there will be immediate gains.


There was an error when HTTP interpreted .axd, causing the default document to fail to take effect.


Solution:


First create a new text file, then COPY the following text into this file, save it as 1.reg, and then import it directly.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\4.0.30319.0]

"EnableExtensionlessUrls"=dword:00000000

After importing, execute iisreset, then refresh the page to display normally.

After Google is blocked, it will be an obstacle for Chinese people to learn new technologies. well. . . .

Guess you like

Origin blog.csdn.net/Jockey/article/details/44873229
Recommended