Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run ASP.NET MVC app in IIS 10 on Windows 10

I installed IIS 10 through windows features and published MVC app into the IIS folder, then executed "dism /online /enable-feature /featurename:IIS-ASPNET45" command but still getting error:

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

I've done this in windows 7 with "aspnet_regiis -I" command instead of "dism /online /enable-feature /featurename:IIS-ASPNET45" and web app loaded just fine from localhost, but I can't seem to get this to work on Windows 10.

like image 543
Alexander C. Avatar asked Jul 31 '15 23:07

Alexander C.


People also ask

How do I enable Classic ASP in IIS 10?

Normally, the iis version in windows 10 is iis10, you can follow below steps to enable classic asp in iis. Search for Turn Windows Features on or off in the win10 search bar. Expand Internet Information Services, then World Wide Web Services, then Application Development Features. Select ASP, and then click OK.

How do I install ASP NET on Windows 10?

In Control Panel, click Programs, and then click Turn Windows features on or off. In the Windows Features dialog box, click Internet Information Services to install the default features. Expand the Application Development Features node and click ASP.NET 4.5 to add the features that support ASP.NET. (If you installed .


1 Answers

I had the same problem and I solved it by using the Win10 GUI for selecting installed features. Internet Information Services -> World Wide Web Service -> Application Development Features->ASP.NET 4.6 was not checked. Checked that along with a few others I needed and all was good.

like image 101
Carlos Henrique Ferracin Avatar answered Sep 22 '22 23:09

Carlos Henrique Ferracin