When using the win server, if the URL is too long, you will encounter a situation that can not be resolved properly
1. Restrictions:
The path character under WINDOWS is 260 characters, while IIS supports a maximum URL length of 254. In the IIS7 pipeline, the path model, and then into the handle, in the pipeline operation, will try to go to the operating system to find files, whether it is the path of MVC, or the path of ASPX. This will cause an error.
2. Preconditions for lifting restrictions
Environment must use IIS 7.5, the. NET Framework uses version 4.0
3, configuration file in Web. config, add the following configuration
4. Modify the Registration form:
To modify registry information on the server:
Added under Hkey_local_machine/system/currentcontrolset/services/http/parameters: Named Urlsegmentmaxlength, type DWORD 32, value 4 096 (can be customized). Urlsegmentmaxlength indicates the maximum number of characters per URL path that can be accommodated
5. Restart the IIS service
URL link under Windows Server long processing method