exception
-
Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. What could be the reason for the error.
where there is a will there is a way
-
Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. What could be the reason for the error.
where there is a will there is a way
This error may occurs when the object is not inilized. Use this: myClass myObject = new myClass(); OR myClass myObject = null; myObject = new myClass();
-
This error may occurs when the object is not inilized. Use this: myClass myObject = new myClass(); OR myClass myObject = null; myObject = new myClass();
-
Its null reference because you havent instantiated or assigned to an instance. Why it throws an exception is because you using even though it is null reference. Hope this answers your question..
.NET Rules
-
This error may occurs when the object is not inilized. Use this: myClass myObject = new myClass(); OR myClass myObject = null; myObject = new myClass();
hi. my error got rectified, that was because i had used transactions and missed out to assign the transaction property for the command object. regards -----------------------------------------------------------------
where there is a will there is a way