Skip to main content

I am trying to use log4net in service to log the exceptions in a separate file but while doing so I am getting an issue. Post deployment of service broker dll and log4net in program files(x86)/K2 blackpearl/service broker, I'm getting an exception thatĀ Could not load file or assembly 'log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a' or one of its dependencies. The system cannot find the file specified.

Config file for log4net is there with all of the info required and also under assembly file.

Any solution for this.?

Hello,


 


I would enable fusion logging and see the location the assembly is being loaded from, and then throw the asm there. My guess is either bin or gac is where we're looking.


 


Regards,


Matt


 


K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member.


Try Loading the Log4Net Dll into GAC and Check. If it doesnt work, you can try copying the dll to Hostserver/Bin folder and check if it works.


Reply