Microsoft KB Archive/938302

= Error message when you perform an operation in a frame on a Web page in Internet Explorer 7:&quot;Access denied&quot; =

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 &quot;contoso.com,&quot; you must set the document.domain property of the second frame to &quot;contoso.com.&quot; You cannot set the document.domain property of the second frame to &quot;CONTOSO.com&quot; or to &quot;Contoso.com.&quot;

Keywords: kbtshoot kbprb kbexpertiseadvanced KB938302

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.