318 questions with ASP.NET API tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

Prevent browser authentication ASP.NET Web API dialog on 401

I have an existing ASP.NET Webforms / MVC application (it uses a mixture of technologies), to which I want to add a Web API to use for external ajax API calls (to replace older web services and WCF). The existing ASP.NET WebForms application uses…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,418 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-08-29T01:20:05.597+00:00
Peterjc 81 Reputation points
accepted 2022-09-02T00:26:44.37+00:00
Peterjc 81 Reputation points
1 answer One of the answers was accepted by the question author.

Data Transfer Objects

I just have a quick question concerning DTO's. I read that DTO's are useful for security purposes e.g. they prevent you from sending confidential data across the network. But the tutorial also said that DTO's are also useful in the case that if there…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
726 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,656 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-08-24T06:14:41.39+00:00
Ronald Rex 1,666 Reputation points
commented 2022-08-24T20:37:10.197+00:00
Ronald Rex 1,666 Reputation points
1 answer

How to count/check number of connection pools

Im using a third party tool and also HttpClient to make some calls to get data. Most of the documentation states to have a single instance of third party tools for the HttpClient but how could i check how many open connections i have to determine…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,656 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-08-15T07:49:29.723+00:00
Mr Edge 221 Reputation points
answered 2022-08-16T02:24:24.09+00:00
Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor
2 answers

how to make null values and empty element in xml have open tags and close tag? Asp.net web api 2

i am making a web api and i want to make the open tags and close tags for empty elements and null values. i am using C# and visual basic to code. My Questions: How to make open tags and close tags for null values and empty elements in xml format with…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,656 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-08-01T09:17:39.09+00:00
Reborn 1 Reputation point
commented 2022-08-03T09:19:11.653+00:00
Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor
4 answers

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…

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-08-01T09:10:32.66+00:00
Reborn 1 Reputation point
answered 2022-08-02T08:57:30.017+00:00
satya karki 986 Reputation points
0 answers

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…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,503 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-07-31T18:51:39.13+00:00
Ronald Rex 1,666 Reputation points
commented 2022-08-01T06:12:19.75+00:00
Zhi Lv - MSFT 32,106 Reputation points Microsoft Vendor
0 answers

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"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,408 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-07-29T13:11:03.15+00:00
Sumanth Babu 21 Reputation points
commented 2022-08-01T02:54:29.233+00:00
Zhi Lv - MSFT 32,106 Reputation points Microsoft Vendor
3 answers

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…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,418 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,656 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-01-04T10:29:30.457+00:00
aspx 6 Reputation points
commented 2022-07-24T01:14:39.277+00:00
Zdravko Stojkoski 6 Reputation points
3 answers One of the answers was accepted by the question author.

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; …

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-07-19T22:42:52.29+00:00
M J 661 Reputation points
commented 2022-07-23T21:03:05.003+00:00
AgaveJoe 27,696 Reputation points
12 answers

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…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,418 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,656 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2021-12-27T08:19:18.123+00:00
aspx 6 Reputation points
commented 2022-07-23T13:01:55.36+00:00
Zdravko Stojkoski 6 Reputation points
1 answer One of the answers was accepted by the question author.

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); …

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-07-07T10:40:46.323+00:00
Cenk 991 Reputation points
accepted 2022-07-08T04:56:41.83+00:00
Cenk 991 Reputation points
1 answer One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,408 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-06-14T10:50:11.683+00:00
Elaya Raja 96 Reputation points
commented 2022-07-06T06:07:46.163+00:00
Elaya Raja 96 Reputation points
0 answers

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…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,418 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-07-06T01:01:32.467+00:00
Timothy Shels 1 Reputation point
commented 2022-07-06T04:28:44.447+00:00
Yijing Sun-MSFT 7,071 Reputation points
1 answer

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,408 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,418 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-06-17T23:22:33.317+00:00
Ken Martos 36 Reputation points
commented 2022-06-23T22:17:43.453+00:00
Ken Martos 36 Reputation points
1 answer

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…

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-06-21T08:22:02.193+00:00
Manish Kumar Singh3 1 Reputation point
answered 2022-06-21T14:54:10.587+00:00
Bruce (SqlWork.com) 61,811 Reputation points
2 answers One of the answers was accepted by the question author.

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…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,311 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,656 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-06-13T10:28:46.773+00:00
bharat choudhary 21 Reputation points
accepted 2022-06-16T09:38:17.57+00:00
bharat choudhary 21 Reputation points
1 answer One of the answers was accepted by the question author.

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

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,418 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-05-26T10:08:48.267+00:00
heyangben 81 Reputation points
accepted 2022-06-07T03:55:23.227+00:00
heyangben 81 Reputation points
1 answer One of the answers was accepted by the question author.

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 Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,408 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-04-24T23:18:04.233+00:00
Maryan 26 Reputation points
accepted 2022-04-25T11:57:39.39+00:00
Maryan 26 Reputation points
1 answer

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 =…

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-03-30T08:33:02.143+00:00
Hema Ramachandran 176 Reputation points
answered 2022-03-31T10:19:37.617+00:00
Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor
1 answer

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…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,656 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
.NET Internet of things
.NET Internet of things
.NET: Microsoft Technologies based on the .NET software framework.Internet of things: A concept that aims to extend the benefits of the regular internet, including constant connectivity, remote control ability, and data sharing, to goods in the physical world.
29 questions
asked 2021-02-12T15:34:19.39+00:00
Naseer Naseer 6 Reputation points
commented 2022-03-31T02:28:12.8+00:00
徐凤辉 1 Reputation point