Re: tracing in webservices
- From: W Buckner <wxb1@xxxxxxxxxxx>
- Date: Tue, 01 Jul 2008 20:57:03 GMT
"eschneider" <eschneider@xxxxxxxxxxxxxxxx> wrote in
news:exVR$qXzIHA.4452@xxxxxxxxxxxxxxxxxxxx:
I think they get removed in the release build.
"W Buckner" <wxb1@xxxxxxxxxxx> wrote in message
news:O8w3k.5576$jI5.2678@xxxxxxxxxxxxxxxxxxxxxxx
I'm trying to implement a trace from within my webservice. I'm
debugging the trace code in the web service but every line that
actually does any output is ignore within VS2005.
for example:
Trace.WriteLine("hello")
The above line and any line that actually tries to write to the trace
is ignored. I can't set a breakpoint on the line or force the
debugger to go to it when debugging under VS2005. Does anybody know
what's going on here?
I found the solution here:
http://msdn.microsoft.com/en-us/library/b0ectfxd(VS.80).aspx
Just add the following tags to the web.config:
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp"
extension=".cs"
compilerOptions="/d:TRACE"
type="Microsoft.CSharp.CSharpCodeProvider, System,
Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
warningLevel="1" />
<compiler language="VB"
extension=".vb"
compilerOptions="/d:Trace=true"
type="Microsoft.VisualBasic.VBCodeProvider, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</compilers>
</system.codedom>
The MS article has more information.
.
- Prev by Date: How to add webreference in aspx inline code
- Next by Date: Re: How to add webreference in aspx inline code
- Previous by thread: How to add webreference in aspx inline code
- Next by thread: Re: System.Net.WebException The request failed with HTTP Status 404
- Index(es):
Relevant Pages
|