2,776 questions
3
votes
2
answers
160
views
Powershell Issue with change Password
I have a PowerShell script to change local Admin Password and output it in csv.
I am getting the error message:
Export-Csv : Cannot bind argument to parameter 'InputObject' because it is null.
At G:\...
0
votes
0
answers
103
views
await on object method call with nullable syntax throws exception [duplicate]
I'm trying wrap my head around this issue,
I've created a sample C# program.
myClassObj is deliberately set to null to produce this scenario.
Program fails at await myClassObj?.MethodAsync()
...
2
votes
1
answer
82
views
Code triggers unexpected null value in Firestore data call
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 ...
2
votes
1
answer
56
views
Remove-IISConfigCollectionElement causes NullReferenceException
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 ...
2
votes
1
answer
199
views
NullReferenceException when checking if the Model is null on a Razor Page
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 ...
0
votes
0
answers
61
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 ...
0
votes
1
answer
97
views
In a WebForms application, newly added control is null at runtime on published site but not in local debugging
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 ...
0
votes
1
answer
53
views
Value of a variable in a script, on a GameObject in an array? [duplicate]
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 ...
1
vote
0
answers
99
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 ...
-1
votes
1
answer
118
views
How can I tag a value as not expected to be null?
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);
/* .....
1
vote
1
answer
656
views
Unity - Why is my Singleton throwing a NullReferenceException when I re-load the scene?
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 ...
0
votes
1
answer
54
views
EcoProject1EcoSpace suddenly not instantiating in VS2022 (MDriven Framework, 4.8.1)
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 ...
2
votes
1
answer
66
views
C# - Creating a query in a SQL DB with EntityFrameWork - ERRO -> Value cannot be null. (Parameter 'source')
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 {
...
2
votes
0
answers
391
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
2
answers
221
views
unhandled System.NullReferenceException: on debug clean .net coreweb api / exception at System.Buffer.Memmove(Byte& dest, Byte& src, UIntPtr len)
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:...