Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set Allow Parent Paths in IIS Express Config

I'm assuming this is possible in the applicationhost.config file but I did not see a parent paths setting.

How do you allow parent paths for a specific site running under IIS Express?

like image 534
Brian Boatright Avatar asked Jan 22 '11 18:01

Brian Boatright


People also ask

How do I enable parent paths in IIS?

You can enable or disable parent paths by using IIS Manager. To do so, open IIS Manager and navigate to the site or application where you want to configure parent paths, and then-double click the ASP feature. In the list of ASP features, configure the Enable Parent Paths option.

How do I change IIS Express settings in Visual Studio?

Configure IIS express on visual studioSelect the web application project and open properties -> select the web tab -> under server's select IIS express-> Specify the project URL. Now open the project folder and . vs folder (Hidden) -> Config -> applicationhost.

Does IIS Express use web config?

Yes, IIS Express uses the same applicationhost. config and web. config files supported by IIS.

Where is the IIS Express config file?

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.


1 Answers

Browse to C:\Documents and Settings\$your user name$\My Documents\IISExpress\config

Open applicationHost.config

Find the <system.webServer> section

Change the <asp> section to the following… By default it only had the cache and empty limits bits but feel free to adjust any parameters you don't want.

<asp       enableParentPaths="true"       bufferingOn="true"       errorsToNTLog="true"       appAllowDebugging="true"       appAllowClientDebug="true"       scriptErrorSentToBrowser="true">       <session allowSessionState="true" />      <cache diskTemplateCacheDirectory="%TEMP%\iisexpress\ASP Compiled Templates" />      <limits /> </asp> 

Save and restart iis express.

like image 78
Flapper Avatar answered Sep 20 '22 11:09

Flapper