You may receive an "Access Denied" message when you try to move or resize a window on a Windows Server 2003 SP1-based or Windows XP SP2-based computer

Article translations Article translations
Article ID: 904947 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

When you try to move or resize a window on a Microsoft Windows Server 2003 Service Pack 1-based or Microsoft Windows XP Service Pack 2-based computer, you may receive an error message that is similar to the following:
Access Denied
This problem occurs when you use a drag operation to move or to resize a Microsoft Internet Explorer window or the window of another application.

CAUSE

You experience this issue if a script in the Web page that is displayed is performing either a windows.resizeTo method or a windows.moveTo method when you try to move or resize the window. This issue occurs because of a design change in Windows Server 2003 Service Pack 1 (SP1) and Windows XP Service Pack 2 (SP2). This design change improves the security on the computer by blocking any move or resize functions.

Windows blocks these functions by using a script when the mouse button is down. If the mouse button is down, Windows considers the operation to be a drag operation and blocks any move or resize functions. This behavior helps prevent an attacker from transferring malicious files to the computer.

WORKAROUND

To work around this issue, use a WebBrowser control-based application. When you host the Internet Explorer Web Object Control (WebOC), you can use the IHTMLWindow2::resizeTo method or the IHTMLWindow2::moveTo method to resize the window.

For more information about these methods, visit the following Microsoft Developer Network (MSDN) Web sites:
http://msdn2.microsoft.com/en-us/library/Aa741493.aspx

http://msdn2.microsoft.com/en-us/library/Aa741476.aspx

Properties

Article ID: 904947 - Last Review: May 31, 2007 - Revision: 1.3
APPLIES TO
  • Microsoft Windows Server 2003 Service Pack 1
  • Microsoft Windows XP Service Pack 2
Keywords: 
kbtshoot kbprb KB904947

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com