Microsoft KB Archive/313833

= FIX: InvalidOperationException When You Run Visual Studio .NET Through Terminal Services =

PSS ID Number: 313833

Article Last Modified on 10/13/2003

-

The information in this article applies to:

 Microsoft Visual Studio .NET Beta 2 PDC Release, when used with:  the operating system: Microsoft Windows 2000 SP2

 the operating system: Microsoft Windows XP 

-



This article was previously published under Q313833



SYMPTOMS
When you log on to a Terminal Services session, if that session is already running an instance of Visual Studio .NET, you may receive the following error message:

InvalidOperationException 'The object is currently in use elsewhere'

If you try to dismiss the error message dialog box, the error message reappears. You must restart Visual Studio .NET.



CAUSE
This problem can occur when you configure the display settings on the local computer and the remote computer to different color depths. In addition, this problem may only occur when you install certain video adapters on the computer that is running Visual Studio .NET. A bug in GDI+ causes this problem.



RESOLUTION
Make sure that you configure the display settings on the remote computer and the local computer to the same color depth.

<div class="status_section">

STATUS
This bug was corrected in Visual Studio .NET Beta 2 PDC Release.

Additional query words: terminal server

Keywords: kbfix kbpending KB313833

Technology: kbOSWin2000 kbOSWin2000SP2 kbOSWinSearch kbOSWinXP kbOSWinXPSearch

-

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

© 2004 Microsoft Corporation. All rights reserved.