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?
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?
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.
The following should get you going.
On 32bit system "%programfiles%\iis express\appcmd" set config "Default Web Site/myapp -section:asp -enableParentPaths:true
On 64 bit system"%programfiles(x86)%\iis express\appcmd" set config "Default Web Site/myapp -section:asp -enableParentPaths:true
Link to related IIS 7 config reference: http://www.iis.net/ConfigReference/system.webServer/asp
If I'm not the only one still supporting .asp in 2022 AD with Visual Studio you may need to change the application.config in the hidden .vs[solution name]\config folder if the answer by @Flapper does not work.
What might be happening is that VS copies the root IIS application.config into .vs for the solution so any changes to the root would not impact an existing solution config. In my case I had to change the solution .config as well as the root IIS .config for it to work.