Profiler seems not to work with log4net
wsyeager
Posts: 3
I started a profiling session for a .Net executable, but it seems to be conflicting with log4net.
I get the following error when the profiling job is started:
log4net:ERROR [RollingFileAppender] Unable to acquire lock on file d:\logs\xxxx.log. The process cannot access the file 'd:\logs\xxxx.log' because it is being used by another process.
What can I do to successfully enable the profiling session?
I get the following error when the profiling job is started:
log4net:ERROR [RollingFileAppender] Unable to acquire lock on file d:\logs\xxxx.log. The process cannot access the file 'd:\logs\xxxx.log' because it is being used by another process.
What can I do to successfully enable the profiling session?
Comments
Are you able to work out which process is using the file? Maybe it's antivirus as that does wonderful, random things once you introduce the profiler core component into a process.
I don't see an option to profile a web service that is hosted on IIS.
How would I do that?
Good Luck!!