Microsoft Q&A

ASP.NET API

147 questions

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.

Browse all .NET tags

22 questions with ASP.NET API tags

Sort by: Updated
0 answers

How Do I Return ContentDisposition.FileName -PDF from a Method To be Attached to MailMessage

Kindly show me how to achieve this. I have a method SendRenewalNotification() that sends Policy Renewal Notification to Clients. This Method calls another Method called PolicyScheduleGenerator() that Generates PDFs to be attached to MailMessage. …

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
401 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.
147 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,190 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
596 questions
asked 2023-01-23T18:03:39.4366667+00:00
abiodunajai 146 Reputation points
edited the question 2023-01-23T18:21:35.97+00:00
abiodunajai 146 Reputation points
0 answers

Is there any option in LinkedIn API to get all ugcPosts and its statistics in an organization within single API

Hi, Is there any option to get all ugcPosts and its statistics in a organization within single API for getting organization posts by using …

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.
147 questions
asked 2023-01-04T17:44:03.623+00:00
Ashida K A 1 Reputation point
commented 2023-01-05T07:54:55.36+00:00
Ashida K A 1 Reputation point
0 answers

Is there any LinkedIn API to list ugcPosts between two date period

Hi, Please help me to find an LinkedIn API for getting ugcPosts between two date period. https://api.linkedin.com/v2/ugcPosts?q=authors&authors=List(urn%3Ali%3Aorganization%3A89813345)&sortBy=CREATED Here add time intervel like this..…

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.
147 questions
asked 2023-01-04T17:04:41.443+00:00
Ashida K A 1 Reputation point
commented 2023-01-05T03:17:01.397+00:00
Ashida K A 1 Reputation point
0 answers

Checkmarx Connection String Injection Issue on Excel File Uplaod

I'm using Checkmarx that scans source code and identifies security vulnerabilities within the code <asp:FileUpload ID="fuXlsWorkflow" runat="server" EnableViewState="true" /> <asp:RegularExpressionValidator…

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.
6,964 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.
147 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,190 questions
asked 2022-11-20T02:49:08.4+00:00
MUHAMMAD AZEEM AZAM 1 Reputation point
commented 2022-11-21T17:42:38.587+00:00
Viorel 82,661 Reputation points
0 answers

Callback in Rest Api's

Hi, My question - from a 3rd party, my rest api will be called and for that we need to send a response after process (which might not be sent instantly), the response might take a day or two even. (Maybe a webhook or reverse api concept not sure).…

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.
147 questions
asked 2022-11-09T08:48:00.29+00:00
Roshan Kumar 46 Reputation points
commented 2022-11-18T06:22:09.943+00:00
Roshan Kumar 46 Reputation points
0 answers

Rest request body is sometimes truncated

I have an Asp.net API app where one of the API’s requests are randomly missing some of the body’s content starting from the end. All of the other APIs are very small in size so we don’t notice any issues with them. This API receives a serialized images…

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.
147 questions
asked 2022-10-31T04:39:33.23+00:00
moondaddy 856 Reputation points
commented 2022-11-04T11:23:39.477+00:00
AgaveJoe 17,106 Reputation points
0 answers

How to clear the exception to prevent being logged twice by Application Insights

I installed Application Insights into my ASP.NET Web API application. I added global exception handler to log specific exception as a custom events to App Insights: public class AppExceptionHandler : ExceptionHandler { private readonly…

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.
147 questions
Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,320 questions
Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
1,825 questions
asked 2022-10-13T11:39:29.957+00:00
Mykhailo Kostiuchenko 1 Reputation point
commented 2022-10-24T06:38:24.313+00:00
Ryan Hill 16,071 Reputation points Microsoft Employee
0 answers

POST Method is not working with "Navigation" attributes

Hello, I'm trying to POST data to a table. Each time I try with the Swagger app I received an error that mentioned that "entityNavigation" attribute is null. But that attribute was automatically generated by Scaffolding (it does not exist…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,552 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.
147 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,190 questions
asked 2022-10-10T04:04:38.753+00:00
iscott16 1 Reputation point
commented 2022-10-10T06:59:57.833+00:00
Zhi Lv - MSFT 18,786 Reputation points Microsoft Employee
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…

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.
147 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
787 questions
asked 2022-07-31T18:51:39.13+00:00
Ronald Rex 531 Reputation points
commented 2022-08-01T06:12:19.75+00:00
Zhi Lv - MSFT 18,786 Reputation points Microsoft Employee
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.
2,552 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.
147 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 18,786 Reputation points Microsoft Employee
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 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.
147 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
401 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,026 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.
2,552 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.
6,964 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.
147 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,190 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.
954 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 18,786 Reputation points Microsoft Employee
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.
147 questions
Azure Active Directory External Identities
asked 2021-11-24T10:50:11.41+00:00
Piyu Chinchkhede 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 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.
147 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
913 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,552 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 17,106 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#.
4,811 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.
147 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.) 15,741 Reputation points Microsoft Employee
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#.
4,811 questions
Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,320 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.
147 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,422 questions
Microsoft Build
Microsoft Build
A Microsoft platform for building applications with Visual Studio and .NET on Windows.
368 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 13,456 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…

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.
147 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,811 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 17,106 Reputation points
0 answers

c# Asp Web API: HttpException: Maximum request length exceeded.

This might be a common question, but my situation is not so common. I an sending a serialized image into an Asp.net Web API method and am getting this error: System.Web.HttpException: Maximum request length exceeded. at…

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.
6,964 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.
147 questions
asked 2021-08-26T08:27:19.473+00:00
moondaddy 856 Reputation points
commented 2021-08-27T05:48:24.203+00:00
Yijing Sun-MSFT 7,026 Reputation points
0 answers

Azure Identity Platform - Authenticate logged in user against Custom WebAPI Endpoint using ReactJS Client

Hi. We have a dotnet Aspnet WebAPI based API using .Net Framework 4.7.2 which we access using a ReactJs client Application. We want to authenticate users logged in as an Azure AD user against our API. Our question is as follows: How do we set up our…

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.
147 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,642 questions
asked 2021-04-21T10:16:14.6+00:00
Guttorm Haaversen 1 Reputation point
commented 2021-06-01T15:41:34.363+00:00
Guttorm Haaversen 1 Reputation point
0 answers

CreatedAtAction doesn't work

I need to get a URL with CreatedAtAction but get a null. My searches did not yield any results. **My controller** namespace GeoService.Controllers { [Route("api/continent/{continentId}/country/{countryId}/City")] …

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.
6,964 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.
147 questions
asked 2021-05-12T21:06:05.167+00:00
Michel De Graeve 1 Reputation point
commented 2021-05-14T09:25:26.413+00:00
Chao Deng-MSFT 791 Reputation points