Welcome, Guest. Please login or register.
May 16, 2012, 03:25:37 pm
Home Help Search Login Register
News: Be sure your post is relevant to the current discussion.  Create a new topic within the appropriate board if you are unsure.

+  TurboCAD Forums
|-+  SDK Corner
| |-+  SDK Tips and Tricks
| | |-+  Visual Studio, Vista, and Integrity Levels
« previous next »
Pages: [1] Go Down Print
Author Topic: Visual Studio, Vista, and Integrity Levels  (Read 3045 times)
kchapman
Administrator
Full Member
*****
Posts: 201


« on: June 01, 2009, 12: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"
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.
Logged
Brad Easterday
Beta Tester
Supreme Postmaster
*****
Posts: 1790



WWW
« Reply #1 on: June 01, 2009, 02:24:56 pm »

Thanks for the heads up Kevan. I've run into similar issues with other software.
Logged

BradE [ dean3Design ] [ facebook ] [ twitter ]
V19.0 Platinum - Win7 Pro SP1 32Bit
kchapman
Administrator
Full Member
*****
Posts: 201


« Reply #2 on: June 01, 2009, 04: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.
Logged
howard82kirk
Newbie
*
Posts: 1


« Reply #3 on: 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?
Logged

Pages: [1] Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.054 seconds with 17 queries.