Altaf Khatri
Altaf Khatri



∗Recently Added - Resolution for Portable Hard drive error (Not Initialized) while formatting. 10/16/2009

Find me on web

 Orkut

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).

  1. First build your website by right clicking the website name in the solution explorer and clicking the Build option.

  2. Publish your website by right clicking the website name in the solution explorer and clicking the Publish option.

  3. 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:

    1. System.Web.MVC.dll
    2. System.Web.Routing.dll
    3. System.Web.Extensions.dll

    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.


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/




SiteMap  |  Contact Me