Questions tagged [iis-express]

IIS Express is the developer version of full IIS that doesn't require Administrator rights to run. See also the [iis] tag.

IIS Express is the developer version of full IIS, that doesn't require Administrator rights to run. It is designed as a replacement for the ASP.NET Development Server (aka Cassini) which ships with some releases of Visual Studio. IIS Express has several releases so far, and can be downloaded as separate installer or part of Visual Studio.

Official documentation is on IIS.net here and here.

See also

2292 questions
0
votes
0 answers

Unable to connect to the configured development web server: IIS 10.0 Express, .NET Framework 4.6.1 web site, Windows Server 2019, Visual Studio 2022

I've been at this problem for a while now. I've been following references of all sorts and have tried out solutions that I think pertain to my issue. This is the information I currently have: I have a web site that uses IIS to be hosted on the web…
jfar41
  • 59
  • 8
0
votes
0 answers

Localhosting in Visual Studio with IIS isn't using the .dll files from my .NET Website (I'm new to this)

Some Background I recently inherited a large ASP .NET Visual Basic website (WSP). Unfortunately, I was unable to talk with the person previously working on it and now have a tight deadline. I know general VB code but am new to hosting. The site…
0
votes
0 answers

Failed to launch debug adapter locally when changing ASPNETCORE_ENVIRONMENT

I have a solution with a pretty standard config structure appsettings.json appsettings.Development.json appsettings.Testing.json appsettings.Production.json Testing and Production servers have an ASPNETCORE_ENVIRONMENT set to Testing and…
americanslon
  • 4,048
  • 4
  • 32
  • 57
0
votes
1 answer

How to change the IIS Express development port on a WebForms project in VS2022

I have a legacy ASP.NET WebForms app I need to get running. When running it in Visual Studio 2022 it uses port 50007 (http://localhost:50007/). That port has been helpfully reserved by Hyper-V and so I get an error (failed to register URL....…
Rob
  • 3,315
  • 1
  • 24
  • 35
0
votes
1 answer

How to get app port from IIS Express in C#

I am trying to get The port which an app is running on, from IIS Express. So far i tried those two approaches: //first var iisExpress = new DirectoryEntry("IIS://localhost/W3SVC/AppPools").Children; //second var mgr = new…
Machshevet
  • 21
  • 1
0
votes
1 answer

.NET 6 Requests taking too long to reach server

I have a .NET 6 WebAPI that was working perfectly fine until last week in my local environment. Now when I try to make any request from any source in my localhost, the requests take between 1 and 4 minutes to reach the controller of the WebAPI. When…
Andrés Girón
  • 97
  • 1
  • 11
0
votes
1 answer

HttpContext.User.Identity.Name not NULL only in debug mode (NULL from IIS or locally)

I have a MVC project, and I'm using IHttpContextAccessor in order to use HttpContext in my controller. public RequestController(IHttpContextAccessor accessor) { _contextAccessor = accessor; } I use another function in order to find out the name…
Steeve
  • 1
  • 2
0
votes
1 answer

Enabling and disabling port 443 for web application

I have two ASP.NET applications which i'm migrating to OIDC. Also i created OIDC request mentioning to accept request for 443. Now that i have two applications running on port 443 i started getting this error. How can i alter between applications…
Sid
  • 123
  • 2
  • 10
0
votes
1 answer

Starting IIS Express cmd rather than VS2022

The ASP.Net Core 6 Web Api runs under IIS Express via VS2022 just fine and allows me to load the swagger page (http://localhost:8084/swagger/index.html): #Software: Microsoft Internet Information Services 10.0 #Version: 1.0 #Date: YYYY-DD-MM…
0
votes
1 answer

ISS Express 10, HTTP Error 404.0 - Not Found (Incorrect Physical Path)

When running/debugging my project (web based MVC ASP.NET) on visual studios 2022 with IIS Express, I run into this error: image of error screen The issue that arises is that the physical path is not directed to my repos folder…
Dillon
  • 1
  • 2
0
votes
1 answer

IIS - ignore/deny access to specific pages

I have hosted an asp.net project in IIS and I want to restrict logins to some pages/folders. I want to restrict all the users to not open some directory files using url. They have to be able to only access the localhost/mypage/home and…
LeotrimR
  • 62
  • 6
0
votes
1 answer

SwaggerUI causes Index.html startup side effect on IIS express in Blazor App

I created a new Blazor Server project and added SwaggerUI and now the application searches for index.html as the start up object when I debug. Interesting, I isolated the offending code to the routeprefix="" app.UseSwaggerUI(c => { …
KeithMacCrimmon
  • 219
  • 3
  • 16
0
votes
0 answers

IIS missing items

I have an issue with my IIS. It is not showing any of the option except Authentication. I uninstalled IIS and re-install IIS but with no luck. I have everything installed but there is no ASP.NET menu and only Authentication is showing in the IIS…
0
votes
1 answer

After adding an additional binding to IIS Express, traffic to localhost is refused

After adding the binding *:44335:bs-local.com to my applicationhost.config and adding a urlacl rule with netsh, IIS Express no longer serves localhost:44334. I would like to use both bindings in IIS Express. How can this be…
Brian
  • 6,910
  • 8
  • 44
  • 82
0
votes
1 answer

System.IndexOutOfRangeException: Index was outside the bounds of the array application in IIS

when i transported my application (using windows authentication) User.Identity.Name.Split('\\')[1]; like above. Throw error in iis but It works well in local. System.IndexOutOfRangeException: Index was outside the bounds of the array. i enabled…
Suisenra
  • 13
  • 4