Troubleshooting

Troubleshoot IIS7 errors like a pro
Where did my IIS7 server go? Troubleshooting “server not found” errors

 

If you’re running a service, check out the “Service Trace Viewer”; some config notes @ StackOverflow
The file you need is SvcTraceViewer.exe and is found somewhere like C:\Program Files\Microsoft SDKs\Windows\<vn.n>@\Bin

 

sample tracing config

<!-- START SERVICE TRACING : notes from http://stackoverflow.com/questions/1136447/wcf-the-maximum-message-size-quota-for-incoming-messages-has-been-exceeded/1136806#1136806 -->
  <system.diagnostics>
    <sources>
      <source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing" >
        <listeners>
          <add name="xmlTrace"
               type="System.Diagnostics.XmlWriterTraceListener"
               initializeData="c:\Traces\ServiceTrace.svclog" />

        </listeners>
      </source>
    </sources>
    <trace autoflush="true" />
  </system.diagnostics>

  <system.serviceModel>

    <diagnostics>
      <messageLogging
          logMessagesAtTransportLevel="true" logMessagesAtServiceLevel="false"
          logMalformedMessages="true" logEntireMessage="true"
          maxSizeOfMessageToLog="65535000" maxMessagesToLog="500" />

    </diagnostics>

  </system.serviceModel>

  <!-- END SERVICE TRACING -->

 

simple tracing

After enabling the following value in web.config

<system.web>
  <trace enabled="true" pageOutput="true" />
</system.web>

 

Navigate to http://localhost/project/path/trace.axd
http://www.dotnetperls.com/trace

 

 

See Also

Debugging
Logging