'~/Telerik.Web.UI.WebResource.axd' is missing in web.config

9 posts, 0 answers
  1. Jo
    Jo avatar
    4 posts
    Member since:
    Sep 2012

    Posted 11 Sep 2012 Link to this post

    I get this error using Sitecore:

    '~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidOperationException: '~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [InvalidOperationException: '~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager]
       Telerik.Web.UI.RadScriptManager.OnPreRender(EventArgs e) +161
       System.Web.UI.Control.PreRenderRecursiveInternal() +80
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    



    I have tried adding lines like this with the correct versions for my DLLs:
            <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2010.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />

    I have this at the moment:
    <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />

    If I create a blank page and drag the control on from my toolbox I get a red message on it saying 'Error Cannot render control' so I can't get it to auto add the necessary stuff into the web.config.

    This works across our sites and on my colleagues computers but not mine.

    What is missing?

  2. Rumen
    Admin
    Rumen avatar
    12568 posts
    Member since:
    Sep 2012

    Posted 11 Sep 2012 Link to this post

    Hi,

    These are the handlers needed for RadEditor and RadScriptManager:

    <httpHandlers>
          <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
          <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
    </httpHandlers>

    and

    <system.webServer>
        <modules runAllManagedModulesForAllRequests="true"/>
        <validation validateIntegratedModeConfiguration="false"/>
        <handlers>
          <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler"/>
          <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler"/>
          <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
        </handlers>
      </system.webServer>

    It is not needed to specify fully qualified names and I do not recommend you to set them to avoid versioning problems.


    All the best,
    Rumen
    the Telerik team

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.

  3. Jo
    Jo avatar
    4 posts
    Member since:
    Sep 2012

    Posted 11 Sep 2012 Link to this post

    I tried these with no luck - I get exactly the same error. It was pretty much what we had anyway.

    Would there be anything else that would be causing this?

  4. Jo
    Jo avatar
    4 posts
    Member since:
    Sep 2012

    Posted 12 Sep 2012 Link to this post

    Still broken - any ideas!?

  5. Rumen
    Admin
    Rumen avatar
    12568 posts
    Member since:
    Sep 2012

    Posted 12 Sep 2012 Link to this post

    Hi,

    You can try the following:

    Add a <location> section to the application configuration file to allow access to Telerik.Web.UI.WebResource.axd to all users, like:

    Copy Code
    <configuration>
    ...
    <location path="Telerik.Web.UI.WebResource.axd">
       <system.web>
         <authorization>
           <allow users="*"/>
         </authorization>
       </system.web>
     </location>
    ...
    </configuration>


    You can also check this forum thread on the subject: IIS7 and Telerik.Web.UI.WebResource.axd' is missing in web.config and this online resource Resolving the error: ~/Telerik.Web.UI.WebResource.axd is missing in web.config.

    Regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.

  6. Jo
    Jo avatar
    4 posts
    Member since:
    Sep 2012

    Posted 13 Sep 2012 Link to this post

    Changing from integrated to classic fixed it.

    Thank you so much for the help! Very much appreciated. =)

  7. Nhat
    Nhat avatar
    1 posts
    Member since:
    Dec 2012

    Posted 29 Dec 2012 Link to this post

    Thanks Rumen
    You are Genius!!

  8. Daniel
    Daniel avatar
    6 posts
    Member since:
    Jan 2012

    Posted 28 Feb Link to this post

    that httpHandlers tag needs to go INSIDE of system.web in the web.config file***

  9. Ianko
    Admin
    Ianko avatar
    460 posts
    Member since:
    Jun 2013

    Posted 04 Mar Link to this post

    Hello Daniel,

    Yes, the httpHandlers should be placed in the system.web section and the handlers - in system.webServer. You can find additional information on this matter in this KB article.

    Regards,
    Ianko
    Telerik

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.

Back to Top