|
-
Sep 11th, 2010, 01:44 PM
#1
Thread Starter
New Member
Error trying to run a vb6 com+ server application on Windows 7 32bit OS
I’m getting the following error: -2147417848 Automation error The object invoked has disconnected from its clients.
When I run a VB6 COM+ Server component. When I run the same code from the debugger (or change the com+ activation type to a library application) there are no errors.
We used Matt Curland’s Power VB and the code is failing specifically around vboost. This is one of the lines of code that is failing:
VBoost.Assign pSA, ByVal VarPtr(vArray) + VARIANT_DATA_OFFSET
DLLHost is disabled in DEP.
UAC is disabled
I’m logged into the computer as an admin.
I’ve set the com+ identity to the same admin user (also tried using Interactive user).
In DCOM Config administrators group has default access and default launch permissions.
Disabled policy that runs all users, including administrators, as standard users
The code works in XP, Vista, Windows Server 2003, and Windows Server 2008. We cannot however get this up and running on a Windows 7 OS. Any ideas?
-
Sep 11th, 2010, 05:12 PM
#2
Re: Error trying to run a vb6 com+ server application on Windows 7 32bit OS
even though you are logged in as administrator you may need to run the program with elevated privileges
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Sep 11th, 2010, 05:27 PM
#3
Thread Starter
New Member
Re: Error trying to run a vb6 com+ server application on Windows 7 32bit OS
Thank you for the response. This is a com+ server package and the identity is set to the admin user, is that any different than what you are suggesting? Also I have disabled user access control so all applications that I launch should run as admin, correct? Also, I have tried calling the application from a test.exe and launched the executable as an administrator.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|