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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With