2,322 questions
0
votes
0
answers
53
views
How to fix IIS Express profile error in Visual Studio 2022? [closed]
I am trying to run my .NET project in Visual Studio, but whenever I start the application—whether using Debug or Run—I get an error popup saying:
This project doesn't know how to run the profile with ...
0
votes
1
answer
67
views
Using LibreOffice portable to convert Excel to PDF in an ASP.NET Core Web API (IIS and IIS Express for development)
I had used LibreOffice portable a while back to convert documents to PDF and I cannot for the life of me figure out how to do it again.
Every time I run this in IIS Express for development I am ...
1
vote
0
answers
54
views
I start integration tests with `dotnet test`. They spawn IIS Express which fails ONLY on CI pipeline if I require code coverage
The test with coverage runs perfectly well locally:
C:\xyz\DevOps\xyz.DependencyInjection [master ≡]> dotnet test -c:Release --no-build -f net9.0 --filter "FullyQualifiedName~Tests....
3
votes
1
answer
64
views
Two projects with same launchsettings.json load with different port numbers
I have a large solution stored in a repository on GitHub. It is working fine. But when I download that repository to another computer, it does not run in debug mode.
The solution runs two projects: My ...
0
votes
0
answers
32
views
HttpMethod.Post gives an 401 error even though it was supplied with credentials [duplicate]
I am trying to create a post method to create a data that pushes to my DB
this is my service to call my API:
public async Task CreateTest(TestsDto testDto)
{
try
{
var request = new ...
1
vote
1
answer
54
views
ASP.NET web application : Dcom configuration interop exception
I have an ASP.NET web application to export an Excel file with multiple sheets. Each sheet contains multiple tables on it created using Microsoft.Excel.Interop.Services package. The export ...
0
votes
0
answers
69
views
Allowing Anonymous Authentication in IIS breaks Windows Authentication
In a aspnet.core application I added the following middleware:
app.Use(async (context, next) =>
{
var authService = context.RequestServices.GetRequiredService<IAuthenticationService>();
...
0
votes
1
answer
35
views
Unable to connect to web server 'IIS Express'. Output from IIS Express:
Unable to connect to web server 'IIS Express'. Output from IIS Express: Starting IIS Express... Successfully registered URL "http://localhost:5001/" for site "MyProject" ...
0
votes
0
answers
49
views
Running ASP.NET Web API on IIS Express getting ANCM error
I am running an ASP.NET Web API application for .NET Framework 4.7.2, and when I try to run it in on my Windows 11 dev machine via IIS Express, the app is crashing with the following error:
HTTP ...
0
votes
1
answer
60
views
IIS express, visual studio, chrome won't load MP3 correctly
I have an MP3 file which I'm trying to have my browser play (I've tried both through JavaScript and through the <audio> tag but I'm getting some super unusual behavior).
For context it is a .NET ...
0
votes
1
answer
2k
views
IIS Express from Visual Studio 2022 is not able to run "This site can’t be reached (ERR_CONNECTION_RESET)" (not on default ports)
I am trying to run a c# project from VS2022 in debug mode but I am getting the following error:
This site can’t be reached
The connection was reset.
Try:
Checking the connection
Checking the proxy ...
0
votes
1
answer
95
views
Change URL project IIS ASP.Net
I have a problem when trying to change the project URL in my ASP.NET webforms project. I want to change this because, for security reasons, an application does not allow testing locally, as it ...
1
vote
2
answers
294
views
Configuration IIS Express failed with the following error: File name: redirection.config Error: Unable to read configuration file
I want to create a new ASP.NET Web Application (.NET Framework) with web forms, but when I press the create button then I got this error message. To fix this issue, I inserted IIS files manually and I ...
0
votes
1
answer
227
views
ASP.NET Core Launch Profiles with Multiple Sites and Environment Variables
So I'm new to ASP.NET Core and I'm trying to configure environment variables in Visual Studio for the site we're developing. Right now I've got a Development launch profile, which I want to use with ...
0
votes
0
answers
141
views
Blazor Server running on IIS causing network connection problems in Windows Server 2022
I have a couple of strange problems with the Blazor server running on IIS.
Getting error: Error: Connection disconnected with error 'Error: Server timeout elapsed without receiving a message from the ...