WebClientPrint for ASP.NET – WCP Handler and HTTP 500.21 error

You deployed your website using WebClientPrint for ASP.NET and the WCP.axd handler you registered in your web.config is throwing the following error in IIS:

HTTP Error 500.21 – Internal Server Error
Handler “WCP” has a bad module “ManagedPipelineHandler” in its module list

To fix that error you must modify your web.config so the entry for the wcp.axd handler under system.webServer node looks like follows:


<system.webServer>
<handlers>
<add name="WCP" verb="*" path="wcp.axd"
type="Neodynamic.SDK.Web.WebClientPrint, Neodynamic.SDK.WebClientPrint"
preCondition="integratedMode"/>
</handlers>
</system.webServer>

What has been added is the preCondition=”integratedMode” to the handler registration. This new attribute should solve the issue.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.