Deploy the MVC Application


In this post I will explain step by step how to deploy the MVC 4 Razor view engine web application in to
IIS 7

Step 1
      First create an MVC Application, If you did not know how to create MVC application, First saw the fallowing link. It will help you.

Step 2
       Then change the debug mode to Release. Please refer the following image.
Step 3 
         Now Right click the application and select " Publish ". It show " Publish Web " window like following.
Then Select " File System " in  Publish method. then the window change to following. select the location to release the code in Target location, then click Publish Button
Step 4
           It build the application and Publish the application in selected location.
Now we saw how to create website in IIS 
Step 5
      In command window and enter " Inetmgr" it open IIS and do following thing one by one

  1. In the Connections pane, right-click the Sites node in the tree, and then click Add Web Site.
  2. In the Add Web Site dialog box, type a friendly name for your Web site in the Web site name box.
  3. Click Select if you want to select a different application pool than the one listed in the Application Pool box. In the Select Application Pool dialog box, select an application pool from the Application Pool(it should support framework 4.0) list and then click OK.
  4. In the Physical path box, type the physical path of the Web site's folder, or click the browse button (...) to navigate the file system to find the folder(E:\Fileupload).  
  5. The default value in the IP address box is All Unassigned. If you must specify a static IP address for the Web site, type the IP address in the IP address box.
  6. Type a port number in the Port text box.
  7. Optionally, type a host header name for the Web site in the Host Header box.
  8. If you do not have to make any changes to the site, and you want the Web site to be immediately available, select the Start Web site immediately check box.
  9. Click OK.



 

No comments:

Post a Comment