Petter Forss
Top achievements
Rank 1
Petter Forss
asked on 11 May 2010, 09:59 AM
Hi,
I have followed all posts to this and partly it is solved for me.
I added MicrosoftAjax.js and MicrosoftAjaxWebForms.js in /scripts folder and referred to them in Radaxajxmanager:
<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
<asp:ScriptReference Assembly="System.Web.Extensions" Name="MicrosoftAjax.js" Path="~/Scripts/MicrosoftAjax.js" />
<asp:ScriptReference Assembly="System.Web.Extensions" Name="MicrosoftAjaxWebForms.js" Path="~/Scripts/MicrosoftAjaxWebForms.js" />
</Scripts>
</telerik:RadScriptManager>
This workis in RELEASE-mode but the problems is still there in DEBUG-mode!?
What is missing or differs between debug and release...?
Best regards, Petter
I have followed all posts to this and partly it is solved for me.
I added MicrosoftAjax.js and MicrosoftAjaxWebForms.js in /scripts folder and referred to them in Radaxajxmanager:
<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
<asp:ScriptReference Assembly="System.Web.Extensions" Name="MicrosoftAjax.js" Path="~/Scripts/MicrosoftAjax.js" />
<asp:ScriptReference Assembly="System.Web.Extensions" Name="MicrosoftAjaxWebForms.js" Path="~/Scripts/MicrosoftAjaxWebForms.js" />
</Scripts>
</telerik:RadScriptManager>
This workis in RELEASE-mode but the problems is still there in DEBUG-mode!?
What is missing or differs between debug and release...?
Best regards, Petter
3 Answers, 1 is accepted
0
Petter Forss
Top achievements
Rank 1
answered on 11 May 2010, 10:06 AM
Hi, Fyi
The AjaxToolkit is 4.0 and my web config as below :
| <?xml version="1.0"?> |
| <configuration> |
| <appSettings> |
| <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled"/> |
| <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled"/> |
| </appSettings> |
| <system.web> |
| <roleManager enabled="true" defaultProvider="AvancitSqlRoleProvider"> |
| <providers> |
| <add connectionStringName="ConnectionStringDebug" applicationName="krakan" name="AvancitSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
| </providers> |
| </roleManager> |
| <compilation debug="true" targetFramework="4.0"> |
| <codeSubDirectories> |
| <add directoryName="CSharp"/> |
| </codeSubDirectories> |
| <assemblies> |
| <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> |
| <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> |
| <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> |
| <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation> |
| <pages> |
| <controls> |
| <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/> |
| </controls> |
| </pages> |
| <httpHandlers> |
| <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/> |
| <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/> |
| <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/> |
| <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/> |
| <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/> |
| </httpHandlers> |
| <httpModules> |
| <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/> |
| <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/> |
| </httpModules> |
| </system.web> |
| <system.webServer> |
| <validation validateIntegratedModeConfiguration="false"/> |
| <modules runAllManagedModulesForAllRequests="true"> |
| <remove name="RadUploadModule"/> |
| <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode"/> |
| <remove name="RadCompression"/> |
| <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode"/> |
| </modules> |
| <handlers> |
| <remove name="ChartImage_axd"/> |
| <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode"/> |
| <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/> |
| <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode"/> |
| <remove name="Telerik_Web_UI_DialogHandler_aspx"/> |
| <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode"/> |
| <remove name="Telerik_RadUploadProgressHandler_ashx"/> |
| <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode"/> |
| <remove name="Telerik_Web_UI_WebResource_axd"/> |
| <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/> |
| </handlers> |
| </system.webServer> |
| </configuration> |
0
Petter Forss
Top achievements
Rank 1
answered on 11 May 2010, 10:16 AM
The error can have many reasons (may exmaples out there...)
In debug mode the includescripts for Ajax looks like to be: MicrosoftAjax.debug.js; the error in scriptdebugger is:
I got the MicrosoftAjax.js and MicrosoftAjaxWebForms.js from another telerik-post ; How do I get the corresponding to try with?
I tried to copy and rename the original ones and I do NOT get the error anymore. This is OK fro me, I will leave this like this a while.
In debug mode the includescripts for Ajax looks like to be: MicrosoftAjax.debug.js; the error in scriptdebugger is:
| <script src="Scripts/MicrosoftAjax.debug.js" type="text/javascript"></script> |
| <script type="text/javascript"> |
| //<![CDATA[ |
| if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.'); |
| //]]> |
I got the MicrosoftAjax.js and MicrosoftAjaxWebForms.js from another telerik-post ; How do I get the corresponding to try with?
I tried to copy and rename the original ones and I do NOT get the error anymore. This is OK fro me, I will leave this like this a while.
0
Growls
Top achievements
Rank 1
answered on 03 Jun 2010, 02:03 AM
I am having the same trouble with this.
I upgraded to VS 2010, re-installed telerik 2010.1 so that I have a bin40 folder, downloaded AJAX toolkit 4.0 and referenced the DLL, and referenced telerik 4.0 from the bin40 folder. I then changed the project to use .net 4.0.
following these steps gets me the client side framework failed to load error.
I can not find the other post that explains why we need to use the MicrosoftAjax.js and MicrosoftAjaxWebForms.js files?
I searched and found these js files and referenced them in radajaxmanager.
After referencing them I get a different JS error:
a._events is undefined
http://localhost/mypage/Scripts/MicrosoftAjax.debug.js
Line 5
and then after that error:
Telerik is not defined
http://localhost/mypage/logon.aspx
Line 147
<EDIT>
NEVERMIND! i fixed it by using the upgrade wizard to get the latest version, then removed the js file references and now it works.
I upgraded to VS 2010, re-installed telerik 2010.1 so that I have a bin40 folder, downloaded AJAX toolkit 4.0 and referenced the DLL, and referenced telerik 4.0 from the bin40 folder. I then changed the project to use .net 4.0.
following these steps gets me the client side framework failed to load error.
I can not find the other post that explains why we need to use the MicrosoftAjax.js and MicrosoftAjaxWebForms.js files?
I searched and found these js files and referenced them in radajaxmanager.
After referencing them I get a different JS error:
a._events is undefined
http://localhost/mypage/Scripts/MicrosoftAjax.debug.js
Line 5
and then after that error:
Telerik is not defined
http://localhost/mypage/logon.aspx
Line 147
<EDIT>
NEVERMIND! i fixed it by using the upgrade wizard to get the latest version, then removed the js file references and now it works.