HTTP Error 403.14 - Prohibited Error Accessing the Website

So, I have all the updated code, all decisions are being built. It works on all other machines, however, when I try to access localhost/extranet on my machine, it gives me this error:

HTTP Error 403.14 - Forbidden

Error Details:

 Module DirectoryListingModule Notification ExecuteRequestHandler Handler 0x00000000 Requested URL http://localhost:80/extranet/ Physical Path C:\svn\K2\trunk\appteam\web\Chatham.Web.UI.Extranet\ Logon Method Anonymous Logon User Anonymous 

Now I tried to log into IIS7 and turn on directory browsing, this fixed the error, but it still didnโ€™t call my site. I also tried to enable and disable the document by default, re-enable it, everything, nothing worked. I also restarted IIS several times to no avail.

Any ideas?

+6
source share
5 answers

It looks like your IIS is not processing the routing rules for your application and is trying to find default.aspx, index.htm, etc. Since it cannot, it wants to display directory listings (which is why you got 404.14).

I just checked the setup of my dev, and I think your AppPool should be installed on Integrated, and not Classic on the managed pipeline for AppPool. I came across this before, there may be ways to use Classic Pipeline, but this will / should be the fastest way to solve your problem. To check / change the pipeline mode, click "Application Pools" in the menu to the left of IIS, find your AppPool and look in the column of the managed pipeline. If it is set to Classic โ†’ Right-click AppPool, select the basic settings, and then change the drop-down list from Classic to Integrated.

If I'm wrong, someone, please feel free to correct me on this in the comments.

Change Just add, you can run the MVC application in classic pipeline mode, but you need to do IIS 6 tricks to make it work correctly. Basically, you need to enable the wildcard script pattern for MVC to work in classic mode if it does not expect the existence of an .aspx file (or the like) for it to handle the execution pipeline with .NET from IIS.

+9
source

Causes this error. The Global.asax file is deleted from the root directory of your site.

To solve this problem, add the Global.asax file to your project.

See here: How to add a Global.asax file to an ASP.NET MVC4 project

+7
source

In IIS, you need to find out which application pool your application is running from. Just right-click the web application under Sites>Manage Web Site>Advanced Settings . The first property should be the application pool.

Now click Application Pools . You should see the Identity column. Add this user to the ACL of the directory C:\svn\K2\trunk\appteam\web\Chatham.Web.UI.Extranet\ . If he just says "ApplicationPoolIdentity", it might be a little harder to figure out the user . If it works only under DefaultAppPool , you can use IIS AppPool\DefaultAppPool .

+3
source

Also make sure that in the IIS application pool settings, Enabled 32-bit Applications in the Advanced Settings section is set to FALSE. I spent hours trying to fix it, and that was my problem. Windows Server 2012 IIS 8.5

0
source

Change the โ€œstart pageโ€ by right-clicking on the page and select the โ€œMake Start Pageโ€ you want to open first when the web application starts first. This may solve your problem. :)

0
source

Source: https://habr.com/ru/post/899987/


All Articles