ThomasMX
ThomasMX

Reputation: 1811

Where is the IIS Express install directory?

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?

Upvotes: 40

Views: 90555

Answers (4)

Ivan P.
Ivan P.

Reputation: 926

Locate the registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IISExpress\<Your version>

and parameter "InstallPath".

Upvotes: 3

Nate Anderson
Nate Anderson

Reputation: 21074

My directory is located here:

C:\Program Files\IIS Express

Upvotes: 31

Afzaal Ahmad Zeeshan
Afzaal Ahmad Zeeshan

Reputation: 15860

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

Upvotes: 38

Juanmabs22
Juanmabs22

Reputation: 1300

☢ ☣ ⚠ If you are using OneDrive with Document Sync check the folder:

C:\Users\[your-account]\OneDrive\Documentos\IISExpress\config

The common way on %userprofile%\documents\IISExpress said from @Afzaal sadly not works for this case (OneDrive)

Also, remenber to make the folder always on the computer (right click on folder... onedrive option)

Upvotes: 0

Related Questions