Thursday, March 22, 2012

system.nullreferenceexception problem

can anybody solve or tell more about this problem

System.NullReferenceException: Object reference not set to an instance of an object

[NullReferenceException: Object reference not set to an instance of an object.]
Microsoft.ApplicationBlocks.UIProcess.WebFormViewManager.GetViewNameForCurrentRequest(IView currentView) +99
Microsoft.ApplicationBlocks.UIProcess.Navigator.GetControllerForView(IView view) +89
Microsoft.ApplicationBlocks.UIProcess.WebFormView.WebFormView_Load(Object sender, EventArgs e) +312
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +733

Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300

thanks

this is not enough info to tell you exactly what you are doing wrong, but - you are calling on a variable that you did not assign a value to. It could be something as simple as:

int a; // giving it no value

int b = a; // as you can see, you didnt *** value into a, so you are calling on a null value


this is not enough info to tell you exactly what you are doing wrong, but - you are calling on a variable that you did not assign a value to. It could be something as simple as:

int a; // giving it no value

int b = a; // as you can see, you didnt put a value into a, so you are calling on a null value


Please provide the code so we can look into the problem!

Thanks for replies.

actually i m totally new to asp.net. i have to modify an already existing project. so its more confusing bcoz i dont know very much about the actual code. the strange thing i notice that website run properly for some time at starting. and after some time it will show nothing except the system.nullreference exception on each page. does this information help to u understand the problem??

is it related to something like cache expired? i dont know abt this problem and that's why i m searching net for a solution.

thanks

0 comments:

Post a Comment