Tuesday, May 26, 2009

Dot Net Error : Internet Explorer cannot open the internet site [www.sample.com]. Operation aborted

Description: Visiting a Web page in Internet Explorer 5.5/6.0/7.0 will give this error. Internet Explorer cannot open the Internet site http://.com. Operation aborted. This error will not occur in firefox, opera and Internet Explorer 8.0.
Cause: This problem occur if a DIV element is a child container in a BODY element, and a SCRIPT block in the DIV element tries to modify the BODY element that is a parent container for the DIV element.

Save this page as a html file and run in internet explorer will generate same error.








This problem generally occurs while implementation Ajax, or using Modal Dialog box.

Solutions

Solution 1: Upgrade to Internet Explorer 8

Solution 2: Try to change the position of div tag.
Place script tag outside of div tag.






Solution 3: If you are getting error in below senario.







Try to move the position of script tag.







No comments:

Shared Button