adding system.diagnostics section to web.config causes: 500 server error

I’m trying to enable tracing in my mvc4 web app on my production server.  I’ve added the following to web.config and i now get a 500 server error.  I’m guessing I’m missing some component, but I not sure how to proceed.  Seems to be referencing System.dll
according to object viewer.  Is there a new version?  This works find on my dev server, naturally.

          <add name="WebPageTraceListener"
               type="System.Web.WebPageTraceListener, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

Is .NET 2.0 installed on your production server? 


i now get a 500 server error

Please post the error message and stack trace

Hi alex,

You need to provide the detail error message, then we could deal with it.

Best Regards

Starain Chen

Leave a Reply