Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
80 views

I am working in Flutter on a web app. I am not a coder and I'm having issues with a very simple app that changes a color based on a boolean stored in Firestore. I'm seeking an understanding of how to ...
Op1's user avatar
  • 21
2 votes
1 answer
46 views

I am developing a PowerShell script to modify customHeaders in my website's web.config file, specifically the Content-Security-Policy header. I'm doing this with a script for 2 reasons: For my ...
wames's user avatar
  • 63
2 votes
1 answer
147 views

I have a situation where I am getting a NullReferenceException when I am checking a model (not a property) to see if it is null. Follow these steps to re-create the issue yourself. Create a brand new ...
ThePeter's user avatar
  • 958
0 votes
0 answers
46 views

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 ...
Divakar Upadhyay's user avatar
0 votes
1 answer
84 views

I just added a new control in an existing page aspx file, assuring the validity of the markup and code itself by running it locally in debug shows correctly the new control and behaviors in page. But ...
Pascal Boutin's user avatar
0 votes
1 answer
35 views

My first question here. I'll try to be clear :) Is there a way to get the value of a variable in a script, on a GameObject in an array? I have an array of GameObjects, on which each of them has the ...
Karl Sköld's user avatar
1 vote
0 answers
92 views

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 ...
Amy 's user avatar
  • 29
0 votes
0 answers
23 views

Edit: I know this looks like a duplicate, but I understand that a Nullreference exception happens as I access an object that hasn't been set, or is null. However, I simply don't understand why any of ...
xingharvey's user avatar
0 votes
0 answers
16 views

I was running the code for a universal windows app when the debugger raised: System.NullReferenceException: 'Object reference not set to an instance of an object.' modelGen was null. The code is : //...
Vikash Vaibhav's user avatar
-1 votes
1 answer
101 views

I have a function that's correctly specified as returning a potentially-null object. My code calls that function but in a way where it isn't going to return a null. MyClass? MyFunction(string x); /* .....
billpg's user avatar
  • 3,313
1 vote
1 answer
530 views

I am facing an issue with a NullReferenceException in my code. I've created a LevelManager script to manage the different scenes of my game. Inside this file ScoreKeeper object is called. This ...
Maxence Hermand's user avatar
0 votes
1 answer
48 views

OK, so I solved this problem (runtime crash due to incompatible types recognized by Eco's TypeLibrary-scan). Solution: I removed Rhinol3D classes from Eco method signature parameters, and then ...
RIL's user avatar
  • 187
2 votes
1 answer
62 views

I'm trying to create the following query in C# with EntityFrameWork: SELECT * FROM Companies WHERE Name LIKE '%(searchValue)%'; This is the table sample: Company class: public class Company { ...
Jean Tosta's user avatar
2 votes
0 answers
350 views

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 ...
gis's user avatar
  • 163
1 vote
2 answers
197 views

i have last vs 2022 17.10.5 no updates possible when i do new > asp.net core web api > some location > create and hit debug with no change then it open browser with url https://localhost:...
Dorian's user avatar
  • 1,096
1 vote
1 answer
88 views

I have the following extension method for IsNotNull and it works fine but I get warning when using it that there may be a null reference and I am trying to figure out how to remove that warning ...
workabyte's user avatar
  • 3,815
1 vote
2 answers
99 views

I am trying to pass the layout as a cascaded parameter to the page that uses the layout. The issue I am facing is that the layout cascaded parameter in the page is always null. Here is the code I am ...
Ahmed H. Sharafeldin's user avatar
0 votes
0 answers
31 views

I'm programming a Text Adventure RPG in C# for a university project and it's due on Sunday. Now i've encountered this fatal exception that doesnt let me even execute the program. class Program { ...
Manurk Kurogane's user avatar
1 vote
0 answers
38 views

I've been on Unity for a very long time, yet I've come across the most common error. I made a script to create a ship components store from a list of ScriptableObjects. Here's the ScriptableObjects: ...
I'm Gogole's user avatar
2 votes
1 answer
67 views

The title. there are no mentions of the spriterenderers or array anywhere else in the program SpriteRenderer[,] Renderer = new SpriteRenderer[8,8]; void Awake() { if (D) { ...
Tyler Levy's user avatar
0 votes
1 answer
64 views

I have written a C# application in Visual Studio (using Avalonia, irrelevant for this question). It runs perfectly in Visual Studio, yet when I try and run the executable, it throws a ...
Lito Bezos's user avatar
0 votes
0 answers
117 views

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 ...
F. Rahman's user avatar
1 vote
0 answers
115 views

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 ...
Teyonna Butler's user avatar
0 votes
0 answers
30 views

We have a C#/.NET application running as a Windows Service. Infrequently, it logs several entries of the following form in the Windows Event Viewer. Log Name: Application Source: Windows Error ...
A.M.'s user avatar
  • 44
0 votes
1 answer
54 views

I really don't know what to write here. I was just coding and this stuff happened. connection.Open(); SqlCommand cmd = connection.CreateCommand(); cmd.CommandText = "select count(*) from ...
Unseens's user avatar
0 votes
0 answers
93 views

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 ...
CrackingWise's user avatar
0 votes
0 answers
84 views

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 ...
grimoiredark's user avatar
0 votes
0 answers
19 views

ansNum = Random.Range(0, ans.Count); ADisplay.AnsA = ans[ansNum]; ans.RemoveAt(ansNum); ansNum = Random.Range(0, ans.Count); ADisplay.AnsB = ans[ansNum]; ans.RemoveAt(ansNum); ...
Raymond Tan's user avatar
0 votes
0 answers
35 views

I create the "History" parameter through the project properties and I'm trying to put a value in that parameter and save it: Properties.Settings.Default.History.Add("00:30"); ...
ᴥSaiLyᴥ's user avatar
1 vote
1 answer
48 views

I have a test code @page "/admin/userInfo" @page "/admin" @inherits OwningComponentBase<UserManager<IdentityUser>> @inject AuthenticationStateProvider ...
Can's user avatar
  • 15
-2 votes
1 answer
61 views

So this piece of code public boolean getBoolean(Integer Id) { return Optional.of(Store.getMagazin(Id)) .map(MagazinDO::getBoolean) .orElse(Boolean.FALSE);} returns a null while ...
butertoast's user avatar
0 votes
0 answers
21 views

I get "NullReferenceException: Object not set to an instance of an object" error, while trying to get a value from another script. //first script public class Easy : MonoBehaviour { ...
georgefarfuridi's user avatar
0 votes
1 answer
76 views

I have the following aspx panel: <asp:Panel ID="EndPanel" runat="server" CssClass="container" Visible="false"> <asp:Image ID="Border" ...
Impossiblegend's user avatar
1 vote
1 answer
2k views

I have been working on an application for about two and a half years now and last month we went live and published our .NET application. The application is a WPF application that uses .NET version 5.0....
Sep Vrij's user avatar
0 votes
1 answer
206 views

I post part of the stack trace. This exception doesn't happen regularly and is hard to replicate. But it usually occurs after getting back from its IIS process idle.(Run it first, do nothing for a ...
Ryan Xu's user avatar
  • 19
0 votes
0 answers
35 views

I got an intermittent ArgumentNullException I can't understand. the code looks something like COMRow row = GetCOMRow(); DoSomething1(row); DoSomething2(row); DoSomething3(row); ... // DoSomething ...
adrianm's user avatar
  • 14.8k
1 vote
0 answers
1k views

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 ...
Linus's user avatar
  • 61
0 votes
2 answers
95 views

I have a null-checking extension method public static IEnumerable<T> OrEmptyIfNull<T>(this IEnumerable<T> source) { return source ?? Enumerable.Empty<T>(); } which is nice ...
Nick's user avatar
  • 490
0 votes
1 answer
64 views

I have a problem for showing Level and Statues of course in course View enter image description here. Here is my problem and the database does have data, but in add course service, it returns null in ...
milad's user avatar
  • 1
0 votes
1 answer
53 views

the code snippet will compile but when run a NullReferenceException is thrown. It says "object not set to an instance of an object". The code is created using .NET Core 3.1 on VS2019. I ...
Mat52's user avatar
  • 21
0 votes
1 answer
83 views

I have this div in my markup <form id="form1" runat="server"> <div class="mt-5"> <div id="d" runat="server"></div> ...
Gabriele Cozzolino's user avatar
1 vote
1 answer
131 views

I have a report page that I am trying to create on a Razor page app and I cannot get it to work. I have a similar working app and cannot see where I am doing anything differently, but must be missing ...
MelB's user avatar
  • 183
0 votes
1 answer
29 views

I am receiving this error on a report page on my asp.net app. I have looked at the other answers to questions asked about this error, but am still unable to understand how to resolve it. I am ...
MelB's user avatar
  • 183
1 vote
1 answer
594 views

I've seen a few questions about lambdas and exceptions, but I still don't understand the behavior I'm seeing in my code. class MyObj { public object Prop1 { get; set; } ...
Rachel's user avatar
  • 1,406
-3 votes
1 answer
322 views

can anyone tell why the compiler is throwing the warning even if i checked everthing for null?? // check if non default accent color is selected var accCol = await LocalSorage.GetItemAsync<string&...
Sascha Heimann's user avatar
2 votes
3 answers
1k views

I am having a strange NullReferenceException error when using dependency injection in my .NET MAUI 7 app. The API call to my API/token login URL works perfectly when I instantiate a new HttpClient for ...
JarredThera's user avatar
1 vote
0 answers
80 views

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 ...
Reventh Kumar's user avatar
1 vote
0 answers
156 views

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 ...
David K's user avatar
  • 13
1 vote
0 answers
144 views

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....
Sarov's user avatar
  • 665
0 votes
1 answer
138 views

I want to set the date into a session, but it's giving me a null value. Here is my code using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; ...
weboshi's user avatar

1
2 3 4 5
56