314 questions with ASP.NET API tags

Sort by: Updated
3 answers

Publish .Net 6.0 Web api on IIS

For a new project I would like to use the new .Net 6.0 framework for the web api. I have build the first piece and it run well on the IIS Express and running from command line on my developer machine. When I try to publish it on IIS I receive the…

Internet Information Services
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,136 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.
314 questions
asked 2022-01-13T12:42:45.033+00:00
Lorenzo Soncini 6 Reputation points
answered 2022-01-13T21:00:26.667+00:00
AgaveJoe 27,496 Reputation points
1 answer One of the answers was accepted by the question author.

Request.GetClientCertificate sometimes returns incorrect information in Web API

I have a .Net 4.6 Web Application running on IIS which reads smart cards to get user information. In the beginning the application was working fine but after a few days other user's card information was showing up for different users. For example someone…

Internet Information Services
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,581 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.
314 questions
asked 2022-01-07T15:04:31.067+00:00
Louie 21 Reputation points
commented 2022-01-10T20:50:44.35+00:00
Louie 21 Reputation points
2 answers

Calling and getting results from asynchronous methods in encapsulated class

I am developing a GUI application that interacts with a control system's REST-based API via an HttpClient, but in trying to encapsulate the HttpClient and its related functions (GET/POST/PATCH) in a separate class, I'm finding that the GUI form cannot…

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,581 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.
314 questions
asked 2021-12-24T15:05:57.27+00:00
Thomas Lu 1 Reputation point
commented 2021-12-27T06:16:50.243+00:00
Lan Huang-MSFT 28,821 Reputation points Microsoft Vendor
2 answers

How I integrate web API into my ASPx (VB) Project, Post/Get response values

Hi I'm a very beginner for web API concepts, I am developing web apps using VS2019 with VB, I have enclosed (sample api) my partner web api, I request you to how I integrate this into my aspx web, how I pass values from my Aspx page to API and how I…

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.
314 questions
asked 2021-11-29T14:15:40.873+00:00
Aypn CNN 446 Reputation points
commented 2021-12-16T07:02:13.973+00:00
Yijing Sun-MSFT 7,071 Reputation points
1 answer

how can i save data from api(json file) in sql server?

I'm a beginner and my task is to retrieve data from API and then read retrieved file and then insert into SQL server. I have retrieved data by JavaScript but Now I want to place it in SQL server by using C# . how can i do it

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.
314 questions
asked 2021-12-06T06:28:18.033+00:00
Saliha Saeed 1 Reputation point
answered 2021-12-06T08:50:19.677+00:00
Yijing Sun-MSFT 7,071 Reputation points
0 answers

Request matched endpoint 405 HTTP Method Not Supported

0 This sound simple I just change from post to get but the do not help. I am trying to make a login against ADF2016 and when I am getting redirected back, I get this error in my backend. Now I have tried all changes I can think of so it time ask a…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,346 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,397 questions
Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,219 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,581 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.
314 questions
asked 2021-12-04T09:37:53.003+00:00
Carl-Johan Uhlin 1 Reputation point
commented 2021-12-06T07:40:04.387+00:00
Zhi Lv - MSFT 32,076 Reputation points Microsoft Vendor
0 answers

OnPrem B2C API calling another B2C API hosted on Azure

I have ASP.NET B2C web API which is hosted on OnPrem Server and this API is calling another B2C API which is hosted on Azure. Both the API in same B2C tenant. While calling Azure B2C API I am getting unauthorized error. Can you provide some samples…

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.
314 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,742 questions
asked 2021-11-24T10:50:11.41+00:00
Piyu Chinchkhede 1 Reputation point
2 answers

Web API 2 : Returning binary file with “application/octet-stream” not working with IIS Server : IIS/10.0 but working with IIS/8.5

I have web api which returns binary file, which is consumed by Angular 12 client. Application is deployed on Dev and Integ environments. Now suprisingly, same api is working on Dev but not on Integ. When on Integ, instead of returning binary file, it…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,397 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.
314 questions
asked 2021-08-24T05:25:33.67+00:00
Girish Khadse 1 Reputation point
answered 2021-11-23T06:45:43.5+00:00
Girish Khadse 1 Reputation point
1 answer

Issues with API integration in VB Aspx web apps

Hi, I'm a very beginner on API integrations, developing apps using VS 2019 VB. ASPX, pls ref my code which is attached, im getting err., where I did a mistake please help me. Thanks in advance. 151024-api-docu.txt

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,397 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.
314 questions
asked 2021-11-19T14:40:12.583+00:00
Aypn CNN 446 Reputation points
answered 2021-11-20T05:42:55.42+00:00
Yijing Sun-MSFT 7,071 Reputation points
1 answer One of the answers was accepted by the question author.

How I get postal data by using web Api

Dear Friends, I am very beginner in the web API's segment, in my VB Aspx, I'm trying to get data by using URL: https://api.postalpincode.in/pincode/{PINCODE} (for Ex. https://api.postalpincode.in/pincode/110001) ref input field: <asp:TextBox…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,397 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.
314 questions
asked 2021-10-25T17:16:45.097+00:00
Aypn CNN 446 Reputation points
accepted 2021-11-19T14:41:30.247+00:00
Aypn CNN 446 Reputation points
2 answers

StatusCode: 400, ReasonPhrase: 'Bad Request' - calling addCustomer web api via app

I have faced a connection error to azure from my developing xamarion forms app after I tried to add an email function of google SMTP to the app. I used my own google account's credentials to send email and allow Less Secure Apps in google account…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,322 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,346 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.
314 questions
asked 2021-11-17T13:46:13.643+00:00
Ying Kit Li 1 Reputation point
answered 2021-11-18T11:28:11.173+00:00
Ying Kit Li 1 Reputation point
0 answers

Web API addCustomer service faced error when connecting Azure Cosmos DB

System.InvalidOperationException: Unable to resolve service for type 'Microsoft.Azure.Cosmos.CosmosClient' while attempting to activate 'CosmosWebAPI.Controllers.CosmosDbService'. I got the above exceptions when running the below api service in local…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,346 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,520 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.
314 questions
asked 2021-11-14T12:54:54.387+00:00
Ying Kit Li 1 Reputation point
commented 2021-11-14T13:37:10.52+00:00
AgaveJoe 27,496 Reputation points
4 answers

Transfer data between SQL database servers securely by end to end service

Hi We have two SQL server databases in two different location that belongs to two different companies. I want to transfer a few table data (about a million records) from source database server to destination (Master) server. (Cumulative data of 30…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,575 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,346 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,214 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.
314 questions
asked 2021-10-05T22:49:37.967+00:00
Mohammadreza Ale Agha 1 Reputation point
answered 2021-10-11T12:10:06.94+00:00
Tom Phillips 17,721 Reputation points
1 answer

System.OperationCanceledException: The operation was canceled.

Good Day All i have the following code, that randomly throws the following error System.OperationCanceledException: The operation was canceled. // HttpClient is intended to be instantiated once per application, rather than per-use. See Remarks. static…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,322 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.
314 questions
asked 2021-10-05T21:01:06.893+00:00
Vuyiswa Maseko 351 Reputation points
commented 2021-10-08T10:46:41.537+00:00
AgaveJoe 27,496 Reputation points
0 answers

Misused header name. Make sure request headers are used with HttpRequestMessage, response

Good Day all i have the following code // HttpClient is intended to be instantiated once per application, rather than per-use. See Remarks. static readonly HttpClient httpClient = new HttpClient(); public async Task<List<USERS>>…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,322 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.
314 questions
asked 2021-10-05T20:43:33.79+00:00
Vuyiswa Maseko 351 Reputation points
commented 2021-10-06T07:20:39.62+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,631 Reputation points Microsoft Vendor
2 answers

Java.Net.SocketException: Software caused connection abort

Good Day All i have the following code and it randomly gives an error on Android 11 Java.Net.SocketException: Software caused connection abort , not all the time , App Centre Reported it twice public async Task<List<USERS>> Get_All_Customers(…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,322 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,827 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.
314 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
963 questions
asked 2021-10-01T19:53:20.13+00:00
Vuyiswa Maseko 351 Reputation points
answered 2021-10-05T20:35:31.983+00:00
Vuyiswa Maseko 351 Reputation points
0 answers

Javax.Net.Ssl.SSLHandshakeException: Trust anchor for certification path not found.

i have tested my SSL against https://www.digicert.com/help/ and got a green Light "Congratulations! This certificate is correctly installed." and my api's get this error Javax.Net.Ssl.SSLHandshakeException: Trust anchor for certification path…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,322 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,827 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.
314 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,417 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,289 questions
asked 2021-10-01T19:45:00.987+00:00
Vuyiswa Maseko 351 Reputation points
commented 2021-10-04T13:08:37.917+00:00
ajkuma 24,396 Reputation points Microsoft Employee
0 answers

Java.Net.SocketException: Socket closed

Good Evening Everyone im calling a web api function like this public async Task<List<USERS>> Get_All_Customers( ) { List<USERS> results = null; try { USERS m_model = new…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,322 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.
314 questions
asked 2021-10-01T19:19:09.983+00:00
Vuyiswa Maseko 351 Reputation points
commented 2021-10-01T21:25:55.843+00:00
AgaveJoe 27,496 Reputation points
1 answer One of the answers was accepted by the question author.

Using IHttpActionResult Put Verb

I was wondering where does my client calling ajax get the ID to send to the IHttpActionResult Put Verb Action Method? I am accustomed to calling the api with the ID in the url like so /api/Product/id function productUpdate(product) { …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,346 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,397 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,214 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.
314 questions
asked 2021-09-22T21:39:11.887+00:00
Ronald Rex 1,666 Reputation points
commented 2021-09-23T16:52:26+00:00
Ronald Rex 1,666 Reputation points
1 answer

503 error in after deploying in task scheduler(production only).Its not replication from Local development server/Code

Calling one api http://10.xxx.xxx.xx:xx/web/services/xxxxx with json list as a parameter, It working from local machine (c# program and postman also). using (var client = new HttpClient()) { try { var…

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,581 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.
314 questions
asked 2021-09-23T05:00:21.693+00:00
prasad k 86 Reputation points
answered 2021-09-23T11:06:49.953+00:00
Duane Arnold 3,216 Reputation points