Many of you are using
visual studio to develop webapplication in
asp.net.To run your web application from
visual studio is a one click process.You just click on the link and and your webpplication runs in the browser.But think about the situation when you want to run the website to the another computer which do not have visual studio.When you want to run your webapllication to another computer you need
Internet Information Service(IIS) which is already installed in window OS.
- First of all goto the control panel->Programs and Features->Turn windows feature on or off.
- Check Internet Information Services and everything under FTP Server,Web Management Tools,IIS6 Management Compatibility,World Wide Web Services(everything under it also) and also check Internet Information Services Hostable Web Core.
- Press Ok button.It will take some time to apply.
- Now in your C(or the drive in which OS is installed) folder name inetpub is created.
- Goto the visual studio.Open your webapllication and goto build menu->publish website.If you want to save solution file then click on save or otherwise click cancel.Now it will ask for target location for publishing site.I am giving C:\Users\Anup\Desktop\sitename where Sitename is the name you want to give name to the published folder.
- Folder will be created in your desktop having sitename(Whatever you have given).Now copy that folder and goto C->inetpub->wwwroot and paste your copied folder there.
- Open IIS manager by typing inetmgr into run prompt.Expand left side directory and you will find Sites directory.Right click on it and choose Add Website.
- Give site name,I have given testsite.In the physical path give path of your published folder which is now located in wwwroot directory.Change your port number,I am changing it to 84.Because if you have installed software like wamp server it takes port 80 as default port.So your site will not run.
- Your site will be added to the Sites directory.Now single click on Application Pools and select your sitename from list and right click on your sitename(Here I am clicking on testsite) ,select advanced setting->Process Model->Identity.
- Smarttag will appear , click on it and select LocalSysytem from dropdown box instead ApplicationPollIdentity.Press Ok two times and come out from application pool.
- Now right click on your site(mine is Sites->testsite) located in your Sites directory.Goto to Manage Web Site->Browse and you are done.