Top "Nullreferenceexception" questions

The .NET exception that is thrown when there is an attempt to reference (or use) a null or uninitialized object.

crystal report object reference not set to an instance of an object

I have crystal reports that keeps saying this error: {"Object reference not set to an instance of an object."} Stacktrace: …

object crystal-reports nullreferenceexception
Consuming JSON in WCF service method

In a larger project I am having trouble getting a WCF service method to consume a JSON parameter. So I …

javascript jquery wcf json nullreferenceexception
If null.Equals(null) why do I get a NullReferenceException

I have the following line of code: var selectedDomainID = lkuDomainType.EditValue.Equals(null) ? string.Empty : lkuDomainType.EditValue; Sometimes this generates …

c# null nullreferenceexception
System.NullReferenceException: Object reference not set to an instance of an object

I am using asp.net LoginView to show different data to authenticated and anonymous users. <asp:LoginView ID="LoginView1" …

c# asp.net visual-studio-2008 nullreferenceexception loginview
Using VB.NET IIF I get NullReferenceException

I am doing a little debugging, and so I want to log the eventArgs value I have a simple line …

.net vb.net nullreferenceexception
Cast null value to a type

I have a simple question. if we cast some null variable to a type. I expect compiler to throw Some …

c# casting compiler-errors null nullreferenceexception
Why does Entity Framework return null List<> instead of empty ones?

I'm pretty new in the ASP .NET MVC world. Maybe, that's the reason I can't explain to myself the cause …

c# entity-framework entity-framework-4.1 ef-code-first nullreferenceexception
Catch NullReferenceException or test for Nothing first?

We have a property whose job is to look up a description. If the lookup fails it should show an …

vb.net nullreferenceexception
How do I allow breaking on 'System.NullReferenceException' in VS2010?

I have a VS 2010 C# .NET 4 project. The issue is that the program is not breaking on 'NullReferenceException' errors during …

c# debugging visual-studio-2010 nullreferenceexception break
Why is [Owin] throwing a null exception on new project?

I have a rather strange issue i'm not sure how to fix or if i can even fix it. I've …

c# nullreferenceexception owin