In my deployed .NET 3.5 / ASP.NET web application, error stack traces always show byte offsets for native code, not line numbers:
... System.Linq.Enumerable.ToList(IEnumerable`1 source) +61 MyApp.prLoadData() +3931 <--should show line number MyApp.Page_Load(Object sender, EventArgs e) +1378 <--should show line number System.Web.UI.Control.OnLoad(EventArgs e) +99 ...
Things I already checked:
- The application binary file is compiled in debug mode.
- I have "Generate Debugging Information" set to "Full"
- The application pdb file is deployed in the bin directory and has the same creation timestamp as the dll file.
- Setting compilation = "true" in web.config does not matter.
- Removing "Enable Optimization" does not matter.
This particular server belongs to the IT department, and I do not have access to it, nor any knowledge about machine-level overrides. However, I expected ASP.NET to use pdb files, but it does not.
Does anyone know what is going on here? Thanks in advance.
source share