Update messed up my project!!!

11 posts, 1 answers
  1. Duncan
    Duncan avatar
    93 posts
    Member since:
    Jul 2012

    Posted 04 Nov 2011 Link to this post

    I just ran the Telerik update wizard because for some reason my web.config was not setup to run RadControls. It modified my web.config. I am not getting the following error:

    ASP.NET Ajax client-side framework failed to load.

    What is going on? Can someone please help me unscrew my project...

    Thanks,
    Duncan
  2. Duncan
    Duncan avatar
    93 posts
    Member since:
    Jul 2012

    Posted 04 Nov 2011 Link to this post

    If i revert my web.config back to the backup i get this error:

    '~/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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Duncan
    Duncan avatar
    93 posts
    Member since:
    Jul 2012

    Posted 04 Nov 2011 Link to this post

    If i refrain from using the RadScriptManager and revert back to using a normal ScriptManager, my project works fine. Except on some pages when i operation is performed i receive the following error:

    Sys.InvalidOperationException: A control is already associated with the element.
  5. Duncan
    Duncan avatar
    93 posts
    Member since:
    Jul 2012

    Posted 04 Nov 2011 Link to this post

    The above error what why i attempted to us the RadScriptManager in the first place...

    Any help would be welcome!!
  6. Duncan
    Duncan avatar
    93 posts
    Member since:
    Jul 2012

    Posted 07 Nov 2011 Link to this post

    Can anyone give me any assistance as to why my project is reacting in this way?
  7. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 09 Nov 2011 Link to this post

    Hello Duncan,

    If RadScriptManager is deployed and you get the missing handler exception, please open a page with the control in VS Designer, click on the control's designer, open its smart tag and choose the register Telerik.Web.UI.WebResource.axd handler in web.config.

    After the registration process finishes you should be able to run your pages without problems. Please let me know how it goes.

    Best wishes,
    Simon
    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
  8. Duncan
    Duncan avatar
    93 posts
    Member since:
    Jul 2012

    Posted 09 Nov 2011 Link to this post

    Hi Simon,

    I added the RadScriptManager back to my project and registered it as you suggested. When i do this i recieve the following error:

    Microsoft JScript runtime error: ASP.NET Ajax client-side framework failed to load.

    Am i missing something?
  9. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 10 Nov 2011 Link to this post

    Hi Duncan,

    There may be various reasons for this error. Could you please let me know whether you have authentication enabled in your project?

    Kind regards,
    Simon
    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
  10. Duncan
    Duncan avatar
    93 posts
    Member since:
    Jul 2012

    Posted 10 Nov 2011 Link to this post

    Yes i do:

    <authentication mode="Forms">
      <forms cookieless="AutoDetect" slidingExpiration="true" loginUrl="Login.aspx" name=".ASPXFORMSAUTH">
      </forms>
    </authentication>

    I'm running the following:

    • Framework 4.0
    • Windows 7
    • IIS 7
    • RadControls v.2011.2.915.40 (Trial) - I plan on a full version purchase if i can get this issue fixed

    Here is my full web.config file, minus the sensitive parts:

    <?xml version="1.0"?>
    <configuration>
      <appSettings>
        ...
      </appSettings>
      <connectionStrings>
        ...
      </connectionStrings>
      <system.web>
        <compilation debug="true" targetFramework="4.0">
          <assemblies>
            <add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="Telerik.OpenAccess, Version=2011.2.713.3, Culture=neutral, PublicKeyToken=7CE17EEAF1D59342" />
            <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          </assemblies>
        </compilation>
        <authentication mode="Forms">
          <forms cookieless="AutoDetect" slidingExpiration="true" loginUrl="Login.aspx" name=".ASPXFORMSAUTH">
          </forms>
        </authentication>
        <authorization>
          <deny users="?" />
        </authorization>
        <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" theme="......." styleSheetTheme=".......">
          <controls>
            <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
    ...
          </controls>
        </pages>
        <httpHandlers>
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
        </httpHandlers>
      </system.web>
      <system.serviceModel>
        <bindings />
        <client />
      </system.serviceModel>
      <system.webServer>
        <defaultDocument>
          <files>
            <add value="Default.aspx" />
          </files>
        </defaultDocument>
        <modules>
          <remove name="QueryStringModule" />
          <add name="QueryStringModule" type="QueryStringModule" />
        </modules>
        <validation validateIntegratedModeConfiguration="false" />
        <handlers>
          <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
        </handlers>
      </system.webServer>
    </configuration>

    Please let me know if you need any more details...

    Duncan
  11. Answer
    Simon
    Admin
    Simon avatar
    2281 posts

    Posted 11 Nov 2011 Link to this post

    Hello Duncan,

    Thank you for this info.

    The error you are seeing after you configured RadScriptManager to work properly most commonly arises if web forms authentication is used. More specifically in this way access to the Telerik.Web.UI.WebResource.axd handler serving all the scripts and style sheets is denied. You need to explicitly allow access to the handler in your web.config.

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

    A bit more info about the problem you could find here.

    I hope this helps.

    All the best,
    Simon
    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
  12. Duncan
    Duncan avatar
    93 posts
    Member since:
    Jul 2012

    Posted 11 Nov 2011 Link to this post

    Thanks Simon,

    That seems to do the trick...
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017