| Author |
Message |
wsyeager
Joined: 16 Nov 2011 Posts: 2
|
Posted: Wed Nov 16, 2011 9:12 pm Post subject: Profiler seems not to work with log4net |
|
|
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? |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6341 Location: Red Gate Software
|
Posted: Thu Nov 17, 2011 1:38 pm Post subject: |
|
|
I can't say as we have never seen this problem before. Profiler also uses Log4Net, but it logs to a location that would more than likely not interfere with yours.
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. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
wsyeager
Joined: 16 Nov 2011 Posts: 2
|
Posted: Thu Nov 17, 2011 7:15 pm Post subject: |
|
|
Brian, going another route....
I don't see an option to profile a web service that is hosted on IIS.
How would I do that? |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6341 Location: Red Gate Software
|
Posted: Mon Nov 21, 2011 4:20 pm Post subject: |
|
|
Same as profiling a web application. Only minimize the IE when it opens, as closing this will stop profiling. Get whatever consumes the webservice running and you should see results. Of course if you choose profile on unused port you have to change the contract on your service consumer to use the new port.
Good Luck!! _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group