I'm in the process of creating an ASPNET Core 6 MVC app in VS 2022 which will eventually be deployed in a Docker container. Windows Authentication will be used
Below is my Startup.cs public class Startup { public Startup(IConfiguration configuration) { Configuration = configuration;
I have a website where users log in on an external website and are redirected back with a token in the querystring. I then validate the token and create the aut
I'm trying to use CreatedAtRoute in minimal API. app.MapGet("/clients/{id:int}", [EndpointName("GetClientById")] async (int id, ClientsContext db) => await
I am working on an ASP.NET Core Web API application in which I am working with the files security. I want to monitor the maximum and minimum RAM and CPU consump
I want to apply validation for integer but it's not working function fnAllowNumeric() { if ((event.keyCode < 48 || event.keyCode > 57) && ev
I am working on dotnet core 3.1. I am working on API call. When I call the API, below function in Repository will execute first by saving the data: then anothe
I am hosting my ASP.NET Core 3 web application in Azure, whenever I do a new publish to Azure, it works as expected. However, the next day, the site is down, th
First thing I did was install the .NET Core Hosting Bundle on the IIS server; I have also stopped and re-started IIS; I've tested and can confirm my app runs on
I'm using ASP.NET MVC and I'm using a function with AJAX that opens in the browser the window to print. My questions is when I print I would like to already set
I'm testing some custom authorization without the default Entity Framework stuff. I have created an "ASP.NET Core Web App (Model-View-Controller)" project using
I am new to SFTP. I am getting Renci.SshNet.Common.SftpPermissionDeniedException: 'Permission denied' error while uploading an image to the SFTP location from a
I am planning to build a micro frontend to intercept and handle all incoming requests just calling an external service that will render the html that the micro
I have a .Net Core 6 app which runs fine locally, it also runs fine when I manually start the exe in the publish folder. However when I run on IIS, it gives the
I want to return C# class object instead of using JObject in here. Could someone can tell me how to use it. private async Task<JObject> GetReceiptById(str
Web application has asp.net core identity implementation, in security testing of our application vulnerability is found-authentication bypass via response manip
The thing is that like in Django which you can add model properties without changing the model class using the @property decorator. I'm trying to achieve same w
Every example of SwaggerResponse and SwaggerResponseExample I found uses HttpStatusCode as is, but when I use it like this: [SwaggerResponse(HttpStatusCode.BadR
Whenever I open a temporary cshtml file or compare the difference between the files, the compiler shows a bunch of errors. It's unable to resolve razor syntax d
I am calling an API using: HttpClient client = new HttpClient(); HttpResponseMessage response = await client.GetAsync(path); String content = await response.C