Showing posts with label debug. Show all posts
Showing posts with label debug. Show all posts

Monday, March 26, 2012

Access denied Error

HI,

I am getting an Access denied error, if I use AJAX in ASPX page..

intially I got Javascript window ( Do you wish to debug..) When I said 'Yes' it showed me the code below..

//------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//------------------
// MicrosoftAjax.js
Function.__typeName="Function";Function.__class=true;Function.createCallback=..................
........................
g=e.screenLeft-top.screenLeft-top.document.documentElement.scrollLeft+2 ------ its showing error at this point..

What is the solution for this?

Thanks


Try to disable the javascript debugging. See what happens then

Configure AJAX properly

http://www.asp.net/AJAX/Documentation/Live/ConfiguringASPNETAJAX.aspx


Hiasppick,

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.

Saturday, March 24, 2012

A runtime error has occurred. Do you wish to debug ? Help

I get the subject error when i try to run sample asp.net ajax aps and even some day to day web pages. It seems to be "an unhandled exception (persmission denied" and "Jscript runtime error: Permission denied"

Simple error but I must be simple minded. What is going on?

Thanks for any help Pauley

;

hello.
you must give us more info if you want us to help you.

Hello Luis, thanks for responding. I think I am ok, I found a post to change advanced settings in Internet Explorer to NOT give a notice of script error. I did and I think I am ok now. I assume there are flaws in some code which IE exposes when it runs and that caused the error message.

Thank you.


hello.

you shouldn't do that. in fact, you should do the opposite in order to be notified about all the errors on your pages. if you're getting an exceptio, then believe me: there's something wrong with your code!