2012-06-05

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'.

IC452454

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.

PublishToFileSystem_cd6550ea-8b67-4ef2-a4a8-21b05066da5b

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

CreateNewSite

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

IIS7-Add-Web-Site

No comments: