Prob with service
-
Hi, This a doubt regarding a service written in C#. I have a service, (developed by some one else), and I modified the dll of the service. Now, the service starts and stops. Is it correct to do the modifications directly in the dll code. Mean to say, will it be any problem with registration kind of thing. Please clarify my doubt. Regards, Satya
-
Hi, This a doubt regarding a service written in C#. I have a service, (developed by some one else), and I modified the dll of the service. Now, the service starts and stops. Is it correct to do the modifications directly in the dll code. Mean to say, will it be any problem with registration kind of thing. Please clarify my doubt. Regards, Satya
That greatly depends. If the checksum of the PE/COFF executable was no updated, the SCM (service control manager) or even the executable loader may find that the executable is invalid and won't load and execute it. Make the modifications to the source if you have it, and reinstall the service. You could alternatively export the IL, change it, and reassemble it.
Microsoft MVP, Visual C# My Articles