I am following a simple tutorial on .NET 6 and it should work really simple, but apparently I get the exception. The sample code is the following: ...
I am following a simple tutorial on .NET 6 and it should work really simple, but apparently I get the exception. The sample code is the following: ...
i am using Masstransit version 7.3.1 and rabbitmq to create a messaging mechanism (i am sending a message with each request the api receives ) and i i ...
are ConfigureServices and Configure methods called with every http request or is it in another way? ...
Scaffold-DbContext 'Data Source=""; Database=""; User Id="";Password="";TrustServerCertificate=Yes' Microsoft.EntityFrameworkCore.SqlServer -OutputDir ...
I am using Microsoft.AspNetCore.Identity.EntityFrameworkCore for mange login logout functionalities. I have following class for signup process. As you ...
I want to get the absolute path of a static file using @Url.Content on a razor view to use it as a value of content attr of a meta tag but It's seems ...
I am trying to perform a search functionality in Asp.net core, this is my controller I have this DTO class from the model "errors": { "$": [ "Th ...
i wrote a service in web api .net5 (.net core), i use windows authentication=true because i need the details of the current user. but when "windowsAut ...
this is a problem that I have only when trying to write a test. In a Net 5 solution, I test GetResult() in MyController: My test: An exception i ...
Here is my implementation of Custom ActionResult Now this how we call it Now what I what to ask about is: - 1- is this a wrong implementation o ...
I need to be able to send automatic emails to any users who have registered new accounts, changed passwords, and/or created new orders. I've been giv ...
I have a simple action in the front-end(javascript), that returns some JSON. here is the code sample, when I execute this function I got these erro ...
i have an entity saved on the database that has 2 relevant properties, Code and Number. the number is just an int between 1 and 99, while the code is ...
I have an application written in .NET 5 ( soon to be .NET 6 ) that allows users to access files stored on a bunch of different user defined Windows ne ...
I have .NET 5.0 Blazor server app and openiD OKTA has been integrated. Our access token will be expired in 1 hour and need to refresh it after that. I ...
i have used IwebHostEnvironment in my code but i have a question .. IWebHostEnvironment is an interface used to provide info about hosting & can g ...
I have two microservices. One is for identity. I am trying to set auth cookie and I have this middleware: And also this service: And also browse ...
before we use net 5 we use net framework. // Net Framework ClsLog.WriteLog(HttpContex.Current, GetType(), "GetManualWeightData", ActionType.Action_R ...
I am having trouble with Hangfire not disposing the objects it instances within a WebApi on NET 5. This is my configuration in "ConfigureServices()" ...
I am creating an ASP.NET Core MVC application (.NET version 5) where I am trying to use a Javascript library called FullCalendar. I added the library' ...