Property Navigation
hello I am a beginner in Entity framework core I did database first and from my models I generated the controllers and as I had migrations of the keys in certain tables, the scaffold added me propertyNavigation that I have a little trouble adapting with…
Adding swagger
Even though I have added AddSwaggerGen in ConfigureService, Why I am still getting the error message: Be sure that the Startup.cs for your application is calling AddSwaggerGen from within ConfigureServices in order to generate swagger public void…
JsonPatchDocument problems with Minimal API in .NET6 / 7 parameter Json problems
truggling to get MapPatch to work with minimal API and JsonPatchDocument. The result when passing in a valid json PATCH object is always 'Failed to read parameter "JsonPatchDocument patchDocument" from the request body as JSON' and 'The JSON…
How to setup an Web API in IIS that should run on specific windows account
Hi, I want to host an Web API developed in .NET Core in IIS 10 (Microsoft Hyper-V Server) and want to know how to setup the Web API that should run on a specific windows account. Please assist me on setting up the wep api run on a specific windows…
Why my web app gets very slow to respond in azure portal?
Hi, I'm having problems with my domain because sometimes this app becomes very slow to respond, I've to restart it to fix it. it is happening every day. I checked under the "Diagnose and solve problems >> Availability and Performance"…
Web Scraping using c# api method
I am trying to read other website data using asp.net c#. Web login url: https://sts.defhc.com/account/login after login need to redirect: https://www.defhc.com/hospitals/2868000 because after login this url i have some information that i need to read…
Asp.net does not showing in the list after installing visual studio 2017
I installed visual studio 2017 with asp.net and web development. But after installing asp.net does not showing the new project list. Please anyone help me Untitled.png Untitled2.png
In .Net7 Web API doesn't return multipart content
I have tried to send file through multipart form content. The code in API like shown below: app.MapGet("/GetFile", () => { MultipartFormDataContent multiPartContent = new…
Async, await for running process that executes SSRS report and generates pdf 1000 times
Hi, I have API end point that gets called from another service(bl1). [HttpGet] [Route("createfile")] public void createsfile(string param1, string param2) { //asynchronous call to bl1 method var files = new bl1(); …
Table td Converted to div not working - what is wrong please
Please show me what I'm doing wrongly. I have a Table tr/td converted to div, but I'm not getting exactly what it should look like. I must be definitely doing something wrong. Can someone please show me? My code/script is pasted below public class…
How can I make chosen-select go over the parent Table when clicked upon?
Please has anyone tampered with the Chosen Select CSS before to make it go over the parent table? What I wanted to archive is shown below. I don't know what to change to make it flow over the parent Table. Chosen_Select.PNG My Razor view Code is pasted…
How can I pass model to an access data layer/EF Core project from a separate .NET Web API Core project
I have a design question; thus, no code samples I am trying to create a Web API Core project that would use an EF Core to communicate with a database. I read about the Data Access design pattern and realize that I have to place a Web API project into a…
Asp.Net Core 6 Web API - How to return only 400 Bad requests
Hi guys, I have an ASP.NET core Web API that I am calling 3rd party web services. I have exception middleware in order to log exceptions and return 500 responses to hide the details from the user. Here is where I am calling this 3rd party web…
ModelState stays valid even if the required attributes are empty in the .NET Framework Web API 4.7.2
I have a strange situation, and none of the existing solutions help I have this model in the .NET Framework Web API public partial class RequestData { public int Id { get; set; } [Required(AllowEmptyStrings = false)] public string AccountName…
Unable to Create Session and Cookies in .NET Core
I've been trying to create a session or a cookie to be determine if the incoming parameter passed to call a hook is successfully received. The session is created and accessed when the code is running in the Startup.cs class. Once I try to retrieve the…
Query regarding Microsoft.AspNetCore.Identity : Differentiating between incorrect password and unverified email during authentication
I am currently working on configuring the identity system in my application using Microsoft.AspNetCore.Identity. I have set the 'RequireConfirmedEmail' property to true, ensuring that users must verify their email addresses before accessing the…
Mapping datatype to Angular.
I have a model in my web API class. public class InspectionPhoto { public int Id { get; set; } public int InspectionId { get; set; } public int CategoryId { get; set;} public string Employee { get; set; } =…
My grid view task missing auto format and edit template ?
Hi everybody! Can anyone tell me how could i do to display the autoformat and edit templates in design in webform. I use Visual Studio 2022 and also i can not drag and drop these grid view in the center :( It is my GridView task. This is Gridview task i…
When will I get .Net Certfications published?
When will I get .Net Certfications published?
How to solve this "Specified value has invalid CRLF characters"?
Hi I have an issue in POST XML data to External API URL I got Error is System.ArgumentException: 'Specified value has invalid CRLF characters. Please advice me Thank you Maideen Dim url =…