In IIS, right-click the Default Web Site, choose Deploy > Configure Web Deploy Publishing.
#VISUAL STUDIO PUBLISH TO IIS SERVER WINDOWS#
Complete the change installation steps.Ĭreate the publish settings file in IIS on Windows ServerĬlose and reopen the IIS Management Console to show updated configuration options in the UI. Choose to Change the installation and make sure that you choose Will be installed to the local hard drive for the Web Deploy components. If the Web Deployment Agent Service is not present at all, go to Control Panel > Programs > Uninstall a program, find Microsoft Web Deploy. If one of the agent services is not running, restart the Web Deployment Agent Service. Web Deployment Agent Service is running (the service name is different in older versions). (Optional) Verify that Web Deploy is running correctly by opening Control Panel > System and Security > Administrative Tools > Services, and then make sure that: The scripts and tools are required to enable the generation of the publish settings file.
#VISUAL STUDIO PUBLISH TO IIS SERVER INSTALL#
Go to Select server roles > Web Server (IIS) > Management Tools, and then select the IIS Management Scripts and Tools role, click Next, and then install the role. If you did not already install IIS Management Scripts and Tools, install it now. In the Web Platform Installer, you find Web Deploy 3.6 for Hosting Servers in the Applications tab.
![visual studio publish to iis server visual studio publish to iis server](https://docs.microsoft.com/en-us/aspnet/web-forms/overview/older-versions-getting-started/deployment-to-a-hosting-provider/deployment-to-a-hosting-provider-deploying-to-iis-as-a-test-environment-5-of-12/_static/image5.png)
Then use the Get New Web Platform Components link in the Actions window.) You can also obtain the Web Platform Installer (WebPI) from downloads. In the server pane, right-click the server and select Internet Information Services (IIS) Manager. (To find the Web Platform Installer link from IIS, select IIS in the left pane of Server Manager. To install Web Deploy for Hosting Servers, use the Web Platform Installer (WebPI). Next, install Web Deploy 3.6 for Hosting Servers on Windows Server. If you have Web Deploy already installed on Windows Server, uninstall it using Control Panel > Programs > Uninstall a Program. The Web Platform Installer for IIS allows installation of version 3.6, not 4.0, so that is the version we recommend in this article. Web Deploy 3.6 for Hosting Servers provides additional configuration features that enable the creation of the publish settings file from the UI. Install and configure Web Deploy on Windows Server You can, however, still publish to IIS using the Publish tool in Visual Studio. IIS on Windows does not support generating the publish settings. To set up ASP.NET 4.5, see IIS 8.0 Using ASP.NET 3.5 and ASP.NET 4.5. For ASP.NET Core, make sure you configure the Application Pool to use No Managed Code, as described in the article. To set up ASP.NET Core, see Host ASP.NET Core on Windows with IIS. Either ASP.NET 4.5 or ASP.NET Core must also be installed on the server. On your server, you must be running Windows Server 2012, Windows Server 2016, or Windows Server 2019, and you must have the IIS Web Server role correctly installed (required to generate the publish settings file ( *.publishsettings)).
![visual studio publish to iis server visual studio publish to iis server](https://docs.microsoft.com/en-us/aspnet/web-forms/overview/deployment/visual-studio-web-deployment/deploying-to-iis/_static/image27.png)