1

Hello everyone I want to ask how to publish a MVC3 project on IIS 7

I have done these steps:

Installed neccessary dlls

Microsoft.Web.Infastructure
System.Web.Helpers
System.Web.Mvc
System.Web.Razor
System.Web.WebPages
System.Web.WebPages.Deployment
System.Web.WebPages.Razor

Changed Framework

But it still does not publish

4

2 回答 2

1

When you deploy it you can keep your projet in root folder where local disk C: or whatever and please dont forget to which framework you are using and you can change the framework at application pool

于 2012-08-31T12:29:54.203 回答
0

Requested URL: /Views/Home/Index.cshtml

Your requested URL is wrong. You cannot directly access Views. You should pass through a controller action, so the correct url that you need to type in your browser is /home/index.

You may take a look at some of the tutorials about ASP.NET MVC here: http://asp.net/mvc

于 2012-08-24T11:55:58.993 回答