HighTechTalks DotNet Forums  

Visual Studio, GetActiveObject, Vista and UAC

Dotnet Security microsoft.public.dotnet.security


Discuss Visual Studio, GetActiveObject, Vista and UAC in the Dotnet Security forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
FLO
 
Posts: n/a

Default Visual Studio, GetActiveObject, Vista and UAC - 08-20-2007 , 07:18 AM






My program uses Marshal.GetActiveObject() to connect to a running
instance of a COM-Application.

If I debug it in Visual Studio 2005 the ROT only contains VisualStudio
and GetActiveObject() throws a COMException (operation not available).
Visual Studio has been started as Administrator ("run as").

If I disable UAC in Vista, everything works well.
I can run the exe-file of the program without any problem, but not
inside the visual studio environment.

So there seems to be a kind of security issue.
Probably the elevation level of the program or codeaccess security might
be part of a solution, but I could not figure out how to configure these.

Thank you hints

Florian

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.