|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to get line number from Stack Trace?Here is a sample Stack Trace that I may get from a typical error in my ASP.NET Web application. Notice the number +521 at the end of the second line. How do I interpret this into a real line number within my code?
[SocketException (0x2afc): The requested name is valid, but no data of the requested type was found] StoreFront.payment.PleaseWaitButton1_Click(Object sender, EventArgs e) +521 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1292 If the pdb is the same one that was built with the app, they should be the same.
"Robert Barish" <bostonn***@yahoo.com> wrote in message news:OJGxAcU6FHA.1416@TK2MSFTNGP09.phx.gbl... Here is a sample Stack Trace that I may get from a typical error in my ASP.NET Web application. Notice the number +521 at the end of the second line. How do I interpret this into a real line number within my code?[SocketException (0x2afc): The requested name is valid, but no data of the requested type was found] StoreFront.payment.PleaseWaitButton1_Click(Object sender, EventArgs e) +521 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1292 There is no PDB, this is a release version of my DLL.
"W.G. Ryan - MVP" <WilliamRyan@nospam.gmail.com> wrote in message news:%23hLfQ4U6FHA.3120@tk2msftngp13.phx.gbl... If the pdb is the same one that was built with the app, they should be the same. "Robert Barish" <bostonn***@yahoo.com> wrote in message news:OJGxAcU6FHA.1416@TK2MSFTNGP09.phx.gbl... Here is a sample Stack Trace that I may get from a typical error in my ASP.NET Web application. Notice the number +521 at the end of the second line. How do I interpret this into a real line number within my code?[SocketException (0x2afc): The requested name is valid, but no data of the requested type was found] StoreFront.payment.PleaseWaitButton1_Click(Object sender, EventArgs e) +521 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1292 You can't get the line number if the DLL is not compiled in debug mode.
"Robert Barish" <bostonn***@yahoo.com> wrote in message news:einuh2f6FHA.2040@TK2MSFTNGP14.phx.gbl... There is no PDB, this is a release version of my DLL. "W.G. Ryan - MVP" <WilliamRyan@nospam.gmail.com> wrote in message news:%23hLfQ4U6FHA.3120@tk2msftngp13.phx.gbl... If the pdb is the same one that was built with the app, they should be the same. "Robert Barish" <bostonn***@yahoo.com> wrote in message news:OJGxAcU6FHA.1416@TK2MSFTNGP09.phx.gbl... Here is a sample Stack Trace that I may get from a typical error in my ASP.NET Web application. Notice the number +521 at the end of the second line. How do I interpret this into a real line number within my code?[SocketException (0x2afc): The requested name is valid, but no data of the requested type was found] StoreFront.payment.PleaseWaitButton1_Click(Object sender, EventArgs e) +521 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1292 |
|||||||||||||||||||||||