Sharepoint Insight by Namwar Rizvi

Sharepoint Tips, Tricks and inside knowledge from real world experience by Namwar Rizvi

How to solve “Unable to connect publishing custom string handler for output caching”

Posted by namwar on January 11, 2009

If you are getting “Unable to connect publishing custom string handler for output caching” error in your event log then it is because of a custom web service you have installed on your Sharepoint server. Reason for this error is that you have a web part on your portal page which use the custom web service. Now, since Sharepoint uses output caching for the web pages to optimize the rendering experience and fast delivery of unchanged pages therefore, publishing infrastructure of Sharepoint tries to access the web service through your web part and due to any issue in your service, it starts generating this error.

Anyway, cutting a long story short, here is the solution:

Edit the web.config of custom web service (Please do not edit your Sharepoint Web application web.config) and make sure you have following under httpModules node which is located under system.web node. 

            <remove name=PublishingHttpModule />


7 Responses to “How to solve “Unable to connect publishing custom string handler for output caching””

  1. tribecards said

    Other than the error, does leaving the web.config file alone have any consequences? I mean, how does the error itself affect Sharepoint?

  2. Marco said

    Cheers, this was the solution that worked for me after a long long search.

    I have BizTalk and SharePoint running on the same server and they both use the default website (I know, I should change this 🙂 Anyway, BizTalk’s Orchestration Port’s can be published as Web Services and even though I had the Process Worker Identities configured correctly (at leaast, I think), I still got this annoying error. I’ve added the following code to my web.config and problem was solved.

    • YOung Yang said

      Dear sir,

      I found your solution to fix Unable to connect publishing custom string handler for output caching. you said you have put a code to your web.config. I like to know what is the code? Please let me know and your help is greatly appreciated.


      Young Yang

  3. namwar said

    Hi Young,
    You need to edit web.config of your web service as mentioned above.

  4. frevd said

    cheers – thanks for analyzing the issue.

  5. phil said

    Thanks! One thing though: pasting the line above into the config file didn’t work for me because it didn’t like those kind of quotes. After replacing the quotes with standard ones it worked like a charm. Thanks again.

  6. Dennis Cullen said

    This solved a bunch of problems, thanks!!!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: