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?
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.
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.
Yes, IIS Express uses the same applicationhost. config and web. config files supported by IIS.
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.
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.
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