Click here to Skip to main content
15,896,526 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi my dear friends. sometimes i face an error in my error list when i build my project in asp.net(Visual Studio) that the error has no line number or filename specified.
that error usually something like 'Object reference not set to an instance of object'
Posted
Updated 7-Mar-13 19:12pm
v2

hai... meaning of that error is.. your r missing or lose to pass the correct value into the variable...
for example...

->you are defining any variable..
->you are going to pass the value to the variable at dynamically
->your are using that variable in some place,like multiplication..
->if in case the value you are passing that variable is missing.. then it shows the error at multiplication process..Like "Object reference is not set to instance of object"


to check this or to solve this error

-> keep break points check every variable values at run time

->anything shows null value then try to solve that

good luck
 
Share this answer
 
Comments
Pooyan Behroozfar 8-Mar-13 1:10am    
Thank you. I know what that error means. i face something like that error with no line numbers or filenames. my error list window doesn't show such information for that error. Thats my problem.
Harikamalina 8-Mar-13 2:15am    
if object reference error it show... then it not show any error line number in error list i think.... for that only please check every thing what you are using variables in code
Hi!!! Pooyan
Some time you face this type of error because of bugs in vs kindly submit this type of error in msdn form(microsoft site)
the solution is save the project and close vs and restart VS
 
Share this answer
 
Comments
Pooyan Behroozfar 8-Mar-13 1:50am    
Thanks my friend. Does this error makes me trouble in the future?
Shubham Choudhary 8-Mar-13 1:56am    
what vs are you using!!!!
Shubham Choudhary 8-Mar-13 1:59am    
vs 2010 or 2012
Pooyan Behroozfar 8-Mar-13 3:16am    
2010 ultimate

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900