TurboCAD Forums

The Ultimate Resource for TurboCAD Knowledge

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

Visual Studio, Vista, and Integrity Levels
Read 6592 times
* June 01, 2009, 01:29:55 PM
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"
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.


June 01, 2009, 03:24:56 PM
Thanks for the heads up Kevan. I've run into similar issues with other software.

BradE [ dean3Design ]
Core i7-3930K CPU @ 4.20GHz, 32GB 1333 DDR3, FirePro V5900
TC 21 Platinum (64-Bit) Running on Win7 Pro SP1

* June 01, 2009, 05:01:19 PM
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.


* February 28, 2011, 10:33:32 PM
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?