Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using IIS Express with a team - when not using localhost

I assume we must be missing a trick as we are finding using IIS Express with teams quite painful.

The issue is IIS Express' applicationhost.config is stored locally in each persons MyDocuments folder, and thus separate to the Visual Studio solution and not in source control.

So when we make a change everyone has to manually update applicationhost.config on their machine.

THe update visual studio does to the applicationhost.config file fails, because we are not using localhost, we have host entries to give our environments different names.

The local IIS URL specifed for web project has not been configured.

Creation of the virtual directory You must specify "localhost" for the server name

Is there a better way?

like image 810
Dan Avatar asked Nov 18 '11 16:11

Dan


People also ask

How do I access my IIS Express site from another computer?

Normally when you run an application in IIS Express, it's only accessible on http://localhost:[someport]. In order to access it from another machine, it needs to be bound to your public IP address as well. Open* D:\Users[YourName]\Documents\IISExpress\config\applicationhost. config *and find your site.

Where does IIS Express run from?

Running your site from the application folder By default, IIS Express will run the site on http://localhost:8080/ . For a managed website, such as ASP.NET, IIS Express will use . NET 4.0.


1 Answers

Refer to Here

UPDATE FOR VISUAL STUDIO 2015: As was pointed out to me in a comment by Søren Nielsen, in Visual Studio 2015 the IIS Express configuration files have moved. They are now separate per project, and stored in /{project folder}/.vs/config/applicationhost.config. Which is much better, in my opinion, just don't forget to add .vs/ to your .gitignore/.hgignore files!

Other wise NO there is no better way. Instead of IIS Express, for remote access you can use IIS on your development machine...

like image 151
efaruk Avatar answered Oct 11 '22 08:10

efaruk