IIS 7 and Above
MVC5 application throws error 403.14 on some of the IIS 8.5 (Windows...
Last post Jun 23, 2020 08:35 AM by Jalpa Panchal
Jun 22, 2020 03:53 PM|Kamal Dhanani|LINK
I have an MVC5 application on IIS 8.5 (Windows Server 2012 R2). Suddenly It started throwing error 403.14 (The web server is configured to not list the contents of this directory)
My Website is an MVC5 application and it also contains a web API application. Both the MVC website and web API is running on the separate application pool. A web API application works fine but when we try to access an MVC application it throws error
I have confirmed the following things:
1) Application Pools are .net V4 and Managed Pipeline mode set to Integrated
2) Website root folder has proper permission for IIS_IUSRS
3) Application Pool Enable 32bit Application - False
4) Application Pool Identity - LocalSystem
Any help is appreciated.
Jun 22, 2020 06:03 PM|Rovastar|LINK
Do you want to show the directory listings?! or is the app meant to do something else when you goto the directory level?
Often it is MVC stuff it will be the code of the routing
Jun 22, 2020 06:08 PM|Kamal Dhanani|LINK
I don't want show directory listings.
Jun 22, 2020 11:14 PM|lextm|LINK
when we try to access an MVC application it throws error 403.14.
What URL gives you that error?
Jun 23, 2020 08:35 AM|Jalpa Panchal|LINK
Could you please share a detailed error message snapshot?
try to add below code in the web.config file:
or if you are using routing module then use below setting:
<remove name="UrlRoutingModule-4.0" />
<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
<!-- any other modules you want to run in MVC e.g. FormsAuthentication, Roles etc. -->