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
171
votes
9 answers

How do I restore a missing IIS Express SSL Certificate?

After setting up HTTPS in IIS Express, according to such articles as this and this, I am unable to actually load an IIS Express site using HTTPS. In Chrome, I am only getting: This webpage is not available (with error code…
Chris Simmons
  • 6,924
  • 5
  • 31
  • 47
140
votes
2 answers

.vs\config\applicationhost.config in source control

Visual Studio 2015 adds a file named .vs\config\applicationhost.config to the root of a solution when an ASP.NET Web application project is created. Should this file be checked in to source control or should it be ignored (so that each user will…
David Gardiner
  • 16,892
  • 20
  • 80
  • 117
139
votes
14 answers

How can I change IIS Express port for a site

I want to change the port number on which my website runs while debugging from Visual Studio. I am using Visual Studio 2012, and I am using ASP.NET MVC 4 for my projects I want to change the port. Random port or fixed anyone will work just want to…
Mohit
  • 2,189
  • 4
  • 22
  • 40
138
votes
33 answers

Why and how to fix? IIS Express "The specified port is in use"

We know a random port number is assigned to a web application in Visual Studio. It works fine in my office desktop. But when I pull the code onto my laptop (from VisualStudio.com) and run the web app. I got a message, saying, The specified port is…
Blaise
  • 21,314
  • 28
  • 108
  • 169
135
votes
9 answers

Creating virtual directories in IIS express

Is there any way to create a virtual directory in IIS express? I know that Cassini can't do this and it would be nice to be able to do this without using a full version of IIS. I've got it so far that I can browse to my application locally in IIS…
John Hoge
  • 2,371
  • 2
  • 20
  • 24
129
votes
5 answers

Binding IIS Express to an IP Address

Is it possible to use IIS Express to host pages on a network. Out of the box it can do localhost but I am trying to bind it to an IP address.
jdiaz
  • 7,354
  • 12
  • 42
  • 51
125
votes
3 answers

IISExpress Log File Location

IISExpress writes log and configuration data to pre-determined location out of the box. The directory is an "IISExpress" directory stored in a user's Documents directory. In the directory is stored the following folders files…
Adrian Russell
  • 3,995
  • 5
  • 25
  • 26
120
votes
8 answers

Ngrok configure multiple port in same domain

Is it possible to open multiples ports in ngrok in same domain? Something like: Fowarding http://example.ngrok.com:50001 -> 127.0.0.1:50001 Fowarding http://example.ngrok.com:50002 -> 127.0.0.1:50002 I´m working in windows and it'll be useful for…
fravelgue
  • 2,633
  • 2
  • 24
  • 23
119
votes
41 answers

localhost refused to connect Error in visual studio

I have copied my solution file from another system and tried to run it on my machine: For this, I have gone to the project folder and deleted the previous solution file and copied the new one. Now, it started giving me error. connection refused etc.…
duke
  • 1,816
  • 2
  • 18
  • 32
114
votes
23 answers

How to solve ERR_CONNECTION_REFUSED when trying to connect to localhost running IISExpress - Error 502 (Cannot debug from Visual Studio)?

This is running on Windows Server 2008 and used to work several months ago. I am just now using this server again for some dev work with VS. This is live web server used to serve up a few test sites as well. This came up when running Visual Studio,…
ElHaix
  • 12,846
  • 27
  • 115
  • 203
111
votes
15 answers

IIS Express gives Access Denied error when debugging ASP.NET MVC

I have created an ASP.NET MVC 3 project, and am using IIS Express as the web server when developing. When I try to debug, I get the error message below. How can this be solved? Server Error in '/' Application. Access is denied. Description: An…
TheBoubou
  • 19,487
  • 54
  • 148
  • 236
108
votes
8 answers

Configure IIS Express for external access to VS2010 project

I am developing a project in VS2010 and am able to view my site locally via IIS Express. I would like to enable external access over the network. All my research has sent me to this blog entry:…
snumpy
  • 2,808
  • 6
  • 24
  • 39
105
votes
9 answers

Authentication issue when debugging in VS2013 - iis express

I'm trying to pick up the windows username when debugging in Visual Studio 2013. I am simply using: httpcontext.current.user.identity.name If I run this on my Dev Server it works fine, if I run it in debug mode on any previous version of Visual…
102
votes
20 answers

Creating a virtual directory failed with the error

I can't solve this problem I suggest I have to change c:\Windows\System32\drivers\etc\hosts file and add after # localhost name resolution is handled within DNS itself. the next line: 127.0.0.1 mysite.dev but it doesn't help. Any…
Dmytro
  • 16,668
  • 27
  • 80
  • 130
89
votes
10 answers

Connecting to Visual Studio debugging IIS Express server over the lan

I have a test ASP.NET MVC3 application developed in VS2012. When I start debugging the app is accessed from the host machine via the request to http://localhost:. But if I try to access the same application from the remote machine in the…