I need to use WCFTrace on my web app but run into the following error: The server encountered an error processing the request. The exception message is 'Access is denied My web.config looks like: <?xml version="1.0"?> <configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> <system.serviceModel> <behaviors> <serviceBehaviors> <behavior> <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --> <serviceMetadata httpGetEnabled="true"/> <!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information --> <serviceDebug includeExceptionDetailInFaults="true"/> </behavior> </serviceBehaviors> </behaviors> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> <diagnostics> <messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" maxMessagesToLog="3000" maxSizeOfMessageToLog="10000" /> </diagnostics> </system.serviceModel> <system.diagnostics> <sources> <source name="System.ServiceModel" switchValue="Information, ActivityTracing" > <listeners> <add name="traceListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData= "E:\web\silvercl\Traces.svclog" /> </listeners> </source> </sources> </system.diagnostics> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> </configuration> my request looks like: http://www.silverclouddevelopment.c...tPushSvc/PushService.svc/register?uri=foo.com I understood that my app should have access to e:\web\silvercl
Winhost is where my service is hosted and I want to use wcftrace for my own logging and wcf so in my test code I do the following: public static TraceSource ts = new TraceSource("System.ServiceModel"); public void Foo { ts.TraceEvent(TraceEventType.Information, 0, "some string"); } on my local IIS this results in wcf trace info that I need if there are problems plus my trace info being written to Traces.svclog which is at e:\web\silvercl on Winhost.
Make sure the trust level is set correctly. Try setting it to high or full. If it is already set to full, set it to medium, save it, then set it back to full.