Publish or Deploy website or web application in local machine or local network using asp.net in Visual Studio 2012.

Here in this post we will learn How to publish a Web Application or Web Site in our local machine or local network ? this is process of some easy steps that you have to follow to publish your web application locally.

First of all you have to confirm that IIS installed and working properly  in our machine. after that open the web site or web application which one you want to publish

Publish your web Application on local network or in your PC in just 10 easy steps


1. open your web application and make sure that it is error free. if so then it is ready for publish.

2.Right Click on Web Application in solution explorer you will find "Publish" click on this option you have new window "Publish Web" like below.



3.Create New Profile as shown above, Now in "Connection" tab  make sure that in "Publish method:" drop down choose "Web Deploy Package" option. Now in "Package location" browse your path where you want to store published version of your web application after that click on "Next" button.

4. Now in "Settings" tab in "Configuration:" field select "Release" and click publish button it will take some time to create you web application's published version if it is success fully done than in out put window show succeeded message as below.



5.Now go to the location which you have provided in "Step-3" you got one ZIP file named as you have provided in "Step-2" this is a published version of your web application.

6. Unzip the file and open folders in this way "\BlogCodeTester\Content\E_C\Abhay\Abhay Projects\BlogCodeTester\BlogCodeTester\obj\Release\Package\PackageTmp" remember that last folder that you open is "PackageTmp" now copy all the files from this folder.

7.Go to this Location "C:\inetpub\wwwroot" and make one New folder here i have given "BlogCodeTesterPublished" name but you can give any name of this folder. Now past all the file that you have copied in step-6.

8.Now press "windowkey+R" to open Run Window now write "inetmgr" and click OK, it will open IIS Manager like below now do as shown in below image.

9.In "Default Web Site" you will find your folder that you have Created in  this path "C:\inetpub\wwwroot". Now right click on that folder and choose "Convert to Application" option it will open "Add Application" window click "OK" button.



10.Now Select your Web site in "Default Web Site" now in middle part of IIS Manager there are two options "Features View" and "Content View" now click the "Content view" and you will find all your project files in middle part  of IIS Manager now select your Default file that you want to run first and right click on that file and select "Browse" it will run your page on your default browser.

NOTE: Congrats Your web application is published on your local Network or PC. now you can access this web in your network. if you want to access this site from other PC then copy the path and replace the localhost with your IP in which you have published this website. Make sure the PC is in running mode.

Publish your Website on local network or in your PC in just 10 easy steps


1. open your web site and make sure that it is error free. if so then it is ready for publish.

2.Right Click on Web Site in solution explorer you will find "Publish Web Site" click on this option you have new window "Publish Web Site" like below.



3.Create one blank folder where you want to store your published version website as shown below image.

4. Now minimize the Visual Studio and open the folder location where you have published your web site in Step-2. copy this folder.

5.Go to this Location "C:\inetpub\wwwroot" past Folder which you have copied in step-4.

7.Now press "window key+R" to open Run Window now write "inetmgr" and click OK, it will open IIS Manager like below now do as shown in below image.

8.In "Default Web Site" you will find your folder that you have Created in  this path "C:\inetpub\wwwroot". Now right click on that folder and choose "Convert to Application" option it will open "Add Application" window click "OK" button.



9.Now Select your Web site in "Default Web Site" now in middle part of IIS Manager there are two options "Features View" and "Content View" now click the "Content view" and you will find all your project files in middle part  of IIS Manager now select your Default file that you want to run first and right click on that file and select "Browse" it will run your page on your default browser.

10.Congrats Your web site is published on your local Network or PC. now you can access this web in your network. if you want to access this site from other PC then copy the path and replace the localhost with your IP in which you have published this website. Make sure the PC is in running mode.

Post a Comment