469,267 Members | 1,114 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,267 developers. It's quick & easy.

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

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
Nov 16 '05 #1
3 3052
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.
Nov 16 '05 #2
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.
Nov 16 '05 #3
Anna
1
Hi All,

I am now going to the same process which is converting my COM Server EXE from VC6 to VC7.1 and I am having the same problem as posted here.

Is there a solution for it?

Thank you for your help!
Anna.
May 23 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Chuck Ritzke | last post: by
5 posts views Thread by Bruce Schechter | last post: by
13 posts views Thread by Edward Mitchell | last post: by
2 posts views Thread by Kay Chan | last post: by
5 posts views Thread by James | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.