Reputation: 809
I'm trying to deploy my finished website to the hosting company server and i'm basically stuck. I have wwwwroot folder on the server where I put my folder of the published project. So what is the index file, the first page that I should display.. is it the layout page or simply my index.cshtml or maybe the _ViewStart? I got to create a path to the folder where the file would be located and give them the name of the "index page". I've been trying to do this for a while now with no luck.
Upvotes: 0
Views: 530
Reputation: 3923
Here is a link that might help you and explain the differences between previous MVC versions .
http://haacked.com/archive/2011/05/25/bin-deploying-asp-net-mvc-3.aspx
A default project creates the default page in the global.asax file that is why by default it is located in home/index folder as in
routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults );
Upvotes: 0
Reputation: 30152
Your default route should go to the default controller/view (ie /home/index) So if someone visits your site at www.yoursitewhatever.com it will automatically find the default page.
Upvotes: 1