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
24
votes
12 answers

An error occurs while loading my ASP.NET application after it is configured for IIS

I changed my ASP.NET web application to use Local IIS, instead of IIS Express. Now after re-opening the solution, the following error occurs while loading the application: error : Project 'Atlas2' could not be opened because the Visual C# 2015…
Mohammad Mirmostafa
  • 1,720
  • 2
  • 16
  • 32
24
votes
3 answers

clearing IISExpress cache

I am trying to clear up the IISExpress Cache from the powershell. Using this code it complains about the list. "C:\Program Files (x86)\IIS Express\appcmd.exe" list site /xml | appcmd delete site /in How can I clear up the sites and the IIS Express…
aggie
  • 798
  • 2
  • 8
  • 23
24
votes
6 answers

Cannot run web application on Windows 10 using IIS Express

I am developing a web application using ASP.NET MVC (a rather simple application, having just a single controller and a few routes; there´s nothing fancy in it). In the beginning I used Visual Studio 2013 and Windows 8/8.1. A couple of days ago I…
Matze
  • 5,100
  • 6
  • 46
  • 69
23
votes
4 answers

How do I display custom error pages in Asp.Net Mvc 3?

I want all 401 errors to be be redirected to a custom error page. I have initially setup the following entry in my web.config.
23
votes
2 answers

Slow page refresh times during development

We have a reasonably large ASP.NET MVC app that I work on in Visual Studio 2012 on Win 8. I have a strange issue with slow page load times after recompilation. Usually, the actual build time is about 5 seconds, then the browser opens up and it takes…
Max Al Farakh
  • 4,386
  • 4
  • 29
  • 56
22
votes
4 answers

How to enable Directory browsing by default on IIS Express

Cassini (Visual Studio development web server) by default enables directory browsing, how can I enable directory browsing on IIS Express by default? (I don't want to have a separate configuration for each project I have?
Ahmed Magdy
  • 5,956
  • 8
  • 43
  • 75
22
votes
13 answers

Unable to launch the IIS Express Web server

When trying to debug a web application configured to use IIS Express 7.5 in Visual Studio 2010, I received the following error "Unable to launch the IIS Express Web server" When running from the command line with the /trace:error switch I got the…
user1684
22
votes
11 answers

Visual Studio 2019: "This site can’t provide a secure connection" on localhost

I've installed Visual Studio 2019 and uninstalled Visual Studio 2017. Now if I start an ASP.NET (Core) site with https, it always say on Chrome: This site can’t provide a secure connection or on Edge Can’t connect securely to this…
Julian
  • 33,915
  • 22
  • 119
  • 174
22
votes
2 answers

How do I prevent Visual Studio from modifying the IIS Express site's phyical path in applicationhost.config?

I have a Visual Studio web application project that, for certain reasons, copies files from multiple projects to a separate output directory. I want to use this output directory as the root of the associated IIS Express site. In IIS Express'…
Bryan
  • 1,431
  • 1
  • 17
  • 22
22
votes
11 answers

IIS Express will not start

I'm just putting this one out there since its a Google Zero-resulter which means I win a prize? Cannot start IIS Express 7.5 after reinstall from one account, but I can when logged-in under my other domain account. What's odd is that the account it…
Luke Puplett
  • 42,091
  • 47
  • 181
  • 266
21
votes
1 answer

What are the differences between Launch URL and App URL?

What is the difference between App URL and Launch URL from ASP.NET Core? With these settings, I can access my app, both over HTTP on port 4099 and over HTTPS on port 44363, but first it launches on HTTPS. I'm using VS 2017. If I use the same URL…
Chris
  • 6,105
  • 6
  • 38
  • 55
21
votes
4 answers

How do I Change IIS Express 8 port 80 to 8080

I used to use vs2010 and webmatrix. However,I'm trying to use apache lately. So my IIS express is using port 80 and apache is using port 8080. I intend to have it the other way around. Let apache use port80 and IIS use 8080. I couldn't let apache…
user2869934
  • 1,419
  • 4
  • 13
  • 18
21
votes
7 answers

VS 2012 launching app based on wrong path

I have a app which is under source control (TFS 2012 also) on c:\Dev\MyApp\Main. Because im developing a new feature I decided to open a branch on c:\Dev\MyApp\BranchNewFeature. I developed and when I decided that it was time to test it was like i…
Leonardo
  • 10,737
  • 10
  • 62
  • 155
20
votes
7 answers

How do I start IIS Express?

I've used the Web PI to install IIS Express. In the tray, there is not the IIS Express icon. How do I start IIS Express without using the command line? I want that IIS runs permanently, so without command line.
System.Data
  • 3,878
  • 7
  • 32
  • 40
20
votes
7 answers

IIS Express, ASP.NET Core - Invalid URI: The hostname could not be parsed

Back from my weekend and went to debug my web project which is an ASP.NET Core Web Api. It started giving me an error: Invalid URI: The hostname could not be parsed. I can start a new asp.net core web api project and it debugs fine so I'm pretty…
James Scott
  • 990
  • 2
  • 10
  • 29