error 404.0 when showing rad chart image in IIS7

Thread is closed for posting
3 posts, 0 answers
  1. mansour
    mansour avatar
    31 posts
    Member since:
    Nov 2007

    Posted 13 Feb 2009 Link to this post

    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

     

  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 16 Feb 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. bilsa
    bilsa avatar
    11 posts
    Member since:
    Oct 2012

    Posted 14 Jan 2012 Link to this post

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