Tuesday, October 25, 2011

HTTP Error 403.14 – Forbidden The Web server is configured to not list the contents of this directory FIX!

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.

1 comment:

  1. Recently, the Gemini platform is facing trouble in to increase purchase limit. To remove this problem they must make a call on Gemini support number and convey the problem to the team experts. They will have insight to the issue and revert back to Gemini Support Number the user as soon as possible. The other way to connect is through Gemini service number. The services are available 24*7 for each user. They are always at your service, so you can reach them as per your comfort.

    ReplyDelete