CodeCarvings Piczard V1.2 Help
Piczard client-side library failed to load
See Also Send Feedback
Troubleshooting > Piczard client-side library failed to load

Glossary Item Box

There is a known issue caused by the URL rewriters included in some CMS softwares (DotNetNuke, mojoPortal).
If you are using one of these CMS you can find a workaround at the end of this page:

 

 

How to solve the issue "Piczard client-side library failed to load "

If at runtime you get the following error message "Piczard client-side library failed to load" then you can follow these steps in order to solve the issue:

 

 

 

Workaround for the URL rewriters included in some CMS softwares (DotNetNuke, mojoPortal)

It is suggested to try this workaround only after the above steps have failed.

Usually the issue is caused by UrlRewriters -and- sometimes (e.g. with DotNetNuke or mojoPortal) the problem can be solved by simply changing the name of the Piczard Http Handler.

In order to do so you have to edit your Web.config file.
Suppose you want to use "~/piczardWebResource.axd" instead of "piczardWebResource.ashx" (default value).
In this case you have to rename "piczardWebResource.ashx" to "piczardWebResource.axd" in the following sections:

Example:

~/Web.config -> configuration / system.webServer / handlers / add Copy Code
<add name="PiczardWebResource" verb="*" path="piczardWebResource.axd" preCondition="integratedMode" type="CodeCarvings.Piczard.Web.WebResourceManager, CodeCarvings.Piczard" />
Please note that you have to use "piczardWebResource.axd" and not "~/piczardWebResource.axd" in the handlers and in the httpHanlders sections !

Moreover (very important) you have to add the following setting to your Web.config file

Example:

~/Web.config -> configuration / codeCarvings.piczard / webSettings / webResource / mainHttpHandlerUrl Copy Code
...
<codeCarvings.piczard>
...
<webSettings>
  
<webResource mainHttpHandlerUrl="~/piczardWebResource.axd" />
  
...
</webSettings>
</
codeCarvings.piczard>
...

 Here is an example of a complete Web.config file:

~/Web.config - Change name of Piczard HttpHandler to "~/piczardWebResource.axd" Copy Code
<?xml version="1.0"?>
<
configuration>
 
<configSections>
   
<sectionGroup name="codeCarvings.piczard">
     
<section name="coreSettings" type="CodeCarvings.Piczard.Configuration.CoreSettingsSectionHandler, CodeCarvings.Piczard" requirePermission="false"/>
     
<section name="webSettings" type="CodeCarvings.Piczard.Configuration.WebSettingsSectionHandler, CodeCarvings.Piczard" requirePermission="false"/>
   
</sectionGroup>
 
</configSections>
 
<codeCarvings.piczard>
   
<webSettings>
     
<webResource mainHttpHandlerUrl="~/piczardWebResource.axd" />
   
</webSettings>
 
</codeCarvings.piczard>
 
<location path="~/piczardWebResource.axd">
   
<system.web>
     
<authorization>
       
<allow users="*" />
     
</authorization>
   
</system.web>
 
</location>
 
<system.web>
   
<httpHandlers>
     
<!-- Piczard - Important information: Remove or comment the following *add* line if you are using IIS 7/8 Integrated Pipeline Mode with validateIntegratedModeConfiguration = True (HTTP error 500.22/500.23). -->
     
<add verb="*" path="piczardWebResource.axd" validate="false" type="CodeCarvings.Piczard.Web.WebResourceManager, CodeCarvings.Piczard" />
   
</httpHandlers>
 
</system.web>
 
<!--
  The system.webServer section is required for running ASP.NET AJAX under Internet
  Information Services 7/8. It is not necessary for previous version of IIS.
 -->
 
<system.webServer>
   
<validation validateIntegratedModeConfiguration="false" />
   
<handlers>
     
<add name="PiczardWebResource" verb="*" path="piczardWebResource.axd" preCondition="integratedMode" type="CodeCarvings.Piczard.Web.WebResourceManager, CodeCarvings.Piczard" />
   
</handlers>
 
</system.webServer>
</
configuration>

  

Compared to the "standard" suggested web.config file there are 4 changes:

  1. <webResource enableCompression="true" mainHttpHandlerUrl="~/piczardWebResource.axd" />
  2. <location path="~/piczardWebResource.axd">
  3. <add verb="*" path="piczardWebResource.axd" validate="false" type="CodeCarvings.Piczard.Web.WebResourceManager, CodeCarvings.Piczard" />
  4. <add name="PiczardWebResource" verb="*" path="piczardWebResource.axd" preCondition="integratedMode" type="CodeCarvings.Piczard.Web.WebResourceManager, CodeCarvings.Piczard" />

 

For more information please see:

See Also

©2013 Sergio Turolla. All Rights Reserved.