Publish and deploy an asp.net application in IIS

You can simply publish your web application to the File System and copy paste all the files to your server. Then from IIS, you can add a new website. If you are not sure what files you should include, it's better to choose 'All files in the project' from the Package/Publish Web. Otherwise choose 'Only files needed to run this application'. You can set this by right clicking on the web application in the solution explorer and choosing 'Package/Publish Settings'.


Right click on your project in the solution explorer and choose 'Publish'. From the dialog box, as the publish method, choose 'File System'. And choose some directory as the Target Location.


You can add the website by right clicking on the 'Sites' in IIS.


Then give a name to your site and select the Physical path from where you copied the site folder


1 comment:

Unknown said...

They way you've explained it is just awesome.