简体   繁体   中英

How to publish MVC3 project on IIS 7

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

部署它时,可以将projet保留在本地磁盘C:或其他目录的根文件夹中,请不要忘记使用的是哪个框架,并且可以在应用程序池中更改该框架

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM