简体   繁体   中英

Debugging service with new redirected strong name assemblies

We found a problem with third party assemblies which are strongly named and are used in our windows service.

On the client machine, with the already installed release build I dropped in the new assemblies and in the application config file I redirected the services to load the new assemblies. My service starts but does not seem to do anything (it should start logging as soon as it starts).

I was wondering if on my development machine I can run my application in Debug and some how use the new assemblies to try to work out where the service is failing?

JD

A couple of things you can try:

  • To debug the service, try inserting a "System.Diagnostics.Debugger.Break()" in the first line of your OnStart() method

  • If you can't change the code, increase the Fusion logging level and then run the service again. Your assembly error should be logged with more details in the Event Viewer. Some good instuctions here: How to enable assembly bind failure logging (Fusion) in .NET

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM