Unable to connect publishing custom string handler …
By rickvdbosch
- 1 minutes read - 154 wordsAfter developing a custom Web Service to be hosted in SharePoint (based on this HowTo article on MSDN) and deploying it on a testing environment, I got some entries in the EventLog over there, stating:
“Unable to connect publishing custom string handler for output caching. IIS Instance Id is ‘xxxxxxxxx’, url is ‘https://internalsharepointserver/somesubfolder/services.asmx“
The PublishingHttpModule trying to cache an unmanaged path seems to be the problem here. When enabled for a custom web application (such as my web service), it causes the eventlog entry each time certain requests like web service calls or static CSS files are made.
The quick solution is to simply remove the PublishingHttpModule for the custom web application. You can do so by editing the web.config file:
«/span>httpModules> «/span>remove name=“PublishingHttpModule” /> …</httpModules>
To completely switch back to all default ASP.NET modules, use these settings in the web.config file:
«/span>httpModules> «/span>clear/> «/span>add name=“OutputCache” type=“System.Web.Caching.OutputCacheModule” /> «/span>add name=“Session” type=“System.Web.SessionState.SessionStateModule” /> «/span>add name=“WindowsAuthentication” type=“System.Web.Security.WindowsAuthenticationModule” /> «/span>add name=“FormsAuthentication” type=“System.Web.Security.FormsAuthenticationModule” /> «/span>add name=“PassportAuthentication” type=“System.Web.Security.PassportAuthenticationModule” /> «/span>add name=“UrlAuthorization” type=“System.Web.Security.UrlAuthorizationModule” /> «/span>add name=“FileAuthorization” type=“System.Web.Security.FileAuthorizationModule” /> …</httpModules>