This is a migrated thread and some comments may be shown as answers.

Update messed up my project!!!

10 Answers 107 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Duncan
Top achievements
Rank 2
Duncan asked on 04 Nov 2011, 08:10 PM
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

10 Answers, 1 is accepted

Sort by
0
Duncan
Top achievements
Rank 2
answered on 04 Nov 2011, 08:12 PM
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
0
Duncan
Top achievements
Rank 2
answered on 04 Nov 2011, 08:14 PM
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.
0
Duncan
Top achievements
Rank 2
answered on 04 Nov 2011, 08:15 PM
The above error what why i attempted to us the RadScriptManager in the first place...

Any help would be welcome!!
0
Duncan
Top achievements
Rank 2
answered on 07 Nov 2011, 04:24 PM
Can anyone give me any assistance as to why my project is reacting in this way?
0
Simon
Telerik team
answered on 09 Nov 2011, 01:48 PM
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
0
Duncan
Top achievements
Rank 2
answered on 09 Nov 2011, 04:18 PM
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?
0
Simon
Telerik team
answered on 10 Nov 2011, 08:23 PM
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
0
Duncan
Top achievements
Rank 2
answered on 10 Nov 2011, 08:32 PM
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
0
Accepted
Simon
Telerik team
answered on 11 Nov 2011, 10:28 AM
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
0
Duncan
Top achievements
Rank 2
answered on 11 Nov 2011, 05:26 PM
Thanks Simon,

That seems to do the trick...
Tags
Ajax
Asked by
Duncan
Top achievements
Rank 2
Answers by
Duncan
Top achievements
Rank 2
Simon
Telerik team
Share this question
or