SharePoint讨厌“+”吗?

环境描述:

SharePoint 2007,IIS7,win 2008 server

问题描述:

在SharePoint文档库中,上传的附件名字中包含+号时,使用url在浏览器中访问时,提示文件找不到,即使把+号转换为url编码%2B也无效。

访问后的页面错误信息如下所示:HTTP 404 Not Found.

解决方案:

经测试在SharePoint2007和IIS6的环境下,访问此类文件正常。

方式一:修改IIS7的配置文件applicationHost.config

方式二:

使用这个命令将会使所有的站点都生效:
Appcmd set config "Default Web Site" /section:system.webServer/Security/requestFiltering -allowDoubleEscaping:True
使用这个命令将会使指定的站点都生效:
appcmd set config "Default Web Site" /section:system.webServer/Security/requestFiltering -allowDoubleEscaping:True /commit:appHos
设置完毕后,无需重启IIS。
参考文章:

http://support.microsoft.com/kb/2022903
http://support.microsoft.com/?id=942076
http://www.powerobjects.com/blog/2010/02/03/sharepoint-hates-plus-signs/

原文地址:https://www.cnblogs.com/mingle/p/SharePoint_IIS7.html