Jump to content

Reposting This issue as instructed. (null reference exception)


Recommended Posts

Posted (edited)

 

To reiterate it literally worked fine until it didn't. .net 4.8 is already installed (as I did some python and R). After multiple redownloads and uninstalled/reinstall the issue persist. I have seen a few posts where others have this issue also.

 

Thank you for reading. 

 

Edited by bustacap
Posted
  On 9/8/2020 at 1:56 AM, bustacap said:

 

To reiterate it literally worked fine until it didn't. .net 4.8 is already installed (as I did some python and R). After multiple redownloads and uninstalled/reinstall the issue persist. I have seen a few posts where others have this issue also.

 

Thank you for reading. 

 

Expand  

Can you post a screenshot of the null reference exception? Thanks

  Quote

I am merely the guy with a keyboard and monitor under the stairs.

Expand  

 

  • 1 year later
Posted

NullReferenceException means that you are trying to use a reference variable whose value is Nothing/null . When the value is Nothing/null for the reference variable, which means that it is not actually holding a reference to an instance of any object that exists on the heap.
 

string str = null;
str.ToUpper();

 

Above c# code throws a NullReferenceException at the second line because you can't call the instance method ToUpper() on a string reference pointing to null. So, check your code once again.

 

×
×
  • Create New...