wcf svclog to unc path?
I have a wcf service that I want to provide tracing for on a production server which I don't have local access to.
I would like to be able to have the .svclog file saved to a UNC path instead of a local disk.
Unfortunately, my attempts so far have given a very useless IIS7 500 internal server error message. (even though custom errors are turned off)
My web.config trace config looks like this:
<system.diagnostics>
<trace autoflush="true" />
<sources>
<source name="System.ServiceModel" propagateActivity="true"
switchValue="Information, ActivityTracing">
<listeners>
<add name="sdt" type="System.Diagnostics.XmlWriterTraceListener"
initializeData="\\fileserver\rootshare\mysite\app_data\my.svclog" />
</listeners>
</source>
</sources>
</system.diagnostics>
If I change the unc path to a local path and run it on my local webserver then all works fine
The app pool process runs as a restricted user account, that account has f开发者_StackOverflow中文版ull permissions to the app_data folder... any thoughts or obvious reason this wouldn't work? (like maybe that listener doesn't support unc paths?)
Setting up robocopy to move the file from the local server to the UNC path is going to be a lot less trouble and potential security risk.
Try to make the UNC fully trusted.. http://blogs.msdn.com/b/shawnfa/archive/2004/12/30/344554.aspx
精彩评论