Click here to Skip to main content
16,012,843 members
Articles / Web Development / ASP.NET

Object reference not set to an instance of an object

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
22 Apr 2010CPOL 7.3K  
With C# .Net, many times you may need to typecast an object value to string. And you might have noticed that it throws null reference exception as ”Object reference not set to an instance of an object”. This is a run time exception & will occur mostly when you try to typecast a null value to...

Views

Daily Counts

License

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


Written By
Software Developer (Senior)
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions