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 |