Content
C#,.net code and steps to get data from rest API
Hi, Hope you are dong well ! I need help on below question. I need to C#,.net code and steps to get data from any rest api? we can get data from post man tool, but i want to do this with the code, which I can execute and get the data from…
Error calling a Web API with self-signed ClientCertificate using HttpClient in .NET Core (IIS and Winforms using C#)
We are currently migrating our code from .NET 4.7.2 to NET 7 (.Net Core). Everything has been moved forward except one project that has to consume another company’s WebApi rest web service. When we were forced to interact with this company they were…
Need to integrate zstandard compression algorithm to compress/decompress API request/response
I need to integrate zstandard compression algorithm to compress/decompress API request/response. I've started doing this by CustomCompressionProvider class which implements ICompressionProvider interface. While implementing CreateStream method, I'm…
Create a WepAPI without Newtonsoft Json on .NET 4.7.2
Hi, When we create a WEPAPI2 template project using VS2015, Newtonsoft json reference is automatically added. Is there any way to remove it and use oth. json provider say system.text one.
ASP.NET Web API : How Can I Return Object of System.Type
I have an assembly which is created using ASP.Net Framework Class Library Project. This assembly has lot of Types. Each Types has its own Methods, Fields and Properties. Now I have written an ASP.Net Web API in which I am loading this assembly using…
Will Applying a Patch to ASP.NET MVC Also Update Associated Components (Web Pages, Web API, SignalR)?
The question is asking whether, when applying a patch to ASP.NET MVC, the other associated components (ASP.NET Web Pages, Web API, and SignalR) will also be updated as part of the patching process. In other words, will the patch affect not only ASP.NET…
Swagger UI "Try it out" option does not work with Azure Kubernetes Nginx Ingress
Swagger UI "Try It Out" option for DotNet Core 6 API app does not work with nginx ingress in azure kubernetes service (aks) , the path for service does not get added in the URL . I have tried multiple options like adding swagger endpoint in…
Issue regarding ToolkitScriptManager
Hi, Can you help to the following?
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…
.NET 6 webapi deployed to Azure App Service, logging to AWS Cloudwatch does not work.
I've got a .NET 6 webapi hosted in an Azure AppService. I am using AWS.Logger.AspNetCore to log to AWS Cloudwatch. It is working when I run locally, but when I run in the deployed Azure AppService environment, I don't see any of the log messages in…