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