I
I
Ivan Filatov2010-12-27 13:09:18
IIS
Ivan Filatov, 2010-12-27 13:09:18

ASP.NET MVC 2 & IIS 7.0?

Through VS I publish a project written in ASP.Net MVC 2.
I get a directory in the form:
../bin
../Content
Global.asax
../Scripts
../Views
Web.config
in IIS7 to localhost added a Web application referencing to the folder where the publish was made. (specified the application pool on .Net 4)
I launch the site. But when I go to it, I get an error
HTTP Error 403.14 - Forbidden
The web server is configured to not list the contents of the directory.

I roughly understand that I need to add a Default Document to IIS - but I don’t have, for example, Default.aspx in the folder.
What needs to be done so that IIS starts up and opens/launches the application?
Tried adding the Default Document as any *.aspx file from the ../Views/../ folder HTTP
Error 500.21 - Internal Server Error
The "BlockViewHandler" handler contains a corrupt "ManagedPipelineHandler" module in the list of modules

Or maybe I'm posting the project incorrectly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Antelle, 2010-12-27
@Antelle

In mvc default document is not needed at all. Look at what you have in global.asax, which action of which controller will be called when the site is overgrown. It's probably Home/Index. Do you have it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question