Wednesday, September 8, 2010

A Runtime Error has occurred. Do you wish to debug? Error: Access is Denied

When opening some web pages which runs ajax 1.0 enabled ASP.NET 2.0 website A Runtime Error has occurred. Do you wish to Debug? Line: 5 Error: Access is Denied The reasons for this error message may be. 1. You use an iframe element in a Web page that points to another Web page from a different domain. 2. The Web page from a different domain uses ASP.NET AJAX server controls. You perform an action in the iframe element that triggers an asynchronous postback operation. 3. In Microsoft Internet Explorer, you click to select the following check boxes under Browsing on the Advanced tab in Internet Options: TACS LLC Dubai Time Attendance Dubai Access Control System Gate Barrier HRMS Solutions EID Reader Software EID Reader Building Maintanance UHF Reader Disable script debugging (Internet Explorer) Disable script debugging (Other) This problem occurs because the Web page that contains the iframe element and the Web page to which the iframe element points are in different domains. The AJAX 1.0-enabled ASP.NET script fails when it tries to determine the offset of the content. To resolve this error follow the below steps 1. Make sure that the Web page that contains the iframe element and the Web page to which the iframe element points are in the same domain. 2. Update the JavaScript files to avoid the error message. Use the external script files that exist in the AJAX Library package instead of the resource-based files that exist in the AJAX Extension package.

No comments:

Post a Comment