Link to home
Start Free TrialLog in
Avatar of David_zu
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.

  <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>

Open in new window


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
Avatar of Aaron Jabamani
Aaron Jabamani
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of David_zu
David_zu

ASKER

The WCF service is working fine. I am able to consume service correctly. I use process monitor to check the folder read / write activities. But there is no any activities to the folder. Looks like the config only work in my Visual Studio debug mode.
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?
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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes I got it when changed to All. Thanks for the help.