为了网站安全一些URL中可能会包含+号等符号,如网站后台。在IIS6下版本运行正常,升级到IIS7以上的版本访问出错。如下图报错

解决办法
在对应站点目录下的web.config中添加如下节点:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.web> <identity impersonate="true" /> </system.web> <system.webServer> <security> <requestFiltering allowDoubleEscaping="true"/> </security> </system.webServer> </configuration>

