A question on debugging

  • Thread starter Mike Chamberlain
  • Start date
M

Mike Chamberlain

Hi there.

Using .NET framework 1.1 and ASP.NET, when my application throws an
exception locally, I get the line number in the stack trace. However,
when deployed I do not see this.

Eg. on my machine I see, for a certain error I see:

at Uwc.MoreWays2Pay.Recharge.CreditCard.Page_Load(Object sender,
EventArgs e) in
d:\websites\uwc.moreways2pay\recharge\creditcard.aspx.cs:line 62
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain()

But on the production server I see:

at Uwc.MoreWays2Pay.Recharge.CreditCard.Page_Load(Object sender,
EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain()

Anyone know how I can make it show the line number?

Cheers,

Mike
 
M

Mike Chamberlain

Search for your customErrors tag in the Web.config file and show it to
us.

<customErrors mode="RemoteOnly" defaultRedirect="/Errors/General.aspx">
</customErrors>

But it clearly has nothing to do with the custom errors tag as I am
catching all exceptions from the Application_OnError event and emailing
them to myself. On my development machine I get the line number in the
stack trace, but not on the production server. The development machine
is running XP Pro, the production server is Win 2003 Enterprise.

I will also confirm that the .pdb file has been uploaded to the
production machine and resides in the same folder as the DLL.

Anyone else got any ideas?

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top