Articles in this section
Category / Section

How to enable tracing and error message logging in Silverlight OlapClient?

3 mins read
  1. Right-click on web.config file and select Edit WCF Configuration.

 

cid:image001.png@01D02F99.028DE5E0

Figure 1: Edit WCF Configuration window

When you cannot find the “Edit WCF Configuration” here, goto Tools -> Select Edit WCF Configuration.

 

cid:image002.png@01D02F99.028DE5E0

Figure 2: Edit WCF Configuration Window

  1. Click on Diagnostics and choose Enable Message Logging and Tracing.

 

cid:image003.png@01D02F99.028DE5E0

Figure 3: Enabling Message Logging and Tracing

cid:image004.png@01D02F99.028DE5E0

Figure 4: Enabling Message Logging and Tracing

  1. When you want to change the log file saving location, open the web.config in VisualStudio and change the location as follows.

XAML

<system.diagnostics>
                    <sources>
                     <source propagateActivity="true" name="System.ServiceModel" switchValue="Warning, ActivityTracing">
                      <listeners>
                       <add type="System.Diagnostics.DefaultTraceListener" name="Default">
                        <filter type="" />
                       </add>
                       <add name="ServiceModelTraceListener">
                        <filter type="" />
                       </add>
                      </listeners>
                     </source>
                     <source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing">
                      <listeners>
                       <add type="System.Diagnostics.DefaultTraceListener" name="Default">
                        <filter type="" />
                       </add>
                       <add name="ServiceModelMessageLoggingListener">
                        <filter type="" />
                       </add>
                      </listeners>
                     </source>
                    </sources>
                    <sharedListeners>
                     <add initializeData="c:\users\jas\appdata\local\syncfusion\essentialstudio\12.4.0.24\silverlight\olapclient.silverlight\appearance\skindemo\olapclient.silverlight.samples.web\web_tracelog.svclog"
initializeData="c:\log\web_tracelog.svclog"
                      type="System.Diagnostics.XmlWriterTraceListener, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
                      name="ServiceModelTraceListener" traceOutputOptions="Timestamp">
                      <filter type="" />
                     </add>
                     <add itializeData="c:\users\jas\appdata\local\syncfusion\essentialstudio\12.4.0.24\silverlight\olapclient.silverlight\appearance\skindemo\olapclient.silverlight.samples.web\web_messages.svclog"
initializeData="c:\log\web_tracelog.svclog"
                      type="System.Diagnostics.XmlWriterTraceListener, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
                      name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp">
                      <filter type="" />
                    </add>
                    </sharedListeners>
                   </system.diagnostics>

  1. You can host this web.config in server, and the log files are saved in “C:\log\web_tracelog.svclog”.
  2. Make sure that your Application Pool – Identity has permission to write to that folder.

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied