I installed an ASP.NET Core application as a Linux daemon. By default .NET writes logs into /var/log/message but I would like the application to write its logs
Below is an example code for CreateHostBuilder. Asp.net core host takes care of resolving dependency through constructor and middleware. If we want to resolve
I want users to navigate back to the same page after the button is clicked on the page. If the user URL is https://localhost:xxx/Inventories/Index/38?custID=38&
I have default Program.cs file from Web Api template in .NET 6.0. I am adding variable "test" so I can use its value in controllers. var builder = WebApplicatio
I have default Program.cs file from Web Api template in .NET 6.0. I am adding variable "test" so I can use its value in controllers. var builder = WebApplicatio
I have a new issue working on migrating my Xunit integration test on .net core 3.0. I moved the project in a subfolder and now I have a DirectoryNotFoundExcepti
I am experiencing some weird problems that I'm not sure how to solve. I am using CodeDeploy to deploy my applications to an AWS EC2 instance,
I'm using Visual Studio Code. On my machine, I have two separate installations of the Net Core SDK / dotnet CLI tools; an outdated version (netcore 1.1) in the
I'm new in backend development and Gettig 415 Unsupported Media Type in multipart API written in .net core. I have attached the postman image for your reference
I am getting some really annoying errors when debugging my ASP .NET Core application in VSCode. It seems to be related to my css bundler/minifier, but I have n
I am receiving the following exception in the logs and event viewer when calling an endpoint in a .Net core application (3.1): 'MS-ASPNETCORE-TOKEN' does not m
dotnet Version: 1.1.0 (global.json) NuGet Version : 4.4.1.4656 VS2017 v15.5.2 (as Administrator) .NET Core 1.1 The solution I am trying to build Update I: I jus
I want to set a default value for a non nullable field in code first. I have included Microsoft.EntityFrameworkCore but I'm still getting Does not contain
I'm currently working on setting up a CI/CD pipeline to my client's new Kubernetes clusters that they host on Harbor using Helm and Azure DevOps Server, and I'm
If we delay a Task using the Task.Delay method for a very long time, let's say 6 months, and if we assume that the OS does not shutdown or restart during this p
After creating the .NET Core / React & Redux project template and attempting to start the application, the react compile crashes with rimraf not recognized.
I have followed the steps from the following EF Core 5 site in order to store and read items from the CosmosDB. Here is the site: https://www.learnentityframewo
I am attempting to remotely debug a .NetCore application in Ubuntu Linux from Visual Studio 2019 in Windows 10. I can see the remote ipaddress (ping thru comman
I'm creating a custom result filter that implements IAsyncResultFilter interface. In this filter I need the actual value returned by the Action, but I also need
I am trying JetBrains Rider for my existing .NET Core project. In the project I have several appsettings.json overrides: appsettings.Development.json - for dev