.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

Runtime Exception :- Object Reference not set to an instance of an object

Posted By: Balwant     Posted Date: March 16, 2011    Points:5   Category :C#
i m working on window application in C# 2.0 this application is so large and i m working on one module.

the exception at run time is:-
"Object Reference not set to an instance of an object".

i m confuse, from where it is generate and why it is generated, because the solution has no error at compile time and also the data is saved to the database but could not fetch when click on the result button for that data.
Please help me.


Responses
Author: Maverick             
Posted Date: March 16, 2011     Points: 20   

Hello,

Please copy paste your code so that i can understand it and may be help you out.

Thanks,
Maverick

Thanks,
Maverick
Author: Arul             
Posted Date: March 16, 2011     Points: 20   

Hi,

The object you are trying to use may be null.

Thanks,
Arul

Author: kamlesh             
Posted Date: March 16, 2011     Points: 20   

check below link


http://support.microsoft.com/kb/810098

http://en.csharp-online.net/CSharp_FAQ:_What_does_Object_reference_not_set_to_an_instance_of_an_object_mean

Thanks And Regards.
Kamlesh Nikam
Author: Sunil Yadav       [Moderator]      
Posted Date: March 16, 2011     Points: 20   

Hi,

Set the debugger on reset button click to find out the object causing this error.



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend