Ajax client-side framework failed to loadhttp://forums.asp.net/t/1207960.aspx/1?Ajax+client+side+framework+failed+to+loadSun, 26 Aug 2012 18:00:49 -040012079602119985http://forums.asp.net/p/1207960/2119985.aspx/1?Ajax+client+side+framework+failed+to+loadAjax client-side framework failed to load <p>When I try to use an UpdatePanel in&nbsp;a webform using Visual Studio.NET 2008 I get &nbsp;&quot;Ajax client-side framework failed to load&quot; error and AJAX Does not work.</p> <p>&nbsp;How can I fix this????<br> <br> &lt;script src=&quot;/ASPDotNet35Examples/WebResource.axd?d=azmqp0v9d4d4-2U4D9jRag2&amp;amp;t=633363291515312500&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br> &lt;script src=&quot;/ASPDotNet35Examples/ScriptResource.axd?d=Y5wLlJD1QTVUENbzRfigFCoVGEI8H9VyTeQOp461b5aChluhaSX4pObxNKRmgYM8GJYeZd4k_sF7xhFhg9Y7GKYTl-uBE_ykfUiNZ-tYZN41&amp;amp;t=633361749358906250&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br> &lt;script type=&quot;text/javascript&quot;&gt;<br> //&lt;![CDATA[<br> if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');<br> </p> <p>Thanks</p> <p>&nbsp;</p> <p>VIEWSOURCE TEXT (See .aspx page below this)</p> <p>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;</p> <p>&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;&gt;<br> &lt;head&gt;&lt;title&gt;<br> &nbsp;Untitled Page<br> &lt;/title&gt;<br> &nbsp;&nbsp;&nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br> &nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function pageLoad() {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br> &nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp; &lt;/script&gt;<br> &lt;/head&gt;<br> &lt;body&gt;<br> &nbsp;&nbsp;&nbsp; &lt;form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;Default.aspx&quot; id=&quot;form1&quot;&gt;<br> &lt;div&gt;<br> &lt;input type=&quot;hidden&quot; name=&quot;__EVENTTARGET&quot; id=&quot;__EVENTTARGET&quot; value=&quot;&quot; /&gt;<br> &lt;input type=&quot;hidden&quot; name=&quot;__EVENTARGUMENT&quot; id=&quot;__EVENTARGUMENT&quot; value=&quot;&quot; /&gt;<br> &lt;input type=&quot;hidden&quot; name=&quot;__VIEWSTATE&quot; id=&quot;__VIEWSTATE&quot; value=&quot;/wEPDwUJLTcyNDAwNzE3D2QWAgIDD2QWBAIDDw8WAh4EVGV4dAUUMS8xOS8yMDA4IDE6MDg6MDYgUE1kZAIFD2QWAmYPZBYCAgMPDxYCHwAFFDEvMTkvMjAwOCAxOjA4OjA2IFBNZGRk8E5I/hsGRi2V7K5rHzw0HdsOjLc=&quot; /&gt;<br> &lt;/div&gt;</p> <p>&lt;script type=&quot;text/javascript&quot;&gt;<br> //&lt;![CDATA[<br> var theForm = document.forms['form1'];<br> if (!theForm) {<br> &nbsp;&nbsp;&nbsp; theForm = document.form1;<br> }<br> function __doPostBack(eventTarget, eventArgument) {<br> &nbsp;&nbsp;&nbsp; if (!theForm.onsubmit || (theForm.onsubmit() != false)) {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theForm.__EVENTTARGET.value = eventTarget;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theForm.__EVENTARGUMENT.value = eventArgument;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theForm.submit();<br> &nbsp;&nbsp;&nbsp; }<br> }<br> //]]&gt;<br> &lt;/script&gt;</p> <p><br> &lt;script src=&quot;/ASPDotNet35Examples/WebResource.axd?d=azmqp0v9d4d4-2U4D9jRag2&amp;amp;t=633363291515312500&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</p> <p><br> &lt;script src=&quot;/ASPDotNet35Examples/ScriptResource.axd?d=Y5wLlJD1QTVUENbzRfigFCoVGEI8H9VyTeQOp461b5aChluhaSX4pObxNKRmgYM8GJYeZd4k_sF7xhFhg9Y7GKYTl-uBE_ykfUiNZ-tYZN41&amp;amp;t=633361749358906250&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br> &lt;script type=&quot;text/javascript&quot;&gt;<br> //&lt;![CDATA[<br> if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');<br> //]]&gt;<br> &lt;/script&gt;</p> <p>&lt;script src=&quot;/ASPDotNet35Examples/ScriptResource.axd?d=Y5wLlJD1QTVUENbzRfigFCoVGEI8H9VyTeQOp461b5aChluhaSX4pObxNKRmgYM8mBtROwpS_IciN9-AWwMyu_8bSDiNjlnypTIAG7a-WkekOnc5mMxGvAOL_pwDy3470&amp;amp;t=633361749358906250&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br> &nbsp;&nbsp;&nbsp; &lt;div&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br> //&lt;![CDATA[<br> Sys.WebForms.PageRequestManager._initialize('ScriptManager1', document.getElementById('form1'));<br> Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tUpdatePanel1'], [], [], 90);<br> //]]&gt;<br> &lt;/script&gt;</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span id=&quot;Label1&quot;&gt;1/19/2008 1:08:06 PM&lt;/span&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span id=&quot;UpdatePanel1&quot;&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=&quot;submit&quot; name=&quot;Button1&quot; value=&quot;Button&quot; id=&quot;Button1&quot; /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span id=&quot;Label2&quot;&gt;1/19/2008 1:08:06 PM&lt;/span&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/span&gt;<br> &nbsp;&nbsp;&nbsp; &lt;/div&gt;<br> &nbsp;&nbsp;&nbsp; <br> &lt;div&gt;</p> <p>&nbsp;&lt;input type=&quot;hidden&quot; name=&quot;__EVENTVALIDATION&quot; id=&quot;__EVENTVALIDATION&quot; value=&quot;/wEWAgLYnMvIDwKM54rGBsicyjmERSgBmZ32A0NUSWujcrPE&quot; /&gt;<br> &lt;/div&gt;</p> <p>&lt;script type=&quot;text/javascript&quot;&gt;<br> //&lt;![CDATA[<br> Sys.Application.initialize();<br> //]]&gt;<br> &lt;/script&gt;<br> &lt;/form&gt;<br> &lt;/body&gt;<br> &lt;/html&gt;<br> </p> <p>&nbsp;</p> <p>ASPX PAGE CODE</p> <font size="2">&lt;%</font><font color="#0000ff" size="2">@</font><font size="2"> </font> <font color="#a31515" size="2">Page</font><font size="2"> </font><font color="#ff0000" size="2">Language</font><font color="#0000ff" size="2">=&quot;VB&quot;</font><font size="2"> </font><font color="#ff0000" size="2">AutoEventWireup</font><font color="#0000ff" size="2">=&quot;false&quot;</font><font size="2"> </font><font color="#ff0000" size="2">CodeFile</font><font color="#0000ff" size="2">=&quot;Default.aspx.vb&quot;</font><font size="2"> </font><font color="#ff0000" size="2">Inherits</font><font color="#0000ff" size="2">=&quot;AJAX_Default&quot;</font><font size="2"> %&gt;</font><font size="2"> <p>&lt;%</font><font color="#0000ff" size="2">@</font><font size="2"> </font><font color="#a31515" size="2">Register</font><font size="2"> </font><font color="#ff0000" size="2">assembly</font><font color="#0000ff" size="2">=&quot;System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;</font><font size="2"> </font><font color="#ff0000" size="2">namespace</font><font color="#0000ff" size="2">=&quot;System.Web.UI&quot;</font><font size="2"> </font><font color="#ff0000" size="2">tagprefix</font><font color="#0000ff" size="2">=&quot;asp&quot;</font><font size="2"> %&gt;</p> </font><font color="#0000ff" size="2">&lt;!</font><font color="#a31515" size="2">DOCTYPE</font><font size="2"> </font><font color="#ff0000" size="2">html</font><font size="2"> </font><font color="#ff0000" size="2">PUBLIC</font><font size="2"> </font><font color="#0000ff" size="2">&quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;</font><font size="2"> </font><font color="#0000ff" size="2">&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</font><font color="#0000ff" size="2"> <p>&lt;</font><font color="#a31515" size="2">html</font><font size="2"> </font><font color="#ff0000" size="2">xmlns</font><font color="#0000ff" size="2">=&quot;http://www.w3.org/1999/xhtml&quot;&gt;</p> <p>&lt;</font><font color="#a31515" size="2">head</font><font size="2"> </font><font color="#ff0000" size="2">runat</font><font color="#0000ff" size="2">=&quot;server&quot;&gt;</p> </font><font size="2"> <p></font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">title</font><font color="#0000ff" size="2">&gt;</font><font size="2">Untitled Page</font><font color="#0000ff" size="2">&lt;/</font><font color="#a31515" size="2">title</font><font color="#0000ff" size="2">&gt;</p> </font><font size="2"> <p></font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">script</font><font size="2"> </font><font color="#ff0000" size="2">type</font><font color="#0000ff" size="2">=&quot;text/javascript&quot;&gt;</p> </font><font size="2"> <p>&nbsp;</p> </font><font color="#0000ff" size="2">function</font><font size="2"> pageLoad() {</font><font size="2"> <p>}</p> <p>&nbsp;</p> </font><font color="#0000ff" size="2">&lt;/</font><font color="#a31515" size="2">script</font><font color="#0000ff" size="2">&gt;</font><font color="#0000ff" size="2"> <p>&lt;/</font><font color="#a31515" size="2">head</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#a31515" size="2">body</font><font color="#0000ff" size="2">&gt;</p> </font><font size="2"> <p></font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">form</font><font size="2"> </font><font color="#ff0000" size="2">id</font><font color="#0000ff" size="2">=&quot;form1&quot;</font><font size="2"> </font><font color="#ff0000" size="2">runat</font><font color="#0000ff" size="2">=&quot;server&quot;&gt;</p> </font><font size="2"> <p></font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">div</font><font color="#0000ff" size="2">&gt;</p> </font><font size="2"> <p></font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">ScriptManager</font><font size="2"> </font><font color="#ff0000" size="2">ID</font><font color="#0000ff" size="2">=&quot;ScriptManager1&quot;</font><font size="2"> </font><font color="#ff0000" size="2">SupportsPartialRendering</font><font color="#0000ff" size="2">=&quot;True&quot;</font><font size="2"> </font><font color="#ff0000" size="2">runat</font><font color="#0000ff" size="2">=&quot;server&quot;&gt;&lt;/</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">ScriptManager</font><font color="#0000ff" size="2">&gt;</p> </font><font size="2"> <p>&nbsp;</p> <p></font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">br</font><font size="2"> </font><font color="#0000ff" size="2">/&gt;</p> </font><font size="2"> <p></font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">Label</font><font size="2"> </font><font color="#ff0000" size="2">ID</font><font color="#0000ff" size="2">=&quot;Label1&quot;</font><font size="2"> </font><font color="#ff0000" size="2">runat</font><font color="#0000ff" size="2">=&quot;server&quot;&gt;&lt;/</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">Label</font><font color="#0000ff" size="2">&gt;</p> </font><font size="2"> <p></font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">br</font><font size="2"> </font><font color="#0000ff" size="2">/&gt;</p> </font><font size="2"> <p></font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">br</font><font size="2"> </font><font color="#0000ff" size="2">/&gt;</p> </font><font size="2"> <p></font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">UpdatePanel</font><font size="2"> </font><font color="#ff0000" size="2">ID</font><font color="#0000ff" size="2">=&quot;UpdatePanel1&quot;</font><font size="2"> </font><font color="#ff0000" size="2">runat</font><font color="#0000ff" size="2">=&quot;server&quot;</font><font size="2"> </font><font color="#ff0000" size="2">RenderMode</font><font color="#0000ff" size="2">=&quot;Inline&quot;&gt;</p> </font><font size="2"> <p></font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">ContentTemplate</font><font color="#0000ff" size="2">&gt;</p> </font><font size="2"> <p></font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">Button</font><font size="2"> </font><font color="#ff0000" size="2">ID</font><font color="#0000ff" size="2">=&quot;Button1&quot;</font><font size="2"> </font><font color="#ff0000" size="2">runat</font><font color="#0000ff" size="2">=&quot;server&quot;</font><font size="2"> </font><font color="#ff0000" size="2">Text</font><font color="#0000ff" size="2">=&quot;Button&quot;</font><font size="2"> </font><font color="#0000ff" size="2">/&gt;</p> </font><font size="2"> <p></font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">Label</font><font size="2"> </font><font color="#ff0000" size="2">ID</font><font color="#0000ff" size="2">=&quot;Label2&quot;</font><font size="2"> </font><font color="#ff0000" size="2">runat</font><font color="#0000ff" size="2">=&quot;server&quot;&gt;&lt;/</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">Label</font><font color="#0000ff" size="2">&gt;</p> </font><font size="2"> <p></font><font color="#0000ff" size="2">&lt;/</font><font color="#a31515" size="2">ContentTemplate</font><font color="#0000ff" size="2">&gt;</p> </font><font size="2"> <p></font><font color="#0000ff" size="2">&lt;/</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">UpdatePanel</font><font color="#0000ff" size="2">&gt;</p> </font><font size="2"> <p></font><font color="#0000ff" size="2">&lt;/</font><font color="#a31515" size="2">div</font><font color="#0000ff" size="2">&gt;</p> </font><font size="2"></font><font color="#0000ff" size="2">&lt;/</font><font color="#a31515" size="2">form</font><font color="#0000ff" size="2">&gt;</font><font color="#0000ff" size="2"> <p>&lt;/</font><font color="#a31515" size="2">body</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;/</font><font color="#a31515" size="2">html</font><font color="#0000ff" size="2">&gt;</p> </font> 2008-01-19T19:09:57-05:002120001http://forums.asp.net/p/1207960/2120001.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>You need to install Ajax Extensions and Ajax ToolKit&nbsp;for .NET 3.5.</p> <p>Check here : <a href="http://www.asp.net/ajax/downloads/">http://www.asp.net/ajax/downloads/</a></p> <p>&nbsp;</p> <p>Hope this helps,</p> <p>Joseph</p> 2008-01-19T19:25:15-05:002120031http://forums.asp.net/p/1207960/2120031.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>I downloaded the Ajax extensions, but nowhere does it say how to install them.</p> <p>Can you help? Thanks!</p> 2008-01-19T20:17:59-05:002120067http://forums.asp.net/p/1207960/2120067.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>I got it. When Icreated the website I used the ASP.NET Reports Website Template instead of the ASP.NET Web Site template.</p> <p>Each creates a different web.config.</p> <p>So I copied the Web.Config from the ASP.NET Website into the ASP.NET Reports Website and all works fine!</p> 2008-01-19T21:28:38-05:002351126http://forums.asp.net/p/1207960/2351126.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>I tried the suggestions here and on Experts Exchange, but they did not resolve my problem.&nbsp; It turned out that my URL rewriting (which uses <strong>Application_BeginRequest</strong> in the <strong>global.asax)</strong> was the culprit.</p> <p>&nbsp;This post had the solution: <a href="http://weblogs.asp.net/lkempe/archive/2007/08/04/asp-net-ajax-and-url-rewriting-issue.aspx"> http://weblogs.asp.net/lkempe/archive/2007/08/04/asp-net-ajax-and-url-rewriting-issue.aspx</a></p> <p>All I did was add this line:</p> <font color="#2b91af" size="2"> <p>ScriptManager</font><font size="2">.GetCurrent(Page).AuthenticationService.Path = </font><font color="#a31515" size="2">&quot;/Authentication_JSON_AppService.axd&quot;</font><font size="2">;</font></p> <p><font size="2">to my MasterPage codebehind&nbsp;in the Page.Load.</p> </font> 2008-05-12T03:05:06-04:002819906http://forums.asp.net/p/1207960/2819906.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>&nbsp;First of all you should check your web.config file.if it is fine then u check your bin folder.you can add system.web.extensions.dll &amp; system.web.extensions.design.dll in bin.if there is still a problen then reconfigure iis setting or you can reinstall iis .if still a problem then burn down your machine and buy one branded .....then it will.......................<br> </p> 2008-12-19T09:06:15-05:002901746http://forums.asp.net/p/1207960/2901746.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>We are getting this same Ajax error when trying to implement simple code on a server. We have 2 test servers running Windows 2003 and IIS 6.0. On the new server, we were getting this error so created some simple Ajax code and put it in a virtual directory. It works fine on the old test server but gets the Ajax error on the new server. We made sure both servers are running the same framework:</p> <p>.NET Framework 2.0<br> &nbsp;&nbsp;&nbsp; Exact Version: 2.0.50727.1433<br> &nbsp;&nbsp;&nbsp; Service Pack: 1<br> .NET Framework 3.0<br> &nbsp;&nbsp;&nbsp; Exact Version: 3.1.21022<br> &nbsp;&nbsp;&nbsp; Service Pack: -1<br> .NET Framework 3.5<br> &nbsp;&nbsp;&nbsp; Exact Version: 3.5.21022.8<br> &nbsp;&nbsp;&nbsp; Service Pack: 0&nbsp;</p> <p>We first had 3.5 SP1 on the new test server but since the old server didn't have that, we rolled back to the non SP1 version so the frameworks are identical. Same thing, works fine on old server, not new. The virtual directory's reference folder has:</p> <p>System.Web.Extensions.Design.dll<br> System.Web.Extensions.dll<br> </p> <p>The web.config has the httpHandlers and httpModules sections. Here is the test code:</p> <p>test.aspx:</p> <p>EDIT: The file didn't get inserted correctly for some reason but it's just using a simple UpdatePanel with a TextBox and Button inside the ContentTemplate.</p> <pre class="prettyprint">&lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; CodeFile=&quot;test.aspx.cs&quot; Inherits=&quot;test&quot; %&gt; &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt; &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &quot;server&quot;&gt; &lt;form id=&quot;&lt;span&quot; class=&quot;st&quot;&gt;&quot;form1&quot; runat=&quot;server&quot;&gt; &lt;div&gt; &quot;ScriptManager1&quot; runat=&quot;server&quot;&gt; &quot;UpdatePanel1&quot; runat=&quot;server&quot;&gt; &quot;txttest&quot; runat=&quot;server&quot;&gt; &quot;btntest&quot; runat=&quot;server&quot; Text=&quot;Button&quot; onclick=&quot;btntest_Click&quot; /&gt; &lt;/div&gt; &lt;/form&gt;</pre>&nbsp; <p>test.aspx.cs:</p> <pre class="prettyprint"><span class="kwd">using</span> System;<br><span class="kwd">using</span> System.Collections;<br><span class="kwd">using</span> System.Configuration;<br><span class="kwd">using</span> System.Data;<br><span class="kwd">using</span> System.Linq;<br><span class="kwd">using</span> System.Web;<br><span class="kwd">using</span> System.Web.Security;<br><span class="kwd">using</span> System.Web.UI;<br><span class="kwd">using</span> System.Web.UI.HtmlControls;<br><span class="kwd">using</span> System.Web.UI.WebControls;<br><span class="kwd">using</span> System.Web.UI.WebControls.WebParts;<br><span class="kwd">using</span> System.Xml.Linq;<br><br><span class="kwd">public</span> partial <span class="kwd">class</span> test : System.Web.UI.Page<br>{<br> <span class="kwd">protected void</span> Page_Load(<span class="kwd">object</span> sender, EventArgs e)<br> {<br><br> }<br> <span class="kwd">protected void</span> btntest_Click(<span class="kwd">object</span> sender, EventArgs e)<br> {<br> txttest.Text = <span class="st">"Test"</span>;<br> }<br>}</pre> <p>&nbsp;&nbsp;</p> <p>We are at a loss as to what to try next. Any help would be greatly appreciated! Thanks! <br> </p> 2009-01-29T17:45:40-05:002904272http://forums.asp.net/p/1207960/2904272.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>Solution found for this generic message with many solutions. Ours was that the AXD extension needed to be added to the IIS Application Extensions dialog.<br> </p> 2009-01-30T15:39:38-05:002904435http://forums.asp.net/p/1207960/2904435.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>&nbsp;I also had to add the axd file extension mapping for the site AND uncheck the &quot;Verify File Exists&quot; option for it.<br> </p> 2009-01-30T16:55:19-05:002904570http://forums.asp.net/p/1207960/2904570.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>&nbsp;Yup, that's right. Funny that we have to go through this. You would think that at least installing framework 3.5 would do that for you.<br> </p> 2009-01-30T18:00:14-05:003269851http://forums.asp.net/p/1207960/3269851.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>&nbsp;I also get the same error message, but it happens only to one of our client's machines. They said it started with one machine and it propagated to all the other machines. Its a JavaScript error message thats is popping up on the IE 6. </p> <p><strong>NOTE:</strong></p> <p>I think this is not a Server issue because all our other clients does not have this issue. It happens only for one of our clients. It works perfectly fine of all the others.</p> <p>What might be the problem?</p> <p>&nbsp;</p> 2009-07-01T21:10:25-04:003460625http://forums.asp.net/p/1207960/3460625.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>Adding AXD extension to the IIS Application Extensions worked for me.</p> <p>&nbsp;Thanks much!&nbsp;</p> 2009-10-15T18:46:30-04:003517302http://forums.asp.net/p/1207960/3517302.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>Hi all. I just ran into the same problem in IE, to fix it I needed to add the following to my Web.Config</p> <p>&lt;httpHandlers&gt;</p> <p>&lt;remove verb=&quot;*&quot; path=&quot;*.asmx&quot;/&gt;</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add verb=&quot;*&quot; path=&quot;*.asmx&quot; validate=&quot;false&quot; type=&quot;System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;/&gt;</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add verb=&quot;*&quot; path=&quot;*_AppService.axd&quot; validate=&quot;false&quot; type=&quot;System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;/&gt;</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add verb=&quot;GET,HEAD&quot; path=&quot;ScriptResource.axd&quot; validate=&quot;false&quot; type=&quot;System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;/&gt;</p> <p>&lt;/httpHandlers&gt;</p> <p>&lt;httpModules&gt;</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add type=&quot;System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot;/&gt;</p> <p>&lt;/httpModules&gt;</p> <p>Cheers</p> <p><br> </p> 2009-11-17T09:31:11-05:003539680http://forums.asp.net/p/1207960/3539680.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>Hey huys,</p> <p>&nbsp;</p> <p>after struggling for a while, the solution for me was:</p> <p>rmoving the&nbsp;</p> <p><font color="#ff0000" size="2"><font color="#ff0000" size="2"></p> <p>scriptpath</p> </font></font> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;Scripts/Ajax&quot;</font></font><font size="2"> </font></p> <p><font size="2">in the definition of ScriptManager.</font></p> <p><font size="2"></font>&nbsp;</p> <p><font size="2">that was the way i did it in .net 2.0, but it seems to be different in 3.5.</font></p> <p>&nbsp;</p> 2009-11-30T13:06:32-05:003567155http://forums.asp.net/p/1207960/3567155.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>Ok. </p> <p>Microsoft drives me nuts. </p> <p>I've had this issue and guess what the cause was: the server's DATE was incorrect. (it was set to 2007 due to problems in the CMOS battery) <br> </p> <p>Go figure. <br> </p> 2009-12-15T19:09:24-05:003799291http://forums.asp.net/p/1207960/3799291.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>I wonder if someone could please help me with this problem.I am using framework 3.5 and ajaxtoolkit 3.0.30930. </p> <p>I would like to load ajaxtoolkit&nbsp; javascript files from a directory. I download the scripts from here <a id="fileDownload2" tabindex="9" href="http://ajaxcontroltoolkit.codeplex.com/releases/view/33804#DownloadId=85831"> AJAX Control Toolkit - Script Files Only</a> . </p> <p>Created&nbsp; two&nbsp; subdirectories on my .net project<br> </p> <p>&nbsp;\scriptsAJAX\System.Web.Extensions\3.5.0.0\3.5.30729.196\&nbsp; </p> <p>&nbsp;&nbsp; I copied these two files in&nbsp; the above directory: MicrosoftAjax.debug.js and MicrosoftAjax.js</p> <p>\scriptsAJAX\AjaxControlToolkit&nbsp; &nbsp;</p> <p>&nbsp;&nbsp;&nbsp; The above&nbsp; folder has all the script files (*js) etc.. that i download from ajax control toolkit<br> </p> <p>Now I set the ScriptPath property on ScriptManager to ScriptPath=&quot;~/scriptsajax&quot;</p> <p>&lt;asp:ScriptManager runat=&quot;Server&quot;&nbsp; ScriptPath=&quot;~/scriptsajax&quot;&nbsp; EnablePartialRendering=&quot;true&quot; ID=&quot;ScriptManager1&quot;&nbsp; &gt;<br> &nbsp; &lt;asp:UpdatePanel ID=&quot;UpdatePanel1&quot; runat=&quot;server&quot;&gt;&nbsp;&nbsp;&nbsp; </p> <p>I have a very sample test page that has DropDownList and&nbsp;CalendarExtender.&nbsp; When I browse the&nbsp; page then I get these errors:</p> <p>Error: ASP.NET Ajax client-side framework failed to load.</p> <p>Error: 'Sys' is undefined</p> <p>Yes I&nbsp; did register &lt;%@ Register Assembly=&quot;AjaxControlToolkit&quot; Namespace=&quot;AjaxControlToolkit&quot; TagPrefix=&quot;ajaxToolkit&quot; %&gt;</p> <p>&nbsp;Could someone help me to solve this problem.What files is it missing?&nbsp; Thank you<br> </p> <p>&nbsp;<br> </p> <p><br> </p> 2010-04-22T17:03:07-04:003801543http://forums.asp.net/p/1207960/3801543.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>I had the same problem and adding the lines to the &lt;httpHandlers&gt; section of web.config as <a href="/members/trossr32.aspx">trossr32</a>&nbsp;wrote fixed the problem for me.&nbsp; Thanks!&nbsp;I didn't have to add the part in &lt;httpModules&gt;&nbsp; in fact, I tried, but it gave me a syntax error because &quot;name&quot; is a required element and the line you proivded doesn't use that element.&nbsp; But it worked without that line.</p> <p>I&nbsp; then had an additional problem that I was using &lt;asp:ScriptManager&gt; instead of &lt;asp:ToolkitScriptManager&quot;&gt;&nbsp; Seems to be okay now though.</p> <p>Thanks,</p> <p>Eric</p> 2010-04-23T18:25:42-04:003801703http://forums.asp.net/p/1207960/3801703.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>yes I changed to use the ToolkitScriptManager and I still&nbsp; have the same problem. How many files do you have in the </p> <p>/scripts/System.Web.Extensions\3.5.0.0\3.5.30729.196 ? I only have MicrosoftAjax.debug.js and MicrosoftAjax.js. I also get an error when I execute</p> <p>tthe page that&nbsp; &quot;Microsoft JScript runtime error: Sys.Webforms.PAgeREquestMAnager' is null or not an object&quot;</p> <p>Any ideas if I am missing more files? the following is the view source of the page when I break during debug. thank you<br> </p> <p><br> <br> &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;<br> &lt;head&gt;&lt;link href=&quot;/WebResource.axd?d=dsiR_UkKmlDi_uvQaIQdedJqeqQXWgQTdO9MDscx8pSdkOjb_Kh-sxPVj-6BvdlDgzUBALDzN0GhuX4yD-cwhA2&amp;amp;t=633899266740000000&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot; /&gt;&lt;title&gt;<br> <br> &lt;/title&gt;&lt;/head&gt;<br> &lt;body&gt;<br> &nbsp;&nbsp;&nbsp; &lt;form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;testservervariable.aspx&quot; id=&quot;form1&quot;&gt;<br> &lt;div&gt;<br> &lt;input type=&quot;hidden&quot; name=&quot;ScriptManager1_HiddenField&quot; id=&quot;ScriptManager1_HiddenField&quot; value=&quot;&quot; /&gt;<br> &lt;input type=&quot;hidden&quot; name=&quot;__EVENTTARGET&quot; id=&quot;__EVENTTARGET&quot; value=&quot;&quot; /&gt;<br> &lt;input type=&quot;hidden&quot; name=&quot;__EVENTARGUMENT&quot; id=&quot;__EVENTARGUMENT&quot; value=&quot;&quot; /&gt;<br> &lt;input type=&quot;hidden&quot; name=&quot;__LASTFOCUS&quot; id=&quot;__LASTFOCUS&quot; value=&quot;&quot; /&gt;<br> &lt;input type=&quot;hidden&quot; name=&quot;__VIEWSTATE&quot; id=&quot;__VIEWSTATE&quot; value=&quot;/wEPDwULLTIwNzk1NTk1NzIPZBYCAgMPZBYCAgMPZBYCZg9kFgQCBw8QZA8WAgIBAgIWAhAFBGdyb3cFBGdyb3dnEAUFZ3JvdzIFBWdyb3cyZxYBZmQCCQ8QZGQWAWZkZOZiZIQ34S8&#43;a3is7qt&#43;&#43;QYK/9kC&quot; /&gt;<br> &lt;/div&gt;<br> <br> &lt;script type=&quot;text/javascript&quot;&gt;<br> //&lt;![CDATA[<br> var theForm = document.forms['form1'];<br> if (!theForm) {<br> &nbsp;&nbsp;&nbsp; theForm = document.form1;<br> }<br> function __doPostBack(eventTarget, eventArgument) {<br> &nbsp;&nbsp;&nbsp; if (!theForm.onsubmit || (theForm.onsubmit() != false)) {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theForm.__EVENTTARGET.value = eventTarget;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theForm.__EVENTARGUMENT.value = eventArgument;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theForm.submit();<br> &nbsp;&nbsp;&nbsp; }<br> }<br> //]]&gt;<br> &lt;/script&gt;<br> <br> <br> &lt;script src=&quot;/WebResource.axd?d=F9E1PUksyKhF0JfLSwC_FQ2&amp;amp;t=633919503119659090&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br> <br> <br> &lt;script src=&quot;/scriptsajax/System.Web.Extensions/3.5.0.0/3.5.30729.196/MicrosoftAjax.debug.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br> &lt;script type=&quot;text/javascript&quot;&gt;<br> //&lt;![CDATA[<br> if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');<br> //]]&gt;<br> &lt;/script&gt;<br> <br> &lt;script src=&quot;/scriptsajax/System.Web.Extensions/3.5.0.0/3.5.30729.196/MicrosoftAjaxWebForms.debug.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br> &lt;script src=&quot;/testservervariable.aspx?_TSM_HiddenField_=ScriptManager1_HiddenField&amp;amp;_TSM_CombinedScripts_=%3b%3bAjaxControlToolkit%2c&#43;Version%3d3.0.30930.28736%2c&#43;Culture%3dneutral%2c&#43;PublicKeyToken%3d28f01b0e84b6d53e%3aen%3ab0eefc76-0092-471b-ab62-f3ddc8240d71%3ae2e86ef9%3aa9a7729d%3a9ea3f0e2%3a9e8e87e9%3a1df13a87%3a4c9865be%3aba594826%3a507fcf1b%3ac7a4182e&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br> &lt;div&gt;<br> <br> &nbsp;&nbsp; &nbsp;&lt;input type=&quot;hidden&quot; name=&quot;__EVENTVALIDATION&quot; id=&quot;__EVENTVALIDATION&quot; value=&quot;/wEWDALulK73AwL2h6L4BALs0bLrBgLs0fbZDAL8ybSHDQLB3u3GDgLUwrDCAwKQs&#43;qdBwLByYWPDQLBn&#43;ljAvuq18cKAtq01VDvEx07/h3Pda4NX9DgMY9cU3ulzw==&quot; /&gt;<br> &lt;/div&gt;<br> &nbsp;&nbsp;&nbsp; &lt;div&gt;<br> &nbsp; <br> &nbsp;&nbsp;&nbsp; &lt;/div&gt;<br> &nbsp; &nbsp;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br> //&lt;![CDATA[<br> Sys.WebForms.PageRequestManager._initialize('ScriptManager1', document.getElementById('form1'));<br> Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tUpdatePanel1'], [], [], 90);<br> //]]&gt;<br> &lt;</p> <p><br> </p> 2010-04-23T20:38:52-04:003803321http://forums.asp.net/p/1207960/3803321.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>forget UpdatePanel etc. Just use the &quot;<a href="http://pokein.codeplex.com">PokeIn</a>&quot; .. <br> </p> <p><br> </p> 2010-04-25T22:32:54-04:003817376http://forums.asp.net/p/1207960/3817376.aspx/1?Re+Ajax+client+side+framework+failed+to+loadRe: Ajax client-side framework failed to load <p>I found as with others that URL Rewritting is the problem. My solution to the problem is&nbsp;only to rewrite what I need.</p> <p>This also speeds up the whole load time, since we only rewrite the things that we&nbsp;want. I added this piece....</p> <pre class="prettyprint">protected void Application_BeginRequest(object sender, EventArgs e) { if ((Request.Url.LocalPath.EndsWith(&quot;scriptresource.axd&quot;, StringComparison.InvariantCultureIgnoreCase) || Request.Url.LocalPath.EndsWith(&quot;webresource.axd&quot;, StringComparison.InvariantCultureIgnoreCase)) || Request.Url.LocalPath.EndsWith(&quot;gif&quot;, StringComparison.InvariantCultureIgnoreCase) || Request.Url.LocalPath.EndsWith(&quot;jpg&quot;, StringComparison.InvariantCultureIgnoreCase) || Request.Url.LocalPath.EndsWith(&quot;css&quot;, StringComparison.InvariantCultureIgnoreCase) || Request.Url.LocalPath.EndsWith(&quot;js&quot;, StringComparison.InvariantCultureIgnoreCase)) { return; }</pre> <p><br> &nbsp;</p> 2010-05-04T08:19:27-04:00