So I was trying to follow the Microsoft Docs, Options pattern in ASP.NET Core however for the life of me I can't seem to correctly get the "AppSettings" section
I want to read a 50milion record from 15G txt file and write in to elastic search if (file.Length > 0) { string wwroot = _he.WebRootPath;
Some of my controller methods have the [ValidateAntiForgeryToken] attribute for the usual reasons. It's only app-internal actions, no cross-site API or similar.
I'm trying to learn asp.net core 6.0, and I have a website that I'm working on. I needed a mysql connection in my website. I opened google and started searching
I am implementing a .Net Core 3.1 REST API that needs to generate a PDF file for a given contract (the contract ID is known). I have adopted the following code
Hi my login controller is bellow: [HttpPost] [Route("Login")] public IActionResult Login(LoginViewModel login) { if (!ModelState.IsValid
I'm unable to use the builder methods AddDeveloperSigningCredential() or AddSigningCredential() to configure my certificate in code during app startup. If I kee
I got the following problem. in my Controller, this method is supposed to return a JSON with the pets from the database. but is being called, the server returns
Here is what I am trying to do. I have done a few simple expressions, but this one is a little too much for me right now. public static Expression<Func&l
I'm using .NET 6 to post a form with large form data (about 200Mb), and there is no any file. this's kind of my form in front-end: @using (Html.BeginForm(FormMe
My Observation: Its for empty folders or for empty folder hierarchy. If I add the folder again then cross is removed. (I have re-sharper installed, and don't k
The document structure is like this [ { "id": "1234", "SubmittedAnswers": [ { "PlantId": 3, "UniqueQualityId": "3_pe55d74fc5f92b
I have developed a project by nexjs which their backed is IIS and all these are working properly. I have an URL address like this : dastshafa.ir/product/2/
I am setting a .Net core worker services that will get some data from the database and pass that to an endpoints. So I am trying to set it up base on my .net MV
I did default Megration with User model, added only my two custom properties. EF created standard flow of tables. And my AspNetUsers table As you can see User
I was reading a book about Learning ASP.NET Core API when I run to a part saying: We call GetCommandByID on our repository passing in the Id from our route, st
I've very new to C# and I'm using ASP.NET 6. On a .cshtml Razor page I'm trying to use a ternary operator to fill in a HTML element class based on the very las
I tried creating a asp.net core web application with mvc in visual code 2019 and as soon as I open it it showes me a lot of errors like in the picture. enter im
I am trying to create a dropdownlist and bind with viewbag using ASP.NET Core tag helpers. I can bind the dropdownlist using: @Html.DropDownList("Area_id",
My ASP.NET Core RazorPages project uses Webpack. I also want to use CSS Isolation. Every RazorPage Foo.cshtml has an associated css file Foo.cshtml.css. These