How to publish MVC Application on web?
This website is built on ASP.NET MVC.
(M)odal (V)iew (C)ontroller popularly called as MVC. It is a boon to web developer who are focussed on improving the websites search rating. MVC not only makes the underline technology hidden, it hides the unnecessary tags and unncessary data generated by the development studios(Microsoft Visual Studio in this case).
First build your website by right clicking the website name in the solution explorer and clicking the Build option.
Publish your website by right clicking the website name in the solution explorer and clicking the Publish option.
- In case, your webserver where the website will be hosted does not have MVC installed, following dlls needs to be copied to the bin folder of your website
before building and publishing.
dlls to be copied to the bin folder:
The dlls can be found by checking the physical folder path of these dlls in the reference folder.
Now follow steps 1 and 2 above.
You are done. Copy the files from the Publish folder to the destination folder on your website.
Hosting ASP.NET MVC application on IIS 6 - If you are using IIS6 and after deploying you are seeing only the home page, and clicking on any link on the website throws 404 error page, then read this good article. It will resolve the problem related to internal IIS request redirects. http://blog.codeville.net/2008/07/04/options-for-deploying-aspnet-mvc-to-iis-6/
Publishing ASP.NET MVC3 - If you are publishing ASP.NET MVC3 application on IIS server that does not have ASP.NET MVC3 installed, then you can follow this article. Hosting ASP.NET MVC 3 application