How to configure AutoMapper in ASP.Net Core 6 I have a project which is written in .Net 3.1 so we had Startup.cs class. I am migrating it to .net core 6 now whe
public async Task<IActionResult> SendOrders() { try { RecurringJob.AddOrUpdate("powerfuljob", () => _lab.SendOrders("
I am not clear which id header I should put in the request and response for the correlationship purpose. "X-Correlation-ID" and the "X-Request-ID" are the know
There are 2 projects in the same solution. First project is a .NET Core project and it has all the codes(controllers, models etc.) related to packages. I need t
I want to know what is default maximum request length in a .net core application. I read from few links that the default limit is 4 MB for asp.net applications
I am attempting to load a partial view into an iFrame and receiving the below error. When loading the same partial not inside of a iFrame, there is no issue. Lo
I'm using NodaTime to manage dates and time zones in a .Net Core WebApi. One of the type in the library is OffsetDateTime, which is very similar to DateTimeOffs
While CORS is a big issue when working ReactJS in combination with ASP.Net-Core I figured out how to enable CORS so when accessing my UI (http://localhost:3000)
I developed a simple demo web app using ASP.NET Core 5 and published in IIS. However, it takes a long time (over 30 seconds) when I press application pool stop
When running my webapp (in vscode), the debug console is filled with lines like these: Loaded '/foo/bar/dotnet/shared/Microsoft.NETCore.App/2.2.4/System.Pri
I have used several times the package Microsoft.AspNetCore.TestHost to host Asp.Net Core Web API applications in my integration test. With Asp.Net Core 2.1 the
I am doing an http get call and I can see that Headers.ContentLength always returns null whereas I can see that in fiddler a value: This is my code string url =
I am getting the error in my log. I spent most of my day finding the solution but could not find the one which meets my requirement. Here is the log error seve
I have an ASP.NET Core 3.1 MVC applications (not a Razor Pages project) and I'm trying to use the exception handling middleware via app.UseExceptionHandle("/err
I have an attribute above the action Method, the value of which must be filled from the database But I do not know how to do this I want to use this attribute i
ServiceFilter we must register in Startup.cs. TypeFilter is injected by Microsoft.Extensions.DependencyInjection.ObjectFactory, we don't need to register that f
I try create language switch on my site. I've add cultures in Startup: IList<CultureInfo> supportedCultures = new List<CultureInfo> { new Cultur
I'm publishing my .net core website to the server. Here is the code that adds Json files to my content path: var builder = new ConfigurationBuilder()
I've created an ASP .NET Core 6 Web App with Windows authentification from a template and I assume that current Windows user's credentials to be obtained autom
I'm running a WebAPI on Core 3.1 and one of my endpoints excepts JSON with a model that has fields with [Required] attribute like so: public class Vendor {