A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
475 questions with Developer technologies | ASP.NET | ASP.NET API tags
tostring()
for some reason the script doesn't work and the tostring <%@ Page Language="C#" AutoEventWireup="True" %> <%@ Import Namespace="System"%> <script runat="server"> void Page_Load(Object…
Developer technologies | ASP.NET | ASP.NET API
API issue on the server
Hi, No similar issue when calling the project. Why does it appear when going to "https://localhost:7060/swagger/index.html"?
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
Web API issue
Hi, Further to https://learn.microsoft.com/en-us/answers/questions/5731546/issue-to-web-api Is there any concrete example on the client side, to retrieve the file of the server?
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
Minimal API is taking too long
We're getting close to the end of rewriting a legacy ASP.NET WebForms app using Blazor and Minimal APIs. Both are written using .NET 9. A coworker builds and puts both the Blazor app and Minimal API into their respective websites. According to him, it…
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
How do I get a property which is an object, converted to a bool?
I've got a C# class in a Minimal API, which gets returned. The class looks like this: public class APIResponse { public APIResponse() { ErrorMessages = new List<string>(); Result = new object(); …
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
Ensure that the server side is ready
Hi, Further to https://learn.microsoft.com/en-us/answers/questions/5767226/openapi-issue how to ensure that the link like https://localhost:7060/swagger/index.html is ready to be triggered by the client App (or to receive any command from the client…
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
OpenAPI issue
Hi, How to resolve it below? I ever changed OpenAPI version to 3.3.1 but there was the other issue.
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
Issue to the deployed app
Hi, On one deployed web API project, I see the items below. How to verify it or do the testing that Web API deployment is fine (or ready) to receive the other triggered action from the client app?
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
Authorization Issue with AddSecurityRequirement for OAuth2 in .NET 10 (C# 14) Swagger Configuration
Hello Team, I recently upgraded my API project from .NET 8 to .NET 10 and updated language features to C# 14. After the upgrade, I started facing issues with OAuth2 authorization in Swagger UI. The login prompt appears, but the API calls still return 401…
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
What is the default document for a Minimal API project, hosted in IIS?
I've written a Minimal API project, using .NET 9 and VS 2022. Now I need to deploy it to a Windows Server so it can be hosted in IIS. However, I'm getting error when I try to use it, but I think it's because I'm using the wrong default document type. The…
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
Content from website doesn't display
I've published and deployed a web site, but IIS doesn't display it correctly. None of the mark up is displayed in the browser, only comments and page title from my asp.net page. So, it resolves, but doesn't render everything. This is what it looks…
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
ASP.NET WebForms still loads old jQuery from ScriptResource.axd after upgrading to jQuery 3.7.1
Our security team flagged an issue indicating that an older jQuery version appeared to be loaded in our application.(ScriptResource.axd) I am working on an ASP.NET WebForms (.NET Framework) application. I upgraded jQuery to 3.7.1, but initially noticed…
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
ASP.NET Web Forms loads legacy jQuery 1.12.4 via ScriptResource.axd instead of jQuery 3.7.1 and is flagged in security scan
Hello, I am working on an ASP.NET Web Forms application where I have explicitly included jQuery version 3.7.1 in the project and pages. However, when the application runs and I inspect the network requests, I see that ScriptResource.axd is loading jQuery…
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
IIS App Pool Shows “Running” but Site Becomes Unresponsive Until Manual Recycle
Hello, We're dealing with a super frustrating IIS issue and I'm hoping someone here has seen this before... THE PROBLEM: Our Application Pool shows as "Running" in IIS Manager, but the site is completely DEAD. Not responding at all. The only…
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
Getting the messages sent by the vendor in C#
I have an application running in production that processes customer payment requests. When a payment needs to be completed, the application redirects the customer to an external payment provider (PayPal). After the payment is processed, the vendor sends…
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
Login not possible with AspNetCore Idenity when Enable DataProtection.
I'm configuring my application to make use of AspNetCore.Identity as well Data protection. public static void Main(string[] args) { var builder =…
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
Problem in Parsing JWT token.
I have an API service webapp. The JWT token used for authorization has 13 claims. The main deployed web app parses all the claims correctly. I deployed a test version of this webapp without any changes in the jwt auth module. Now 3 claims are not being…
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
Sending SMS from ASP.NET Web Application Using Twilio API
I am attempting to implement a feature that allows a user to send an SMS to a mobile number from a web application using the Twilio API. The application setup consists of two text boxes: DestnationPhone.Text SmsMessage.Text In this feature, a user will…
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
Best practice to handle dates when visitors are in different timezones?
I have a blog application (.NET/C#/API) where users can create posts for specific dates. The blog is public (no login required to read posts). Problem: A user in Sweden (UTC+1) creates a post on 2025-10-31 at 00:30 local time. They want the post to be…
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
I don't understand why my Minimal API doesn't bring up swagger
I have a Blazor Web Application I've been working on (Visual Studio 2022 and .NET 9). This application had 4 VS projects in the solutions, one of them was a Minimal API app. Due to problems I encountered with that configuration, I have decided to migrate…
Developer technologies | ASP.NET | ASP.NET API
A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.