I'm not sure that it will. I thought debug builds also hook into the
ProfilerAPI, but I may be wrong about that.

As far as security, it's not anymore of a risk than deploying programs
based on scripting languages where the source is always present. And
with Reflector it's really easy to decompile anyways, so a lack of
source isn't necessarily going to keep anyone from knowing exactly how
your code works.

On the other hand, if you're depending on line numbers to know where
your exceptions are, then you probably need more try/catch blocks, and
need to re-throw a lot more exceptions yourself.

On 4/22/05, Jeff Hughes <[EMAIL PROTECTED]> wrote:
> So if you include the pdb file on the server after the release build it will
> provide line numbers? But would this not constitute a security risk with the
> pdb file on the production server?
> 
> JJ
> 
> -----Original Message-----
> From: Marc Lewandowski [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 22, 2005 7:10 AM
> To: Log4NET User
> Subject: RE: line numbers of exceptions no longer show
> 
> You've got it right.  That is my experience as well.
> 
> -Marc
> 
> -----Original Message-----
> From: Sam Smoot [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 21, 2005 8:44 PM
> To: Log4NET User
> Subject: Re: line numbers of exceptions no longer show
> 
> Don't line numbers only show in debug builds? Without the pdb the
> original source, and line numbers, aren't present so they can't be
> shown.
> 
> In a Release build these aren't present.
> 
> Or do I have it wrong?
> 
> On 4/21/05, Jeff Hughes <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > I am pulling my hair out trying to figure out why the line number of
> > the exception are not showing up in production.
> >
> >
> >
> > In my dev and QA environment it works fine.
> >
> >
> >
> > Example: QA / DEV
> >
> >
> >
> > Exception: System.Exception
> >
> > Message: System.Exception: fun with exceptions
> >
> >    at Transcripts.login.Page_Load(Object sender, EventArgs e) in
> > d:\inetpub\wwwroot\transcripts\login.aspx.cs:line 57
> >
> >    at System.Web.UI.Control.OnLoad(EventArgs e)
> >
> >    at System.Web.UI.Control.LoadRecursive()
> >
> >    at System.Web.UI.Page.ProcessRequestMain()
> >
> >
> >
> > PROD
> >
> >
> >
> > Exception: System.Exception
> >
> > Message: System.Exception: fun with exceptions
> >
> >    at Transcripts.login.Page_Load(Object sender, EventArgs e)
> >
> >    at System.Web.UI.Control.OnLoad(EventArgs e)
> >
> >    at System.Web.UI.Control.LoadRecursive()
> >
> >    at System.Web.UI.Page.ProcessRequestMain()
> >
> >
> >
> > the line number does not exist in prod. Any clues??
> >
> >
> >
> > Here is my config
> >
> >
> >
> >             <appender name="FileAppender"
> > type="log4net.Appender.FileAppender">
> >
> >
> >
> >                   <filter type="log4net.Filter.LevelRangeFilter">
> >
> >                         <param name="LevelMin" value="WARN" />
> >
> >                         <param name="LevelMax" value="FATAL" />
> >
> >                   </filter>
> >
> >
> >
> >                   <param name="File" value="transcripts-Log.config" />
> >
> >                   <param name="AppendToFile" value="true" />
> >
> >                   <param name="Header" value="[Header]\r\n"/>
> >
> >                   <param name="Footer" value="[Footer]\r\n"/>
> >
> >                   <param name="BufferSize" value="512"/>
> 
> >
> >                   <param name="Lossy" value="true"/>
> >
> >                   <evaluator type="log4net.spi.LevelEvaluator">
> >
> >                         <param name="Threshold" value="WARN"/>
> >
> >                   </evaluator>
> >
> >
> >
> >                   <layout type="log4net.Layout.PatternLayout">
> >
> >                         <param name="ConversionPattern" value="%d [%t]
> 
> > %-5p %c [%x] - %m%n" />
> >
> >                   </layout>
> >
> >             </appender>
> >
> >             <root>
> >
> >             <!--
> >
> >                   ALL
> >
> >                   DEBUG
> >
> >                   INFO
> >
> >                   WARN
> >
> >                   ERROR
> >
> >                   FATAL
> >
> >                   OFF
> >
> >             -->
> >
> >                   <priority value="ALL"/>
> >
> >                   <appender-ref ref="SMTPAppender"/>
> >
> >                   <appender-ref ref="FileAppender"/>
> >
> >             </root>
> >
> >
> >
> >
> >
> > Thanks
> >
> >
> >
> > Jeff
> >
> >
> >
> >
>

Reply via email to