Microsoft KB Archive/938302

From BetaArchive Wiki
Knowledge Base


Error message when you perform an operation in a frame on a Web page in Internet Explorer 7:"Access denied"

Article ID: 938302

Article Last Modified on 10/27/2007



APPLIES TO

  • Windows Internet Explorer 7



SYMPTOMS

Consider the following scenario:

  • In Windows Internet Explorer 7, you visit a Web page that contains more than one frame.
  • The servers that host these frames are in the same domain.
  • You perform an operation in one of the frames. For example, you click a button in the frame.
  • You try to perform an operation in another frame.

In this scenario, you may receive the following error message:

Access denied

Note This issue does not occur in Microsoft Internet Explorer 6.

CAUSE

This issue occurs because the document.domain property is case sensitive in Internet Explorer 7. If the document.domain properties of the two frames are different, you will receive this error message.

RESOLUTION

To resolve this issue, set the document.domain property of each frame on the Web page to the same string together with the same case. For example, if you set the document.domain property of the first frame to "contoso.com," you must set the document.domain property of the second frame to "contoso.com." You cannot set the document.domain property of the second frame to "CONTOSO.com" or to "Contoso.com."

Keywords: kbtshoot kbprb kbexpertiseadvanced KB938302