Altaf Khatri
Altaf Khatri



RSS feed for http://www.AltafKhatri.com website. Twitter account of http://www.AltafKhatri.com website.
∗Recently Added - How to take care of Betta fighter fish and increase life span?  10/30/2013


Find me on web

 LinkedIn

 Facebook

 Twitter

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.



PS:
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




SiteMap  |  Contact Me