views:

197

answers:

1

I'm using an Ajax update panel and have recently added ASP.NET tracing code to aid in debugging. All of the sudden I started getting PageRequestManagerParseErrorExceptions when any Ajax code is executed.

For example:
Trace.Write("Done setting employeeId.");

Apparently this is because I am not allowed to use "server tracing" along with Ajax. (according to this post by Eilon Lipton).

Is this true? Am I not allowed to use the awesome ASP.NET tracing mechanism? It would be a shame.

A: 

Setting pageOutput="false" on the trace element in web.config seems to solve the problem.

Use ASP.NET tracing, but rather write to the normal diagnostics trace by setting the writeToDiagnosticsTrace attribute to "true" (this is on the trace element in your web.config file).

willem