-
dll problem
I am having an installation problem that I cannot reolve. I created a dll using VB6. The dll is accessed by an application (created in VB6) and a service (created in VB 6 using NT toolkit by Desaware). I built an installation disk using InstallShield X. On the target machine, the application works properly but the service generates an error 429 (ActiveX component can't create object) whenever it attempts to access a class w/i the dll. If I register and run the service on my development machine, it works properly. Both the target and development machines are running XP SP2.
I have check and re-checked registration and dependcy files relating to the dll. They all look correct and besides I don't see how the application would work if they had a problem. I have also checked the dll's permissions. The file creates with SYSTEM permissiions set to full control. I even created a SERVICE permission and set it to full control without solving the problem.
I don't know if I'm missing something real simple but any help on this would be greatly appreciated.
-
Re: dll problem
Is there anything unusual about your DLL regarding threading? Is it set for "Unattended Execution" in the Project properties?
The Desaware Toolkit is quite nice, but it plays a lot of little games that might not be obvious. Most of them relate to threading and COM activation, but pretty much any Service has those issues.
-
Re: dll problem
Nothing unusual about the threading; apartment threaded, unattended execution not set. Again what's strange is that the service will access the dll if I register and run it on my development machine.
-
Re: dll problem
Well what I was getting at is that generally you should set Unattended Execution for any code used in a Service. I won't say it'll make a difference here but it is cheap to try.
-
Re: dll problem
If you have that error you haven't registered the dll in your installation...
-
Re: dll problem