Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Chart > error 404.0 when showing rad chart image in IIS7

Not answered error 404.0 when showing rad chart image in IIS7

Feed from this thread
  • mansour avatar

    Posted on Feb 13, 2009 (permalink)

    Hello,
       I have an application which is working well under IIS6, but when I am using it under IIS7, in the page that has rad chart, I am getting this error:

    HTTP Error 404.0 - Not Found

    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

    Detailed Error Information
    Module IIS Web Core
    Notification MapRequestHandler
    Handler StaticFile
    Error Code 0x80070002
    Requested URL http://localhost:80/smarTrend/EnterprisePages/ChartImage.axd?UseSession=true&ChartID=b40fd0b5-683d-4efc-acce-8460a749ebdf_chart_ctl00$BodyContentPlaceHolder$LowerChart&imageFormat=Jpeg&random=0.786466626816646
    Physical Path C:\MyWorks\SmarTrend\EnterprisePages\ChartImage.axd
    Logon Method Anonymous
    Logon User Anonymous
    Most likely causes:
    • The directory or file specified does not exist on the Web server.
    • The URL contains a typographical error.
    • A custom filter or module, such as URLScan, restricts access to the file.
    Things you can try:
    • Create the content on the Web server.
    • Review the browser URL.
    • Create a tracing rule to track failed requests for this HTTP status code and see which module is calling SetStatus. For more information about creating a tracing rule for failed requests, click here.
    Links and More Information

    I have the correct http handler in my web.config:

    <

     

    add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

     

    <

     

    add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

     

    <

     

    add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

     

    <

     

    add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

    Could somebody help me to find what is the problem?

    Best regards

     

    Reply

  • Giuseppe Giuseppe admin's avatar

    Posted on Feb 16, 2009 (permalink)

    Hello mansour,

    Please review the following troubleshooting section here -- when in Integrated mode, IIS7 reads the application configuration from the <system.webServer> section group in the application configuration file, but not the <system.web> section group.

    Let’s suppose you have the following structure of the web.config file:

    <system.web>



          <httpHandlers>

                … 

    <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2008.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" /> 

                …

          </httpHandlers>

    </system.web>

    <system.webServer>

          <handlers>

                …

          </handlers>

    </system.webServer>

    All you need to do to manually register the HttpHandler for the IIS7 Integrated mode is copy the Telerik HttpHandler to the <handlers> section of the <system.webServer> section group, delete the validate attribute and give it a name, e.g.:

     

    <system.webServer>

          <handlers>

                …

    <add name=”ChartHandler” path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2008.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"  /> 
                …

          </handlers>

    </system.webServer>


    Hope this helps.


    Best wishes,
    Manuel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

    Reply

  • Posted on Jan 14, 2012 (permalink)

    That worked liked a charm after hours of searching for a solution!

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Chart > error 404.0 when showing rad chart image in IIS7
Related resources for "error 404.0 when showing rad chart image in IIS7"

ASP.NET Chart Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]