<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.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>How to work around the access denied cross-domain frame issue in ASP.NET Ajax 1.0</title><link>http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx</link><description>Some users have run into an issue when hosting ASP.NET Ajax applications in a frame or iframe that's in a different domain from the top-level window. If you try to do that and browse to the page using IE, you'll receive an "access denied" error client</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: How to work around the access denied cross-domain frame issue in ASP.NET Ajax 1.0</title><link>http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx#7172226</link><pubDate>Tue, 18 Aug 2009 10:28:29 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7172226</guid><dc:creator>Dhivya</dc:creator><author>Dhivya</author><description>&lt;p&gt;Thank u so much..&lt;/p&gt;
&lt;p&gt;you saved my day...&lt;/p&gt;
&lt;p&gt;i had two &amp;#39;sys&amp;#39; undefined errors after patching the file...please make sure that you have placed all the JS files which you downloaded into the &amp;#39;~/Javascript/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.js&amp;#39; path.&lt;/p&gt;
&lt;p&gt;and i have added the following:&lt;/p&gt;
&lt;p&gt;&amp;lt;asp:ScriptManager ID=&amp;quot;ScriptManager1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;Scripts&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;asp:ScriptReference Name=&amp;quot;MicrosoftAjax.js&amp;quot; Path=&amp;quot;~/Javascript/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.js&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;/Scripts&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;/asp:ScriptManager&amp;gt;&lt;/p&gt;
&lt;p&gt;then it worked well without errors.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7172226" width="1" height="1"&gt;</description></item><item><title>re: How to work around the access denied cross-domain frame issue in ASP.NET Ajax 1.0</title><link>http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx#7155313</link><pubDate>Mon, 27 Jul 2009 14:56:38 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7155313</guid><dc:creator>marco hokke</dc:creator><author>marco hokke</author><description>&lt;p&gt;Thanks for this post. Together with Delay&amp;#39;s Blog (which pointed me to yours) and Damian Mehers&amp;#39; (which pointed me to the location of the MicrosoftAjax.js) I managed to get our .Net 2.0 ASP.Net with the Ajax Toolkit working properly in an iFrame on our company&amp;#39;s site.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7155313" width="1" height="1"&gt;</description></item><item><title>re: How to work around the access denied cross-domain frame issue in ASP.NET Ajax 1.0</title><link>http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx#7126693</link><pubDate>Tue, 16 Jun 2009 09:57:27 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7126693</guid><dc:creator>Fred</dc:creator><author>Fred</author><description>&lt;p&gt;Here you can find a very easy fix for it. &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://forums.asp.net/t/1216682.aspx"&gt;forums.asp.net/.../1216682.aspx&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7126693" width="1" height="1"&gt;</description></item><item><title>re: How to work around the access denied cross-domain frame issue in ASP.NET Ajax 1.0</title><link>http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx#7108128</link><pubDate>Thu, 04 Jun 2009 15:06:04 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7108128</guid><dc:creator>Hunter</dc:creator><author>Hunter</author><description>&lt;p&gt;can u take off access denied on this computer?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7108128" width="1" height="1"&gt;</description></item><item><title>re: How to work around the access denied cross-domain frame issue in ASP.NET Ajax 1.0</title><link>http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx#7092747</link><pubDate>Tue, 19 May 2009 12:56:57 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7092747</guid><dc:creator>Vlad</dc:creator><author>Vlad</author><description>&lt;p&gt;Bertrand Le Roy THANKS!!!!!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7092747" width="1" height="1"&gt;</description></item><item><title>re: How to work around the access denied cross-domain frame issue in ASP.NET Ajax 1.0</title><link>http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx#7074969</link><pubDate>Wed, 06 May 2009 17:42:05 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7074969</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;@jgdean: having static script references is the way to go. The script profiler that is available on CodePlex/aspnet can help you determine the set of scripts you need for any given page.&lt;/p&gt;
&lt;p&gt;I'd also encourage you to upgrade to 3.5 SP1 if you can.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7074969" width="1" height="1"&gt;</description></item><item><title>re: How to work around the access denied cross-domain frame issue in ASP.NET Ajax 1.0</title><link>http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx#7074870</link><pubDate>Wed, 06 May 2009 15:18:57 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7074870</guid><dc:creator>jgdean</dc:creator><author>jgdean</author><description>&lt;p&gt;Thanks Bertrand for the fix. We are running .NET 2.0 using VS2008 and using the Toolkit as well. I referenced the altered MicrosoftAjax.js per instructions above, and I still needed to let the scriptmanager reference the Toolkit. As a result, the Scriptmanager version in the &amp;quot;/ScriptResource.axd?...&amp;quot; was being called first and the fix was not applied, even though I can see the altered version of MicrosoftAjax.js being referenced after the scriptmanager version in the source code. So I was left with trying to create static references to the toolkit code or apply a &amp;quot;monkey-patch&amp;quot;. I struggled to find a version of the .NET20 Toolkit .sln that would compile in VS2008 so ended up with the patch. It works but it&amp;#39;s not pretty. Is there a newer version of the system.web.extensions &amp;nbsp;than 1.0.61025.0 that already has this fix in place for .NET2.0? Or maybe I am not referencing the toolkit correctly?&lt;/p&gt;
&lt;p&gt;Thanks again, without your post I would be lost!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7074870" width="1" height="1"&gt;</description></item><item><title>re: How to work around the access denied cross-domain frame issue in ASP.NET Ajax 1.0</title><link>http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx#7065313</link><pubDate>Wed, 29 Apr 2009 23:19:39 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7065313</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;@Augusto: did you deploy the patched MicrosoftAjax.js file to the dev server? Did you check the script was getting downloaded using Firebug or Fiddler? Did you check you were getting no syntax errors?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7065313" width="1" height="1"&gt;</description></item><item><title>re: How to work around the access denied cross-domain frame issue in ASP.NET Ajax 1.0</title><link>http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx#7065270</link><pubDate>Wed, 29 Apr 2009 23:05:03 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7065270</guid><dc:creator>Augusto</dc:creator><author>Augusto</author><description>&lt;p&gt;I&amp;#39;ve referenced the altered script like this:&lt;/p&gt;
&lt;p&gt; &amp;lt;asp:ScriptManager ID=&amp;quot;ScriptManager1&amp;quot; runat=&amp;quot;server&amp;quot; &amp;nbsp;EnablePartialRendering=&amp;quot;true&amp;quot; EnablePageMethods=&amp;quot;true&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Scripts&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:ScriptReference&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Name=&amp;quot;MicrosoftAjax.js&amp;quot; ScriptMode=&amp;quot;Auto&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Path=&amp;quot;~/scripts/AJAX/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.js&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Scripts&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;lt;/asp:ScriptManager&amp;gt;&lt;/p&gt;
&lt;p&gt;The scriptManager tag is in a masterpage, and I&amp;#39;ve aplied the correction to the MicrosoftAjax.js as described above. Also, I downloaded the newer version of ajaxControlToolkit WITH the &amp;#39;Common.js&amp;#39; already aplied. &lt;/p&gt;
&lt;p&gt;I can run the code without any error on my javascript, but when I deploy it to our development server, I get the &amp;#39;Sys is undefined&amp;#39; error at ScriptResource.axd, and the a &amp;#39;Type is undefined&amp;#39; error, even if I use the original version or the altered version of the script.&lt;/p&gt;
&lt;p&gt;Can you point me where could be a file/installation defining this?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7065270" width="1" height="1"&gt;</description></item><item><title>re: How to work around the access denied cross-domain frame issue in ASP.NET Ajax 1.0</title><link>http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx#7063892</link><pubDate>Tue, 28 Apr 2009 17:44:39 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7063892</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;@Joe: could be several things. You might have patched only the debug version and not the release one (that would explain that it works on the dev box and not the server), you might have omitted to copy your patched files over, the error might come from your own code, something I haven't thought of or a combination of the above.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7063892" width="1" height="1"&gt;</description></item></channel></rss>