Note One: Error: "The service on the local computer is stopped after it starts." Some services stop automatically when they are not being used by other services or programs. ”
The main reason for this problem is that there are errors in the service provider.
When you encounter this problem, whether you reinstall the service or restart your computer, this error box pops up each time you start.
The best way to solve this problem is to use a console application to debug, and after debugging passes, join the service provider.
Note two: Error: Attempt to load a program that is not properly formatted.
Reason: the communication between assemblies is either full of 64-bit environments or full of 32-bit environments. cannot be mixed access. Otherwise, an "attempt to load a malformed program" error appears.
Attached: Related references:
IIS "attempting to load malformed program" error under 64-bit operating system-software designer to programmer-Blog channel-csdn.net
Create a Windows service with C #-the Past-blog Park
Reprint please indicate the source.