257 questions with no answers
27
votes
0
answers
992
views
SAP Sybase SQL Anywhere NullReference Exception when openening and closing many connections in a service
Currently I've the problem that SAP Sybase SQL Anywhere randomly throws NullReferenceExceptions in a service which executes a lot of sql queries. The connections are always created in a using block ...
0
votes
0
answers
62
views
System.Data.Entity.Infrastructure.CommitFailedException
System.Data.Entity.Infrastructure.CommitFailedException: An error was reported while committing a database transaction but it could not be determined whether the transaction succeeded or failed on the ...
1
vote
0
answers
100
views
C# ASP.NET GridView - Row_Updating issues trying to get values from cells in the Gridview with NullReferenceException
There are 2 parts to my question. Please bear with me... just learning this stuff.
I have a GridView that allows editing, which will update a database table. Issue #1 is that I cannot seem to get the ...
2
votes
0
answers
395
views
NullReferenceException is thrown when reloading Blazor app with NavigationManager
I'm struggling with finding the reason of exception which is thrown after the entire page is reloaded.
It's a Blazor application (server side, .NET 8). In the header, there is a select list which ...
1
vote
0
answers
117
views
How to fix Image variable that is null during playtesting?
So currently I’m making inventory functions for my Michael game. I was making a script called RespawnItem.
public class RespawnItem : MonoBehaviour
{
//----PUBLICS----//
public PlayerCollectingSystem ...
0
votes
0
answers
122
views
NullPointerException: Attempt to invoke virtual method 'long SecuGen.Driver.SmartCapture3Fdu05.Start(int, boolean)' on a null object reference
I developed an application for **android **where i am getting Finger Print using **SecuGen **Pro 20 device.
Samsung device capture the finger print image. But other device can not capture image (such ...
0
votes
0
answers
117
views
WinForms: Reference to UserControl returns null, Forms designer adds bad code to InitializeComponent method
In this class library, there are several UserControls that get loaded and unloaded from a container Panel depending on what functionality is required. These UserControls contain docked panels that ...
0
votes
0
answers
89
views
ListView.Items(0),Selected error System.nullreferenceexception
I'm trying to debug a program which uses a ListView to create a list of icons for files stored in a DB. I got the log of an exception stating System.nullreferenceexception: 'object reference not set ...
0
votes
0
answers
38
views
Can an implicit interface cast cause null with a COM object?
I got an intermittent ArgumentNullException I can't understand.
the code looks something like
COMRow row = GetCOMRow();
DoSomething1(row);
DoSomething2(row);
DoSomething3(row);
...
// DoSomething ...
1
vote
0
answers
2k
views
Encountered infinite recursion while looking up resource 'Arg_NullReferenceException' in System.Private.CoreLib
My program was developed in .Net 7 (VS 2022) and running on non-English Windows 10 (x64). Most of the time my program works normally. However, the following error (in Event Viewer) was thrown ...
1
vote
0
answers
83
views
Test Class runs before @beforeSuite Class which causes NullreferenceException on Webdriver
I am new to selenium and I am trying setup a Automation framework, I have two classes one for Webdriver (Base class) initialization and second is to run testScripts I have Marked the Webdriver ...
1
vote
0
answers
146
views
How/why does ModelState throw System.NullReferenceException when being checked for null?
UPDATE: To avoid the problem, I tried explicitly checking for null, thinking that surely there's no way it could possible still throw the exception.
It does.
The following line throws a System....
1
vote
0
answers
163
views
ASP.NET Core MVC: asp-for Tag Null Property Behavior - VS2017 vs VS2022
I created a web app using ASP.NET Core MVC 2.0 in 2019 using Visual Studio 2017. I'm trying to update it now, and nowadays I also have Visual Studio 2022 installed, so I'm trying to use VS2022 to ...
0
votes
0
answers
75
views
List Object Reference null
I have a ProfileVM that includes:
public class ProfileVM
{
public ApplicationUser User { get; set; }
[NotMapped]
public IEnumerable<SelectListItem> JobsList { ...
0
votes
0
answers
139
views
Why am I getting "Possible null reference assignment" after upgrading to net7.0 in my Azure function?
I upgraded my Azure function from net6.0 to 7 and now I'm getting lots of warnings like this below that are pestering me about possible null references.
I know why there's a warning, but why now only ...