All Questions
1,099
questions
1
vote
4
answers
104
views
How to ensure a specific method is called after method chaining in C#?
I'm trying to create an API in C# that uses method chaining. I want to ensure that at the end of the chain, a specific method (e.g., Throw()) is called. If this method is not called, an exception ...
0
votes
0
answers
85
views
How can I improve performance and increase the speed of processing data so that it takes short time read and process 500,000 records
I'm having a .net core console application that reads parts of the JSON files stored in a folder the part of the JSON that I'm reading contains greater than 500,000 records in it, I'm able to read all ...
-1
votes
1
answer
53
views
How does a Task understand that it has already been executed if the thread is released?
For example, if I asynchronously contact the database with a request. How should a Task understand that it has already been completed and change its status?
Do I understand correctly that when I ...
0
votes
2
answers
75
views
I receive null after Model Binding
I receive variable with null values after model binding. What might be wrong here? Title is null, content is null after form submitting.
Create.cshtml
<form asp-action="Create" method=&...
0
votes
2
answers
25
views
Problems adding a person or group to a task list using Microsoft.Graph
I work with Microsoft.Graph and there was a problem with adding a field of the Person or Group type. The code shown now adds a new task to the list of SharePoint tasks, which is based on the data that ...
0
votes
1
answer
59
views
dotnet-ef : The term 'dotnet-ef' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of
Below error in dotnet core 8 can be solve by following below steps:
the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ dotnet-ef
+ ~~~~~~~~~
+ ...
0
votes
0
answers
29
views
OData .net core dealing with a generic collection
New to OData and I have a question I cannot seem to find a solid solution for. I admit this might just be info overload and I cannot find the right path. So I am looking for at least a path forward.
I ...
0
votes
2
answers
40
views
ASP.NET [PageRemote] did't work with class. Why?
This is ASP.NET Razor Pages Project with ASP.NET Identity Registration Page (.NET 8).
Email checking (PageRemote) works fine, but only if the Email property is not a member of the Input class (...
2
votes
2
answers
221
views
There is no startup.cs codes in dotnet core 8. What will I do?
There is no startup.cs application in my dotnet core 8 project. The guide I followed includes startup.cs because it is an old version. What should I do?
In the guide, there is CORS disablement, but I ...
0
votes
0
answers
35
views
Update Role In asp.net core Idntity
I Use Microsoft.AspNetCore.Identity.EntityFrameworkCore in my project
When I try to update the user role I get the following error
InvalidOperationException: The instance of entity type 'RoleEntity'
...
0
votes
1
answer
49
views
display errors in form from a controller base
I have implemented a login form that utilizes the login controller, which serves as a base controller. While the controller functions properly, my concern lies with error handling. Regrettably, I am ...
-1
votes
1
answer
61
views
Use Task.WhenAll in already working method
I have method that run another private method in foreach
Here is main method
public async Task<IList<IssueResponse>> GetIssuesAsync(string query, string email)
{
var fields =
$...
0
votes
1
answer
32
views
Building an ASP.NET Core app for deployment
I'm using the dotnet CLI on macOS and am trying to build/compile my ASP.NET Core app. When I run dotnet build --arch win-x86 --self-contained true, I get an error
The specified RuntimeIdentifier 'osx-...
0
votes
2
answers
35
views
New Web application is styled by non-existent file
I've just created a new ASP.NET Core application.
Trying to sort out my styles, I see a number of styles that are affecting my site's appearance, and these styles are in a file called:
/...
0
votes
0
answers
42
views
My file downloads but not showing download dialog in browsers
I have a project, .NET Core 7 for the backend and NextJs for the frontend. Based on user's need and requirements, there are many files (as videos with .mp4 format) in my windows VPS saved inside a ...