views:

1831

answers:

1

Hi everybody!

I 'm developing an ASP MVC web project. Now i have a requirement which forces me to deploy to an IIS7 inmiddle of development (to check some features). I 'm getting the above mentioned error message whenever i try to type the URL of the web site. (Note: development machine: Vista Home Premium, IIS7)

What i have done until now:

Edited the HOSTS file (C:\WINDOWS\system32\drivers\etc\hosts).

Put two domains in it (127.0.0.1 domain1.com & 127.0.0.1 domain2.com).

Created a folder c:\websites\dirOfApplication and deployed from within Visual Studio 8 to this folder.

In IIS7 created a new site with host name domain1.com and application folder the above.

Typing the address domain1.com in Web browser results in the above error (HTTP Error 403.14 - Forbidden - The Web server is configured to not list the contents of this directory.)

I think i'm missing something but don't know what! Tryed to deploy the files System.Web.Mvc, System.Web.Abstraction & System.Web.Routing wit the same outcome. Whenever i try to hit F5 and run the application it works fine!

Thanks in advance

+2  A: 

It's because of being to sure about what you (me) are doing!

On my machine there is IIS 7 installed but the required ASP.NET component (Control Panel->Programs->Turn On/Off->ASP.NET) was not.

So installing this solved the problem

savvas sopiadis