Site icon port135.com

Publishing ASP.NET web site in Visual Studio and deploying it in IIS

Publishing/deploying ASP.NET web sites is easier and more efficient with Microsoft’s deployment tool, called Web Deploy. I will be showing how to publish and deploy a web site step by step.

What you will use is:

End-to-end steps:

  1. In Visual Studio, Go to “Build > Publish projectname“. In the wizard, configure the settings:
    • Profile: Create a new profile if there is no one exits
    • Connection: Select “Web Deploy Package” in Publish Method list. Choose a path
    • Settings: Keep it as is
    • Preview: Click “Publish”. We will use the zip file in step 3

      Creating “deploy package” in Visual Studio

  2. In the computer that you will publish your web site on IIS, download and install Web Deployhttp://www.iis.net/downloads/microsoft/web-deploy
  3. Open IIS:

Yes, that’s all!

Note: If you get an error saying that some dll files are missing (example error message is below), find those files in the computer you use for developing and copy them under C:\inetpub\wwwroot\websitename\applicationname\bin

Some DLL files are missing. You should copy them manually
Exit mobile version