Monday, March 26, 2012

Access Denied

Not sure if this is the correct forum so sorry if it needs moving...

I have a written a plugin for a client that they have embedded in their website using a simple IFRAME

Everything was been working fine until I added a really simple Ajax control.

The page display fine and the ajax actions and other controls all work as expected.

But if a user clicks on any link on the page i get an 'Access Is Denied' error.

When I debug I am directed to the ScriptResource.axd and the line 5959:

'var offsetL = w.screenLeft - top.screenLeft - top.document.documentElement.scrollLeft + 2;'

I am aware of the cross domain issue and have added:

'Response.AddHeader("P3P","CP=""CAO PSA OUR""")'

..to my code but I cannot get around this error.

I can continue by choosing not to debug but I want fix the problem.

Anyone got any ideas what the problem is?

Thanks for any help

Geoff

I am having the same problem, and cannot figure out how to correct. I have researched it on and off for weeks. Any help on this topic on this issue would be great.

Wayne


I am having the same problem, and cannot figure out how to correct. I have researched it on and off for weeks. Any help on this topic on this issue would be great.

Wayne


Hi Geoff,

Please refer to these entries:

http://blogs.msdn.com/delay/archive/2007/02/05/safely-avoiding-the-access-denied-dialog-how-to-work-around-the-access-denied-cross-domain-iframe-issue-in-the-ajax-control-toolkit.aspx

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

Hope this helps.


Whether error that you are facing in IE or Mozilla ?

Because some issues will be there with Mozilla....

Sometimes, You have to add your website in Trusted Site zone...


Hi All,

Many thanks for the responses.

The solution was as Raymond suggested - many thanks!Smile

The link:

http://blogs.msdn.com/delay/archive/2007/02/05/safely-avoiding-the-access-denied-dialog-how-to-work-around-the-access-denied-cross-domain-iframe-issue-in-the-ajax-control-toolkit.aspx

..fixed it for me.

Wayne - If you are having the same problem check out the above link.

All the best

Geoff

No comments:

Post a Comment