Live Chat Icon For mobile
Live Chat Icon

I get error message at runtime ‘Value null was found where an instance of an object was required’ when using Application state variables. why?

Platform: ASP.NET| Category: Error Handling

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

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.