David_zu
asked on
IIS WCF Diagnosis
Hi Expert,
I am trying to configure trace of WCF in IIS. I configured following code in my Visual Studio and everything works fine.
However, no log is created after I deploy the codes to Windows 2012 server. I use process monitor to monitor read / write access, but there is no process trying to access this folder. Looks like I didn't enable something.
I am trying to configure trace of WCF in IIS. I configured following code in my Visual Studio and everything works fine.
<system.diagnostics>
<sources>
<source name="System.ServiceModel"
switchValue="Information, ActivityTracing"
propagateActivity="true">
<listeners>
<add name="traceListener"
type="System.Diagnostics.XmlWriterTraceListener"
initializeData= "C:\inetpub\logs\LogFiles\WCF\wcf.svclog" />
</listeners>
</source>
</sources>
</system.diagnostics>
However, no log is created after I deploy the codes to Windows 2012 server. I use process monitor to monitor read / write access, but there is no process trying to access this folder. Looks like I didn't enable something.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Since the web service runs in partially trusted environment, it is not guaranteed access to a folder. Is the web service running on IIS? What identity is used for the application pool?
ASKER
The web service is running in IIS. The folder is given "Everyone" rights. But strange thing is IIS doesn't access this folder at all. Because I didn't see any Deny Access from "Process Monitor". I have to review my IIS setup, Roles and Features and so on.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes I got it when changed to All. Thanks for the help.
ASKER