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
This file is located in the %userprofile%\Documents\IISExpress\config folder or %userprofile%\My Documents\IISExpress\config folder, depending on your OS.
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.
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”).
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.
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>
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.
Usually it is in your home directory. Something like c:\Users\<yourname>\Documents\IISExpress
you will see a location like below path
C:\Users\YOURUSERSNAME\AppData\Local\Temp\Temporary ASP.NET Files
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