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

  • Thread starter Thread starter Bill Davidson
  • Start date Start date
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
 
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.
 
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.
 
Back
Top