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
35
votes
10 answers

Visual Studio IIS Express hangs on launch, but IIS local works, why?

I run Visual studio 2015 as administrator, start a new project, ASP.NET application, Empty 4.5.2 and then just add a simple html page. When I try to launch using IIS Express, I just get waiting for local host. If I do this under IIS local it works…
DCR
  • 14,737
  • 12
  • 52
  • 115
35
votes
5 answers

Prevent iisexpress from running the websites in a solution when the startup app is a console app

I have a solution with a number of projects in it. Even if I set the web project's start options to: Don't open a page. Wait for a request from an external application. Use custom webserver. Base URL: http://localhost. And the startup project…
Hoppe
  • 6,508
  • 17
  • 60
  • 114
35
votes
14 answers

HTTP error 500.19 - Cannot read configuration file

In one of my ASP.NET apps, all of a sudden I am unable to run it in Visual Studio 2013 due to the error displayed below. It appears that it is trying to open the web.config from a path that doesn't even exist. All of my project code, including…
PongGod
  • 829
  • 1
  • 11
  • 19
35
votes
4 answers

Null reference pointer was passed to the stub when not debugging with IE

In VS2012, my web project debugs fine like always. I use IIS Express. Today, I installed VS 2013 and when I press F5 to debug, I get I can't find a solution to this anywhere. I tried clearing out temp files, change the port number from 7227 to…
34
votes
17 answers

IIS Express crashes when starting a site from visual studio

I started encountering this problem after installing the Visual Studio 2015 RC; I am no longer able to debug web projects from Visual Studio 2013. My projects build fine and VS launches a browser - I can see in my output that iisexpress.exe loads…
Joshua Barron
  • 1,532
  • 2
  • 26
  • 42
33
votes
1 answer

What account does IIS Express run under?

I need to get my dev machine to read a certificate from the local machine store to do this I need to run winhttpcertcfg.exe and specify the account I want to elevate What would this account be for IIS express? (For IIS it would be the…
ChrisCa
  • 10,876
  • 22
  • 81
  • 118
32
votes
15 answers

Visual studio 2019 “Unable to connect to web server 'IIS Express'”

I attempt to lunch my ASP.NET Core project in Microsoft Visual Studio 2019 and got this error: "Unable to connect to web server 'IIS Express'" Visual Studio 2019 Version 16.9.5 .Net 5.0
32
votes
5 answers

How do I change my IIS Express SSL certificate for one that will work with Chrome 58+?

Chrome 58+ drops support for CN in SSL certs, which means (at least on my machine) that browsing sites hosted in IIS Express throw constant security warnings. How do I change my IIS Express SSL certificate for one that will work with Chrom 58+?
Chris
  • 3,081
  • 3
  • 32
  • 37
32
votes
2 answers

How to use subdomains with localhost on IISExpress?

I'm serving my MVC app locally via localhost:5252 right now. I'm trying to set up my app to test multi-tenancy by having both localhost and contoso.localhost point to my web app instance. I set up my hosts file with the corresponding entry:…
SB2055
  • 12,272
  • 32
  • 97
  • 202
32
votes
3 answers

How do I prevent IISExpress & My Web Sites folders from cluttering up my My Documents folder?

I noticed recently IISExpress & My Web Sites folders are getting added to the My Documents folder on my Windows 7 machine. I recently installed VS2012, so I'm guessing that's the culprit, but I haven't been able to find anything on line that…
TimeTrap
  • 1,142
  • 1
  • 14
  • 18
31
votes
4 answers

Programmatically determine if code is running under IIS Express

I am not sure this is even possible, but I am hoping for a clue as to determine if the code that is currently executing is running under IIS Express. My best approximation so far, which is incredibly hackish and will certainly fail/break at some…
Goyuix
  • 23,614
  • 14
  • 84
  • 128
31
votes
5 answers

Using port 80 with IIS Express inside of VS2010

I've got an app that I am trying to run on my dev system under IIS Express from VS2010 that I need to use port 80 for, but I can't get it to work. I've looking up information talking about port 80 being…
Nick Albrecht
  • 16,607
  • 10
  • 66
  • 101
31
votes
6 answers

web application exists on both the local IIS web server and the IIS Express web server

On the surface, this looks a lot like I want to use iis 7 instead of iis express in visual web developer 2010, or Visual Studio USE LOCAL IIS WEB SERVER issue with IIS 7.5. But, my problem is that there is no entry in applicationhost.config for…
saunderl
  • 1,618
  • 2
  • 16
  • 31
30
votes
12 answers

You do not have permission to access the IIS configuration file - Web app error

I am trying to load existing c# web applications and getting below errors while loading any web project: Creation of the virtual directory http://localhost:/ failed with the error: You do not have permission to access the IIS configuration …
P Deshpande
  • 457
  • 1
  • 4
  • 6
29
votes
3 answers

IIS Express HTTP Error 401.2 - Unauthorized

I have tried the suggestions in this post but I can not get Windows Authentication working with IIS Express in Vision Studio 2010. Now I get following error: Here are my applicationhost.config file entries: ...
Andy May
  • 4,030
  • 5
  • 34
  • 33