0

I am trying to create an ASP.NET MVC 4 website and serve it with IIS 7.5. So, I build it in Visual Studio, and then publish the code to a directory. In IIS Manager, I create a new website, whose physical path is the publish directory. The bindings are http:*:80:.

However, when I try to reach the website by typing in the name of my machine on a browser, I get the following error message:

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

What's going on here?

Karnivaurus
  • 22,823
  • 57
  • 147
  • 247

3 Answers3

0

Karnivaurs

Try to use "localhost" or the loop back ip "127.0.0.1" to get to the site.

For the browsing, If its available in IIS then you have to enable it. See here

0

I wonder if you have the same issue that happened with this question, it solved my problem with IIS on Windows 8

MVC 4 website with .NET 4.5 on IIS 8 in Windows 8 gives 403.14 forbidden error

Community
  • 1
  • 1
Anthony Shaw
  • 8,146
  • 4
  • 44
  • 62
0

Does it work when you run it straight from visual studio? Do you have home/index? To enable directory browsing in IIS , you need to double click on Directory Browsing and Enable it. That way you can see the content of the directory. After that, you can browse to your html page. enter image description here

ACS
  • 443
  • 4
  • 15