sharepoint 报错:

Event Type: Error
Event Source: Office SharePoint Server
Event Category: Publishing Cache 
Event ID: 5785

Computer: MOSS01
Description:
Unable to connect publishing custom string handler for output caching.  IIS Instance Id is 'XXXXXXXXXXX', Url is 'http://XXXXXXX/Default.aspx'.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

 

发现在SharePoint Web Site下部署的网站,很多都会遇到这样的问题,之前的解决方案是修改网站下的web.config文件,在httpModules中添加红色字部分。

<httpModules>

  <remove name="PublishingHttpModule" />

  ...

</httpModules>


 注意:要修改报错web站点或者报错虚拟目录下的web.config文件.