Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

ChartImg.axd - No http handler was found for request type 'GET'

Vote:
 

Hi, I'm having a problem with a chart page. This is the error I'm getting:

 

[HttpException (0x80004005): No http handler was found for request type 'GET']
   System.Web.HttpApplication.MapIntegratedHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig, Boolean convertNativeStaticFileModule) +899
   System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +464

[HttpException (0x80004005): Error executing child request for ChartImg.axd.]
   System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +795
   System.Web.UI.DataVisualization.Charting.ChartHttpHandler.EnsureInitialized(Boolean hardCheck) +328
   System.Web.UI.DataVisualization.Charting.Chart.GetImageStorageMode() +24
   System.Web.UI.DataVisualization.Charting.Chart.get_CurrentImageLocation() +40
   System.Web.UI.DataVisualization.Charting.Chart.Render(HtmlTextWriter writer) +302
    

 

From what I can see when I google you either need to change your web.config (which I have) or change the application pool to classic instead of integrated (which I can't since EPiServe needs integrated). Any ideas what else I might try?

 

 

These are the relevant bits from the web.config:

 

<appSettings>
    <add key="ChartImageHandler" value="Storage=file;Timeout=20;Url=~/tempImages/;" />
</appSettings>

<system.webServer>
    <handlers>
        <add name="ChartImg" path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </handlers>
</system.webServer>

<system.web>
    <httpHandlers>
        <add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
    </httpHandlers>
    <compilation defaultLanguage="c#" debug="true" targetFramework="4.0">
        <assemblies>
            <add assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        </assemblies>
    </compilation>
    <pages validateRequest="false" enableEventValidation="false" pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
        <controls>
            <add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        </controls>
    </pages>
</system.web>

    

 

#80002
Jan 13, 2014 13:45
Vote:
 

Which version of IIS are you running? I believe IIS7 handles http handler registration different from previous versions. If I remember correctly you should register it in <system.webServer><handlers> instead of <system.web><httpHandlers>. Try removing lines 12-14 in the snippet above, and keep the registration on lines 5-9.

// Mathias

#80006
Jan 13, 2014 15:10
Vote:
 

Hmm this rings a little bell inside my head somewhere. I've had this error. Wonder how I solved it...hehe

Check that the directory exist "=~/tempImages/" and that the app pool account has access rights to write to it...

#80007
Jan 13, 2014 15:13
Vote:
 

Mathias, makes no difference unfortunately.

 

Daniel, I hate these kinds of errors that occasionally creep up and next time it happens you can never remember how you solved it. :) Checked the directory and it's all fine.

 

Really stumped on this one!

#80040
Jan 14, 2014 9:28
Vote:
 

Hmm I see your configuration is for chart with .NET 3.5 but you are compiling against .NET 4.0. Any special reason you are not using the chart control that exist in .NET 4.0. Can you check your assembly references to see if you are actually using the .NET 3.5 version of the control? Might want to switch to using the .NET 4.0 version as well since this one is built into the framework.

#80043
Jan 14, 2014 9:59
Vote:
 

You've probably already checked, but do you have any other handlers registered in a httpHandler section?

#80044
Jan 14, 2014 10:00
Vote:
 

Daniel, I've tried using the 4.0 version but still getting the same error.

Mathias, there were other handlers as well, I removed them but still no dice.

#80051
Jan 14, 2014 12:57
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.