News:

When replying to a specific statement be sure to quote the previous post.

Main Menu

Visual Studio, Vista, and Integrity Levels

Started by kchapman, June 01, 2009, 01:29:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kchapman

I recently spent several hours trying to figure out why I kept getting the error result MK_E_UNAVAILABLE when trying to connect a sample application to a running instance of TurboCAD. The application would connect just fine if I ran the compiled app manually, but it would give me the "unavailable" result if I tried to run it from within Visual Studio.

It turns out I was running Visual Studio with the "Run as Administrator" flag, (as Microsoft suggests), but I was not running TurboCAD with the same flag. Under Windows Vista, generally a process with a high integrity level cannot interact with a process running at a lower integrity level.

There are two workarounds for this problem, should you encounter it:
1) Don't run Visual Studio "As Administrator"
or
2) Run both Visual Studio and TurboCAD (or whatever other COM server you are trying to connect to) "As Administrator"

Hopefully this tip will spare you a bit of unnecessary frustration, though it only scratches the surface of Vista and Integrity Levels.

Brad Easterday

Thanks for the heads up Kevan. I've run into similar issues with other software.
Brad E.
TC 2022, 2023 Platinum
Windows 11 (64-Bit)

kchapman

My pleasure, Brad.

It can be challenging enough just trying to learn a new API without Vista getting its big feet in the way, too.

howard82kirk

I'm working on an application which is made of two modules. Modules communicate through  Visual Studio 2008,C# / .Net 3.5...The server runs with high integrity level. The client runs in low integrity level. So that the client can connect to the server, I need to create the pipe in low integrity level. Any suggestion?