Setting up a website and keep getting this error
"HTTP Error 403.14 – Forbidden The Web server is configured to not list the contents of this directory”
Here is how to resolve the error. Actually Step 3 is the real true fix :).
1. create a website
use this command
> %windir%\system32\inetsrv\AppCmd ADD SITE /name:MyNewSite /id:3 /bindings:http/*:81: /physicalPath:c:\inetpub\mynewsite
Output:
SITE object "MyNewSite" added
APP object "MyNewSite/" added
VDIR object "MyNewSite/" added
2. run this command to install the ASP.net version you are running, in this case i was running v4.0
%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis -i
or
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis -i
3. then change your new website's application's pool to 'DefaultAppPool'
4. Thats the only way to have that error sorted.
I would think that since you installed the ASP.net 4.0 from the command then when you assign it as the pool it should work, so now you still have to assign your application website application's pool to 'DefaultAppPool'. Anyway that's microsoft for you.