<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://bloggingabout.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Rick van den Bosch - Blog : Ajax Control Toolkit, Development, Error</title><link>http://bloggingabout.net/blogs/rick/archive/tags/Ajax+Control+Toolkit/Development/Error/default.aspx</link><description>Tags: Ajax Control Toolkit, Development, Error</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>"AjaxControlToolkit is undefined"</title><link>http://bloggingabout.net/blogs/rick/archive/2010/09/23/quot-ajaxcontroltoolkit-is-undefined-quot.aspx</link><pubDate>Thu, 23 Sep 2010 08:02:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:484083</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>5</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=484083</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2010/09/23/quot-ajaxcontroltoolkit-is-undefined-quot.aspx#comments</comments><description>&lt;p&gt;Because we were still using an old Visual Studio 2005 solution which included a Web Site project, it was time to upgrade. We upgraded our Visual Studio 2005 solution to Visual Studio 2010 (and .NET 4.0), converted the Web Site Project to a Web Application Project and then, of course, the AjaxControlToolkit had to follow. I downloaded the latest build from &lt;a target="_blank" href="http://ajaxcontroltoolkit.codeplex.com/"&gt;their Codeplex site&lt;/a&gt; and updated the references in the different projects. I ran the website, and that&amp;rsquo;s where things got ugly&amp;hellip;&lt;/p&gt;
&lt;p&gt;Most pages worked nicely, but there were a few that gave an &amp;ldquo;AjaxControlToolkit is undefined&amp;rdquo; error. I removed all references to the AjaxControlToolkit, removed all the old versions of it from my machine, referenced the most recent version again, all to no avail. After &lt;span style="text-decoration:line-through;"&gt;Googling&lt;/span&gt;&lt;sup&gt;*&lt;/sup&gt; Binging the error I found a LOT of possible solutions. These included:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use the ToolkitScriptManager from the AjaxControlToolkit in stead of the built-in ScriptManager &lt;/li&gt;
&lt;li&gt;When using the ToolkitScriptManager, set CombineScripts to false &lt;/li&gt;
&lt;li&gt;When using the ToolkitScriptManager, set EnablePartialRendering to true &lt;/li&gt;
&lt;li&gt;Clear the browser cache&lt;/li&gt;
&lt;li&gt;Clear the ASP.NET Temporary Files directory&lt;/li&gt;
&lt;li&gt;Use a (dummy) control to make sure the JavaScript files have been loaded correctly&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Unfortunately, none of these possible solutions helped us with our specific problem. Our problem occurred when we, for instance, set the PositioningMode for a control from custom JavaScript using the AjaxControlToolkit.PositioningMode enumeration. The error was always from custom JavaScript. After looking around a bit more I found one site that mentioned something about changing the AjaxControlToolkit &amp;lsquo;namespace&amp;rsquo; in JavaScript.&amp;nbsp; After playing around a bit I found out that changing the use of AjaxControlToolkit.XXX to System.Extended.UI.XXX provided the solution.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:xx-small;"&gt;* Of course this is a weak attempt at a joke, but fact is that Google (the first 7 or so pages) only pointed me in the direction of the solutions that weren&amp;rsquo;t solutions for my situation. When I tried Bing for a change, I found something that put me on the right track pretty fast. Kudos to Bing!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=484083" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/.Net/default.aspx">.Net</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Error/default.aspx">Error</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Ajax/default.aspx">Ajax</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Ajax+Control+Toolkit/default.aspx">Ajax Control Toolkit</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/VS2010/default.aspx">VS2010</category></item></channel></rss>