I developed a windows service that has the following COM dependencies:
- MSCOMM32.OCX
- MSWINSCK.OCX
- Interop.MSWinsockLib.dll
- Interop.MSCommLib.dll
- Interop.BFSDK660.dll
I have also added an installer class that inherits ServiceInstaller to the executable. The installer sets the service account to NT AUTHORITY\NETWORK SERVICE.
The service compiles successfully.
I also added a setup and deployment project to the service.
I added the project output of the windows service to the setup Project. I then use a custom action to run the project installer as a custom build action.
The setup project is build and I get an .msi and .exe file in the output directory. The installer is successful. The service is listed in services.msc.
My problem occurs that after installation. When I start the service, I 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.
This error appears in the event log:
Retrieving the COM class factory for component with 
CLSID {2F592C51-83DA-498C-9B3B-CA1C2E0D5DD7}开发者_如何转开发 failed 
due to the following error: 800700c1.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论