Reputation: 73
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
Upvotes: 1
Views: 577
Reputation: 122
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
Upvotes: 1
Reputation: 1038710
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
Upvotes: 0