Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the IIS Express install directory?

Tags:

asp.net

iis

I have recently started an asp.net tutorial, and I want to test my page that I made with WebMatrix. How ever, there's an error:

The Web server is configured to not list the contents of this directory.

So it suggests to Enable directory browsing and go to the IIS Express install directory and run a command.

So where is this located exactly?

like image 219
ThomasMX Avatar asked Apr 26 '14 18:04

ThomasMX


People also ask

How do you check if IIS Express is installed?

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 /?

Where is IIS Express wwwroot?

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 .

What is the difference between IIS and IIS Express?

An important difference is the way worker processes are managed. In IIS, the Windows Process Activation Service (WAS) silently activates and deactivates Web applications and the user has no direct control. In IIS Express, there is no WAS and the user has full control of application activation and deactivation.


1 Answers

The user Data files are present here:

C:\Users\[username]\Documents\IISExpress 

If that's the error. Then you might have got the error 404.13 (Forbidden) on your browser.

You can try to edit the web.config file and add this:

<system.webServer>    <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> 

This would allow the server to read the files and process them. This is a server settings error. And I think this might help you out.

Update

As suggested by jamiebarrow, you can get to that directory directly using the following path in your Windows File Explorer,

%userprofile%\documents\IISExpress 
like image 98
Afzaal Ahmad Zeeshan Avatar answered Sep 27 '22 21:09

Afzaal Ahmad Zeeshan