338 questions with ASP.NET API tags

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

How can I implement an API Server with MVC

Got the solution

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,494 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,962 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.
338 questions
asked 2022-02-02T21:09:53.5+00:00
Miko Kagemori 46 Reputation points
commented 2022-03-03T07:56:00.787+00:00
Miko Kagemori 46 Reputation points
1 answer

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…

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.
338 questions
asked 2022-02-14T09:35:57.907+00:00
sonal khatri 51 Reputation points
commented 2022-02-15T15:07:55.41+00:00
AgaveJoe 28,371 Reputation points
2 answers

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 …

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,962 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.
338 questions
asked 2022-02-05T05:25:10.017+00:00
Cenk 1,021 Reputation points
commented 2022-02-05T16:20:24.357+00:00
P a u l 10,736 Reputation points
1 answer

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…

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.
338 questions
asked 2022-02-03T12:31:02.327+00:00
Wappla 1 Reputation point
answered 2022-02-04T00:03:10.35+00:00
Bruce (SqlWork.com) 65,576 Reputation points
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,163 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.
338 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 28,371 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,962 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.
338 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,962 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.
338 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 29,591 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.
338 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,081 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.
338 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,081 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,573 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,494 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,261 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,962 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.
338 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,336 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.
338 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,892 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,494 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.
338 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,494 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.
338 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,081 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,494 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.
338 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,357 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,573 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.
338 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,573 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,643 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.
338 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 28,371 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,877 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,573 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,865 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.
338 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,731 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,357 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.
338 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 28,371 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,357 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.
338 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.) 31,976 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,357 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,142 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.
338 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.
999 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