Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is IIS Express 7.5 wwwroot Directory

Using Windows 7 I have installed the IIS Express 7.5 but I cant find where is the wwwroot directory on my system! There is no "inetpub" folder on my C drive as well. Can you please let me know where I can put a file like hello.aspx file to be run?

Thanks

like image 769
Behseini Avatar asked Feb 21 '14 22:02

Behseini


People also ask

Where is my IIS Express install directory?

This file is located in the %userprofile%\Documents\IISExpress\config folder or %userprofile%\My Documents\IISExpress\config folder, depending on your OS.

Where are IIS Express virtual directories?

Creating a virtual directory in IIS Express To create a Virtual Directory in IIS Express simple navigate to the IIS Express' config directory located in _C:\Users<User>\Documents\IISExpress\config_ and open the applicationhost. config file.

Where is the IIS Express config file?

This can be the configuration file for the Visual Studio solution (located in the “. vs” directory of the solution), or the global IIS Express configuration file (located under “C:\Users\<User>\Documents\IISExpress\config”).

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.


4 Answers

By first-hand experience and also by this other SO answer, usually IISExpress holds a directory with its own data files at: C:\Users\<username>\Documents\IISExpress.

There you can find the default directories for each web site log files (Logs\ and TraceLogFiles\) and especially you can find all web sites configurations in file config\applicationhost.config. That one has a <sites> section with a <site> node for each website created.

For each website, its <virtualDirectory> node specifies actual root location in physicalPath attribute:

<site name="YourWebSiteName" id="12345">
  <application path="/" applicationPool="Clr4IntegratedAppPool">
    <virtualDirectory path="/" physicalPath="D:\Physical\path\to\your\website\root"/>
  </application>
  ...
</site>
like image 88
superjos Avatar answered Oct 19 '22 09:10

superjos


C:\Users\YourUserName\Documents\My Web Sites\web-Site1

One simple way to test is just key in a test file in your site root, e.g. http://localhost:1714/test.txt

System will throw a 404 error, in the "Detailed Error Information" section, system will show the "physical path" the server is trying to retrive the file. enter image description here

like image 23
Hainan Zhao Avatar answered Oct 19 '22 09:10

Hainan Zhao


Usually it is in your home directory. Something like c:\Users\<yourname>\Documents\IISExpress

like image 2
ema Avatar answered Oct 19 '22 09:10

ema


you will see a location like below path

C:\Users\YOURUSERSNAME\AppData\Local\Temp\Temporary ASP.NET Files

like image 1
Milad Hatami Avatar answered Oct 19 '22 08:10

Milad Hatami