Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I have develop a windows service, it is used some external dll like this

1) MSCOMM32.OCX
2) MSWINSCK.OCX
3) Interop.MSWinsockLib.dll
4) Interop.MSCommLib.dll
5) Interop.BFSDK660.dll

I have also added service installer class to the service and also set the service account to network service in installer class.

Service is Build successfully.

Then i add another project to service it is setup and deployment project for this service.

I Add Project Out Put in this setup Project.
Then From View i add Custom Action and there i add Primary Output.

After this, the steup project is build and got .msi and .exe files for service.

Installed .exe file sucessfully.

My Service is also listed in services.msc.


But my Proble is that after installtion, when i start the service i will receive this error


Windows could not start the MyService service on Local Computer.
Error 1053: The service did not respond to the start or control request in a timely fashion.

and in event log viewer i found this error log

Retrieving the COM class factory for component with CLSID {2F592C51-83DA-498C-9B3B-CA1C2E0D5DD7} failed due to the following error: 800700c1.


Please Help me...!!!

Thank You..
Posted

Make sure these external dll's are available and registered on your client machine.
 
Share this answer
 
Comments
Tejas Vaishnav 7-Sep-11 7:01am    
It is also packaged in msi file when step up is build
1053 implies that your OnStart is crashing because you did not return from it properly. I suggest you try to catch all exceptions, and don't assume that your writes to the event log are actually working. Services really need a good Trace.WriteLine with a TraceListener to a log file so you can really see the path of the code and what's going on.
 
Share this answer
 
I Got My Ans..
It will need a registering a dll each and every time before a package is developed
now it is solved
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900