Visual Studio, GetActiveObject, Vista and UAC
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
.
Relevant Pages
- Re: Problem with Registering filter on windows mobile
... The fix is to modify C/C++ preprocessor definitions in the ... unresolved external because it's only defined in debug builds, ... the project using the visual studio wizard it worked, ... Windows CE Multimedia and Graphics ... (microsoft.public.windowsce.app.development) - RE: debugger doesnt stop at breakpoint while debugging SQLCLR functio
... It seems remote debugging component was not installed during Visual Studio ... I click Step into Function and I am able to debug the function step by step. ... Stored Procedure is in separate assembly which is created in SQL Server ... (microsoft.public.vsnet.debugging) - Re: Running and debugging a website on http://www.mysite.com instead of http://localhost
... I'm using Visual Studio 2003 Professional. ... Either way the obvious question would be whether or not you have debug ... enabled on what Visual Studio recognizes as a remote website. ... public static string ErrorUrl ... (microsoft.public.dotnet.framework.aspnet) - Expression: map/set iterators incompatible
... in the Visual Studio environment, and we felt strongly that it would enable ... In addition, we could also debug down to the C++ code, which was ... We were able to generate the C++ dlls and the C# wrapper dlls as ... For information on how your program can cause an assertion failure, ... (microsoft.public.dotnet.languages.vc) - debugger doesnt stop at breakpoint while debugging SQLCLR functio
... I have created one simple SQL Server 2005 CLR function in Visual Studio 2005 ... It works fine from SQL Server 2005 management studio April CTP. ... When I try to debug this SQL CLR function from Visual Studio 2005, ... getting the output in Output window along with debug information but it is ... (microsoft.public.vsnet.debugging) |
|