views:

42

answers:

2

Hi, I'm developing an ASP.NET website in viusal studio 2008, the thing is that I changed a line in the code, this change trows an exception (NullReferenceException) at runtime, after I change the line back it still trows the same exception, I want to follow the stack trace to look into the error and solve it, can you guys give some tips? thanks.

EDIT: Im developing a Web Map Aplication with ArcGis Server 9.3.1, Here's the stack trace:

[NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.]
   ESRI.ArcGIS.ADF.Web.UI.WebControls.DataSourceManager.AddDataSourceInstance(String type, String name, String identity, String definition) +666
   ESRI.ArcGIS.ADF.Web.UI.WebControls.MapResourceItem.CreateResource() +404
   ESRI.ArcGIS.ADF.Web.UI.WebControls.GISResourceManager`2.initResourceItems() +170
   ESRI.ArcGIS.ADF.Web.UI.WebControls.GISResourceManager`2.OnInit(EventArgs e) +149
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
A: 
  • Maybe assembly was not reloaded if it thows the same exception while code is changed back?
  • could be about data or configuration
  • if you do not have a source code, you can not follow the stack trace in debug
ika
How can I force the assembly to reload?
eiefai
Recycle the application pool in IIS. Or kill `w3wp.exe`.
Frédéric Hamidi
Thanks, I'll try it.
eiefai
A: 

You should also do a Clean Solution (from the Build menu). This will remove any compilations that it is caching for the ASP.Net page.

Gabriel McAdams
@Gabriel, those are not line numbers. They're offsets from the start of the function's machine code. Questioner is using a release build.
Frédéric Hamidi
Removed that section of my answer. Thank you.
Gabriel McAdams