Content
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. …


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 …


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


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…


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


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


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…


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…


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


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…


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…


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…


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…


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


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…


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…


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…


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…


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

