how to compare two dates and show in the link in web api?
i have some question about getting date from previous between create_date and modify_date, i am working on asp.net web api 2 and i want to seach the date between these two dates from sql server, there are many records in database. The result outcome is…
![](https://techprofile.blob.core.windows.net/images/zf3p-rEcE0iuzrhozATI_w.png?8D9E8B)
Error Handling In Blazor Web Server Application
I am calling a web API endpoint from my Blazor server application. And I intentionally have not started the application (.Net Core 6 Web Api) with the api service. Meaning, there is no service listening on the specified port. And I was wondering what is…
How to prevent of Client Privacy Violation in Sensitive Data Exposure Asp.net core with angular 8
How to prevent of Client Privacy Violation in my code below <input type="password" id="txtPassword" name="txtPassword" #txtPassword="ngModel" placeholder="Password"…
Microsoft IIS BUG!!! , HTTP Service Request Queues Performance counter
Microsoft IIS BUG!!! , HTTP Service Request Queues Performance counter Why do I say there are bug,look at the pictures below, RejectedRequests has values from the monitor. Why CurrentQueueSize the queue have no values? HTTP Service Request…
![](https://techprofile.blob.core.windows.net/images/yQBdgv2_AwAAAAAAAAAAAA.png?8D9C92)
problem with API
I have the following in my ApiController public IEnumerable<Game> GetAllGames() { Game game = new Game(); List<Game> Games = game.ListGames(); return Games; …
About the IIS site request queue length?
OS: Windows Server 2016 Standard IIS: Version 10.0.14393.0 Web Sites: WebIISQueueTest .NetFramework4.5 Asp.net mvc Question 1: By which performance counter does the site's request queue length be monitored? Question 2: The request queue…
![](https://techprofile.blob.core.windows.net/images/yQBdgv2_AwAAAAAAAAAAAA.png?8D9C92)
Asp.net Web API - How to get JSON response body if status is 400 Bad Request
Hello Everybody, I have an ASP.NET Web API rest application. I am calling a 3rd party web service as follows; var request = (HttpWebRequest)WebRequest.Create(WebConfigurationManager.AppSettings["PinService"] + url); …
How to Add two rows with merged cells in top of the Excel using DocumentFormat.OpenXml
Hi All I have implemented the code to create Excel from data table using DocumentFormat.OpenXml and it was working fine. But I want to add two rows in the excel top with merged cells (Ref Image) which contains the Title of the sheet with some…
How to populate GridView from an API call?
I am a beginner learning ASP.NET and I am working on a project where I need to create a Web API to get data from an SQL Server and then call that API from a Web Form to populate a gridview table. I've currently gotten the Web API to properly get the…
OData $select and $expand not working on XML response?
I have been developing an API with XML and JSON responses integrating OData, but I'm having a problem retrieving XML responses with OData $select and $expand methods, but other methods work fine like $top, $filter and $orderby etc... In JSON response…
Implement Service Mesh in Microservices
Hello Team, The question that I am going to put here , it might be very trivial but facing some issues. Please provide your insight. I am designing an architecture of a system that has 10-15 microservices and I am planning to implement these in…
TPL Performance slows down above 2 Gb data migration
We have developed an Integration Tool using Task Parallel Library(TPL) PLINQ and are migrating data but its performing slow. We observed that for 2 GB of data the tool performs well but above 2 GB the performance of tool slows down. Below is the…
why asp.net webapi generate a zh-Hans directory in bin directory?
I know this zh-hans means simplified Chinese, but I still don't understand the purpose of generating it
WebApi - ApiKey plus JWT
I completed a couple of projects that are implemented in C# .Net 6.0 MVC, and now I'm trying to do my first web API project. This WebApi is implemented in .Net 6.0, with JWT authorization. Everything is working smoothly so far, the token is generated…
ASP.NET dynamic chart
Is it possible to create charts dynamically and add them to an ASP.NET web form? I am using the following code but it is not creating any chart. For i As Integer = 0 To ddlProject.Items.Count - 1 ' For all Chart Dim chartAll As Chart =…
Is there any library in .NET Core for RFID read and write
Hello, I am working on a project which uses RFID smart card to access room, so when user access room his/her details should be read and stored in database, and also can put restriction on card like time and number of access per day. So is there any…
![](https://techprofile.blob.core.windows.net/images/w2iYnf2_AwAAAAAAAAAAAA.png?8DB3FD)
How can I implement an API Server with MVC
Got the solution
![](https://techprofile.blob.core.windows.net/images/TytCSVAi4UyYatAvjut41Q.png?8D9252)
![](https://techprofile.blob.core.windows.net/images/TytCSVAi4UyYatAvjut41Q.png?8D9252)
Delay in receiving emails using MailJet
I am using MailJet to send emails over SMTP Server. On one environment, I am not facing any issues but on another environment, there is a delay in receiving those emails after some time. What could be the possible issue?. The configurations on both the…
![](https://techprofile.blob.core.windows.net/images/MxBLrky2rESG0hes4GqOKQ.png?8D92C1)
Asp.Net Web API – Bearer Token Authentication Problem with BasicAuthenticationAttribute
Hello, I have an ASP.net Web API that is working with BasicAuthenticationAttribute. I want to add bearer token-based authentication to one of my controllers. I added those NuGet packages: Microsoft.AspNet.WebApi.Owin Microsoft.Owin.Host.SystemWeb …
How to optimize Web API Code?
How could you optimize that code for faster response? public ActionResult Details(int id) { DTOLibrary.PoliticianDTO politician = null; using(var client = new HttpClient()) { client.BaseAddress…