Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is located physical directory of my IIS Express site?

In which directory IIS Express stores my site DLLs and other resources?

I have examined the <site> section of my %USERPROFILE%\Documents\IISExpress\applicationhost.config and it looks like this:

<site name="WebSite1" id="1" serverAutoStart="true">
  <application path="/">
    <virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1" />
  </application>
  <bindings>
    <binding protocol="http" bindingInformation=":8080:localhost" />
  </bindings>
</site>

Physical path is set to %IIS_SITES_HOME%\WebSite1 which points to %USERPROFILE%\Documents\My Web Sites, but in this directory, there are just default files like iistart.htm, iis.png and other crap.

My site runs on localhost:58620, but I there is no site configuration applicationhost.config for it.

I start IIS Express from Visual Studio 2015.

So where is the physical directory of my localhost:58620 site located? Thanks.

like image 510
mimo Avatar asked Dec 17 '15 17:12

mimo


People also ask

Where is the IIS Express folder?

IIS Express uses a default, user-specific ApplicationHost. config file to allow many users to share the same computer without interfering with other user's settings. This file is located in the %userprofile%\Documents\IISExpress\config folder or %userprofile%\My Documents\IISExpress\config folder, depending on your OS.

How do you check IIS Express is installed or not?

IIS Express is normally installed into your 32-bit Program Files folder. So, to see if it's there you can try: C:\>cd "\Program Files (x86)\IIS Express" C:\Program Files (x86)\IIS Express>iisexpress /? Save this answer.

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.


1 Answers

In your solution folder there is a hidden sub folder called .vs, and an applicationHost.config there controls the things. This is a change in VS 2015.

like image 96
Lex Li Avatar answered Oct 04 '22 16:10

Lex Li