What does the number accompanying the line number in StackTrace mean?

I get an error in a hosted application and try to understand why the error occurs.

To do this, I look at the stack trace on the error page, which looks like this:

[

NullReferenceException: Object reference not set to an instance of an object.]
   MBANinja.demo.DemoTestPage.Page_Load(Object sender, EventArgs e) +696
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +41
   System.Web.UI.Control.OnLoad(EventArgs e) +131
   System.Web.UI.Control.LoadRecursive() +65
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427

Now I always thought that the number accompanying the method call was the number of the line in which the error was detected. But on this page there is a code (DemoTestPage) e only until the 220s. So what does +696 mean?

+3
source share
1 answer

You get line numbers only if debugging information is available (pdb file), otherwise you will get an offset in the current method.

+2
source

Source: https://habr.com/ru/post/1769532/


All Articles