Search This Blog

09 February 2012

How to deploy ASP.NET web application in IIS?

First of all why should we deploy it? 
         If you want to access your web application in a network you should deploy it.Web application should be deployed in any of the web servers to access from anywhere in the network.
How should deploy web application in IIS?
        Steps to deploy ASP.NET web application,
step1: Publish your application
         
Right click your project in solution explorer from the right pane in visual studio 2010-> click Publish



         
Provide name of the project to deploy and select publish method as "web deploy" and service url as "localhost"(if you are deploying it in local machine),then provide site/application as "Default Web Site" and your website name because it will deploy in Default web site in local IIS server and mark IIS as destination

step2:  Open IIS server
Type "inetmgr" in Run(Win-key +R) and enter, this will open IIS manager. If you are unable to open this proceed the steps below,
1.Open control panel->Programs and features->Select "Turn windows features on or off" from left pane of control panel
2. Expand Internet Information Services. Select Internet Information Services to choose the default features for installation.If you want to select additional features to install, Select the required check boxes.

Click OK to start installation.
step3: Deploy your application from IIS manager
           Open IIS manager as I said in above step,Expand Sites and Default Web Site here you should find your published website

Now you have deployed your website in network and you can check your website by Right click your website->manage application->browse, you can able to see your website page in your default browser now. Am I right? I think you will get. 
Now you can able to access from network using the local or Public IP of Deployed server machine...ALL THE BEST...