VC6 COM Server EXE upgrade to VC7.1 - "Server Execution Failed" error coming from CoCreateInstance

B

Bill Davidson

All:

I recently upgraded a VC++6 COM Server Exe project to VC++7.1 (w/ the latest
PSDK).

After a couple of minor hurdles, I got the project to compile and
self-register. Unfortunately, when I tried to call into the server from
either a VB6 or a VC6 test client, an error occurs at object creation time.
Looking at Task Manager, the server .Exe never actually launches.

The CoCreateInstanceEx() call on the VC6 client returns error number
0x80080005 (-2146959355) which maps to "Server Execution Failed".

Anybody else had similar problems? BTW, I'm running on Windows Server 2003.

Thanks,
Bill
 
T

Tian Min Huang

Hello Bill,

Thanks for your post. I'd like to share the following information with you:

1. Based on my experience, there are two issues that may cause this problem.
a. Wrong DCOMCNFG settings. Do you have the app configured to allow the
System account to launch it?
b. An underlying DLL is missing.

2. If the problem persists, I recommend you try the following:
a. Check if it can be launched in a VC 7 client application.
b. Create a new Wizard generated VC 7 COM Server and check whether or not
it works.

I look forward to hearing from you.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no rights.
 
T

Tian Min Huang

Hello Bill,

Thanks for your response. Could you post simple projects which are able to
reproduce the problem? I believe that you will most helpful for me to
pinpoint the problem and resolution.

I look forward to hearing from you.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top