Asp.net – Localhost certificate safety
I've got an asp.net service that I want to run on localhost on each machine, is it safe to create the certificate with dotnet dev-certs https --trust or should I use another method?
I've got an asp.net service that I want to run on localhost on each machine, is it safe to create the certificate with dotnet dev-certs https --trust or should I use another method?
In production, my ASP.NET project works well and returns the query below, in about 12 seconds: [HttpGet("suggest/{id1}/{id2}/{id3}")] public async Task<List<int>> GetRecommendedShows(int id1, int id2, int id3) { List<int> showIds = new List<int>() { id1, id2, id3 }; // Fetch all…
Assume a HttpClient having been set up to look like the following (as per standard called with a factory): builder.Services.AddControllersWithViews(); builder.Services.AddHttpClient("weather", weather => { weather.BaseAddress = new Uri("http://api.openweathermap.org/data/2.5"); weather.Timeout = TimeSpan.FromSeconds(15); }).SetHandlerLifetime(TimeSpan.FromSeconds(15)); Now when using the HttpClient to call an…
I have a Blazor web application which uses System.ComponentModel.DataAnnotations attribute for validation in a registration form. I have a property named NationalCode which is nullable long I did not added [Required] attribute above my NationalCode property But when I want…
I have web service solution in Visual Studio with one parameter : Public Function CheckPalletInLocation(location As String) As String Dim ScaleConnnection As New SqlClient.SqlConnection("MYCONNEXION") Dim ScaleCommand As New SqlClient.SqlCommand ScaleCommand.Connection = ScaleConnnection ScaleConnnection.Open() ScaleCommand.CommandText = "SELECT DISTINCT LOGISTICS_UNIT FROM LOCATION_INVENTORY…
I have a specific requirement for developing an application in ASP.NET MVC. The application will serve as a DETAILS SECTION ONLY web app, where data from six databases needs to be seamlessly integrated and displayed. Currently, I'm in the research…
I have a Razor web app (.NET 8) client I want to get metrics for execution and calls to other APIs I have the following nuget pkgs installed: OpenTelemetry OpenTelemetry.Exporter.Console OpenTelemetry.Instrumentation.AspNetCore OpenTelemetry.Instrumentation.Http In Program.Main I configure it TracerProvider tracer =…
I have a .NET web server with JWT authentication that checks only the signing key. It's used by other (internal) servers that need a fixed token that doesn't expire. In .NET 6 it worked fine. After upgrading to .NET 8…
I am using a Windows 11 PC and have been debugging my ASP.NET applications with VS2022 successfully until recently i noticed any application i want to debug on my system displays this error "Could not load file or assembly 'System.ServiceModel,…
Here my design database, I working on E-commerce project So when the admin create a new product its have new Id and the user have to select the color and size for the product. The problem is when create a…