322 questions with ASP.NET API tags

Sort by: Updated
1 answer

What is good practice for sending image files to the IIS web server?

Hello, I wrote an Office AddIn that photographs an Excel sheet range and transfers the image to an ASP.NET WebAPI on our internal IIS server. I also added MVC functionality to the API to allow the image to be displayed in a View. But I'm unsure whether a…

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.
322 questions
asked 2024-08-04T10:11:43.16+00:00
Dean Marinov 20 Reputation points
edited the question 2024-08-21T01:52:27.5533333+00:00
Jack J Jun 24,496 Reputation points Microsoft Vendor
3 answers

Windows service HttpClient with HTTPS support

Hi.I have a **Windows service** that makes calls to an http web page via an **HttpClient **object. Now the website is HTTPS but when I call the https page it gives an "Unauthorized" error. I am using Visual Studio 2013 with .NET Framework 4.5.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,439 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,745 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.
322 questions
asked 2024-08-20T15:23:18.29+00:00
39662036 0 Reputation points
answered 2024-08-20T20:29:05.5933333+00:00
Bruce (SqlWork.com) 62,546 Reputation points
1 answer

Read .pfx file azure web app

Good afternoon, I have an application that is hosted on azure web.app, in which I need to automatically register bank slips through a web.api, for this, I need to generate a token, and with each request pass the token in the header, locally the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,731 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,464 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.
322 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,539 questions
asked 2024-08-15T20:14:39.3633333+00:00
Antonio Lopes 0 Reputation points
edited the question 2024-08-19T07:40:03.3433333+00:00
Givary-MSFT 31,541 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Which authentication options can automatically be looked up from appsettings.json?

In this article regarding configuring authentication strategies for minimal apis, it states that we can define certain options regarding our authentication server in the appsettings.json file, and have them automatically looked up when adding the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,464 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,439 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.
322 questions
asked 2024-08-08T15:53:14.43+00:00
jc199 20 Reputation points
commented 2024-08-09T07:04:33.32+00:00
alexjam 0 Reputation points
3 answers

.NET 6 : System.Net.Http.HttpRequestException: Received an invalid status line: '339'

Hello, We are experiencing an issue where our service, calls an API. It fails when invokes the API using the HTTP client. Specifically, the process fails at the EnsureSuccessStatusCode() step, despite API returning a success response. This issue appears…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,464 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.
322 questions
asked 2024-07-16T14:21:17.7633333+00:00
Mohd Imran Nagori 0 Reputation points
commented 2024-07-30T08:23:53.96+00:00
Mohd Imran Nagori 0 Reputation points
4 answers

ASP.NET Core JWT Authentication Returning Unauthorized(invalid-token 401) for Authenticated Requests in Controller Actions

Hi everyone, I'm encountering an issue with JWT authentication in my ASP.NET Core 8.0 application. While the token generation and authentication seem to work correctly in my AuthenticationController, any requests to other controllers requiring…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,731 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,464 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,439 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.
322 questions
asked 2024-07-24T16:02:32.3133333+00:00
Antonio Simonetti 0 Reputation points
commented 2024-07-30T00:57:35.6633333+00:00
SurferOnWww 2,576 Reputation points
0 answers

Incorrect assessment result for Develop an ASP.NET Core web app that consumes an API

I attempted the assessment and successfully completed all the tasks. I am very sure that my result is calculated incorrectly. The result says I failed to Interact with an API which does not make any sense as I would not be able to proceed to other…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,464 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.
322 questions
asked 2023-11-10T18:01:12.33+00:00
Sheikh Saqib 20 Reputation points
edited a comment 2024-07-26T12:18:14.68+00:00
Fernie Monroy 0 Reputation points
1 answer

Classic ASP support clarification

I am needing to get some verification for my job on whether classic asp is still being supported by Microsoft. Also, is their a way to find the end of life date for classic asp? I will need to provide some form of proof online. I am asking because when I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,464 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,439 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.
322 questions
asked 2024-06-25T16:47:25.2166667+00:00
Derrick Pine 0 Reputation points
edited the question 2024-07-18T09:56:29.5533333+00:00
Rakesh Gurram 6,005 Reputation points Microsoft Vendor
0 answers

How to troubleshoot the exception, Could not create TLS secure channel?

Hello there, I have this C# code that consumes a SOAP WS and it was working properly for years. However, since recently it started to throw the following exception: The request was aborted: Could not create SSL/TLS secure channel. Basically it imports…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,464 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,439 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,745 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.
322 questions
asked 2024-07-12T14:24:34.8133333+00:00
Kuler Master 266 Reputation points
commented 2024-07-18T04:57:23.8966667+00:00
Tiny Wang-MSFT 2,476 Reputation points Microsoft Vendor
5 answers

Concern to API tool

Hi, Is there any existing API tool, to be embedded on an ASP page, to receive/send mails on the designated domain, with Email service?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,803 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.
322 questions
asked 2024-06-18T09:07:52.09+00:00
Peter_1985 2,586 Reputation points
edited a comment 2024-07-12T18:42:34.5533333+00:00
AgaveJoe 28,011 Reputation points
1 answer

Push notification http response status code 500

Hello, in the past two hours, we have discovered a large number of 500 errors occurring when using WNS HTTP API for notification pushes. https://dm3p.notify.windows.com/?token={myToken} Could you please assist us in investigating this issue? Below are…

Universal Windows Platform (UWP)
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,464 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.
322 questions
asked 2024-07-09T07:43:33.26+00:00
景轩 王 30 Reputation points
edited the question 2024-07-11T12:09:15.07+00:00
ajkuma 25,236 Reputation points Microsoft Employee
0 answers

Getting 500.30 for no appeanant reasons

using: Azure app services Stack: Asp.Net 6 API, C# I sometimes do deployments changing a variable or even as small as changing a condition to look for something. which result in 500.30 errors from azure. When that happened recently i went into the dev…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,731 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.
322 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,539 questions
asked 2024-07-03T17:38:28.2266667+00:00
Gershy Menzer 0 Reputation points
commented 2024-07-04T13:09:02.3966667+00:00
Gershy Menzer 0 Reputation points
0 answers

Unable to obtain configuration from: 'https://login.microsoftonline.com/tenantId/.well-known/openid-configuration'

An unhandled exception has occurred while executing the request. System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://login.microsoftonline.com/<tenanatid>/.well-known/openid-configuration'. Will retry at…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,464 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.
322 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,998 questions
asked 2023-07-19T19:39:03.2733333+00:00
Niraj 10 Reputation points
commented 2024-07-01T14:32:08.1533333+00:00
Gvidas Sniolis 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to solve error "A potentially dangerous Request.Path value was detected from the client (:)."

I am trying to fetch binaries/files from Artifacts --> Package using API call. URL: GET…

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.
322 questions
asked 2024-01-23T13:09:11.3266667+00:00
Errammagari, Sai 20 Reputation points
commented 2024-07-01T09:35:22.8133333+00:00
Lan Huang-MSFT 29,001 Reputation points Microsoft Vendor
4 answers

Cancellation Token signal not being received by the application code

looks like there is a limitation as it can be read here https://github.com/dotnet/aspnetcore/issues/20229#issuecomment-623289191 https://learn.microsoft.com/en-us/answers/questions/391343/cancellationtoken-in-controller-endpoint-hosted-in but is there…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,464 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,439 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,745 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.
322 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,539 questions
asked 2024-06-20T19:01:11.7333333+00:00
Michel Fornaris 0 Reputation points
answered 2024-06-24T18:57:23.3466667+00:00
ajkuma 25,236 Reputation points Microsoft Employee
0 answers

DriveItem AdditionalData Patch method with error in Graph Api

I'm creating an API with ASP.NET Core that accesses a list/drive with the graph api and at some point I need to update an item that was created in the drive library to add an ID (which is a custom column), but I'm getting an invalid request error, can…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,464 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,656 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,439 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.
322 questions
asked 2024-06-06T17:08:51.2033333+00:00
Bruno Bispo 0 Reputation points
3 answers One of the answers was accepted by the question author.

REST interface, server for GET,PUT,POST,DELETE

Hello, My goal is to control a Rest Server from a WPF C# desktop app. Get, Push, Pop, Delete should be tested. The server does not require extensive logic, only test data. Later, the customer REST server is connected. How can I achieve this? How should I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,464 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,439 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,745 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.
322 questions
asked 2024-05-23T17:15:44.0466667+00:00
Noah Aas 420 Reputation points
accepted 2024-06-06T16:18:48.6133333+00:00
Noah Aas 420 Reputation points
1 answer

Connecting to windows ftp server

I've been working on a project using a cognex camera and need to use FTP to transfer files. I've struggling with getting my FTP servers working and connecting to them the last couple days. I created an ftp server on windows using the steps highlighted in…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,731 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,464 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.
322 questions
asked 2024-06-05T16:06:11.77+00:00
ULStudent:ELVIS.NZEKWE 5 Reputation points
answered 2024-06-05T17:52:30.28+00:00
AgaveJoe 28,011 Reputation points
4 answers

"The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel" and "The remote certificate is invalid according to the validation procedure" on just 1 server?

There is an API and this API in .NET C# gives this error: "System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: Unable to establish trust for…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,484 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,745 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.
322 questions
asked 2023-04-11T09:02:20.1066667+00:00
Toriyama 286 Reputation points
edited a comment 2024-06-05T13:21:46.86+00:00
Dmitry KLIMENKO 0 Reputation points
1 answer

How can C# be utilized to seamlessly integrate artificial intelligence algorithms into a web-based platform, optimizing user experience and enhancing system performance?

In the realm of software development, particularly in web-based applications, there's a growing demand for intelligent systems that adapt to user behavior and optimize performance. Considering the versatility of C# in various domains, how can developers…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,731 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,745 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.
322 questions
asked 2024-06-04T11:23:59.78+00:00
tejaswini 0 Reputation points
answered 2024-06-04T12:38:55.1+00:00
Andrea Soldano 0 Reputation points