319 questions from the last 365 days
0
votes
0
answers
28
views
Swagger UI fails to load with "Internal Server Error /swagger/v1/swagger.json" on ASP.NET Core 9 with file upload endpoint
Problem
I have an ASP.NET Core 9 Web API with a file upload endpoint using IFormFile. When I launch the application, Swagger UI fails to load with:
Failed to load API definition.
Fetch error
Internal ...
-3
votes
0
answers
77
views
ASP.NET Web API Publish Fails with Build failed. Check the Output window for more details
I am trying to publish my ASP.NET Web API project, but the publish process fails with the following error:
2/26/2026 12:33:17 PM
System.AggregateException: One or more errors occurred.
---> ...
-1
votes
0
answers
35
views
Intermittent/inconsistent full page postbacks when using UpdatePanels while repeating same action
At my job we have a large (and old) ASPX page (using a master page) with several UpdatePanels that contain buttons and form fields. We also pair it with some JavaScript that runs in the pageLoaded ...
1
vote
0
answers
36
views
How can I package a .NET server app running on Linux as a service with SQLite?
I need to create a package for a .NET application on Linux for the Azure Marketplace. The application uses an SQLite database. Azure Marketplace, in the process of creating the offer, does not present ...
1
vote
1
answer
35
views
ASP.NET - Application response too many redirects after upgrading to Microsoft.Web.RedisSessionStateProvider 5.0.4
I am working on upgrading Microsoft.Web.RedisSessionStateProvider from 3.0.2 to 5.0.4
I have setup the web.config to use the redis server that is running in my local
but I am getting this error ...
-1
votes
0
answers
56
views
Paypal Payment API - call back on HTTP errors
I am calling the Paypal API from .NET using their published client script, e.g. in a page called Default.aspx:
<script>
paypal.Buttons({
createOrder: function () {
return ...
1
vote
0
answers
27
views
ASP.NET MVC 5: could not load type 'X.MvcApplication' after removing Roslyn system.codedom [duplicate]
I have an ASP.NET MVC 5 (running on .NET 4.8) application.
Initially the app failed to start with:
Could not find a part of the path '...\roslyn\csc.exe'
This was caused by the Roslyn CodeDom ...
Advice
0
votes
1
replies
55
views
What are you building with AI in your API?
The only place we have used AI so far in any of my projects was Azure Document Services, user would upload a document and we used Azure to validate the document.
Making sure for example that it's a ...
0
votes
0
answers
45
views
ASP.NET MVC AntiForgeryToken could not be decrypted
I have an ASP.NET MVC 5 application (.NET Framework 4.7.2) running on IIS Express.
I am getting the following exception when posting a form:
System.Web.Mvc.HttpAntiForgeryException: the anti-forgery ...
-2
votes
0
answers
31
views
Why does Hangfire pause if there are no users on the site? [duplicate]
Hangfire performs background work by requesting data from a third-party API. There are several tasks, but I'll only use one for this example.
I discovered a strange background task schedule on the ...
0
votes
0
answers
32
views
Enable module in IIS location tag via Microsoft.Web.Administration or AppCmd
I'm working on an application which needs to load an IIS module into IIS. Up until now, I've been loading my module at the global level using the Microsoft.Web.Administration ServerManager via:
public ...
0
votes
0
answers
15
views
AutoGenerate,IsolateApps options for machinekeys in IIS
If we set AutoGenerate,IsolateApps on the ValidationKey and DecryptionKey in IIS for the site, do we also need to generate <machinekeys> node in the Web.config?
How would we use the ...
-1
votes
1
answer
91
views
ASP.NET webforms Ajax to pass data from aspx to code behind
I need to pass some data from an .aspx file to its code behind file.
<form id="form1" runat="server">
<div>
Name : <input type="text" id="...
0
votes
1
answer
75
views
Winform loading WebUrl not determine whether is Browser or WinForm
I have an ASP.NET Webforms framework 8.0 that is working fine but I would like to load the Web Url where my webform is hosted in a Winforms app and determine whether the webform url was loaded from ...
1
vote
1
answer
75
views
ASP.NET mobile page not redirecting for customErrors
Our application is a legacy ASP.NET Webforms app, we have our web.config customErrors setup like this:
<customErrors mode="RemoteOnly" defaultRedirect="/Error/Error.aspx" ...