Application State variables must be initialized in C# before any operation is performed on them. For example.:
You need to assign value to Counter state variable before performing the case (int)Session[‘Counter’].
Home / FAQ / ASP.NET / Error Handling / I get error message at runtime ‘Value null was found where an instance of an object was required’ when using Application state variables. why?
Application State variables must be initialized in C# before any operation is performed on them. For example.:
You need to assign value to Counter state variable before performing the case (int)Session[‘Counter’].
Share with