{"id":3094,"date":"2010-04-20T16:02:00","date_gmt":"2010-04-20T16:02:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2010\/04\/20\/one-click-publish-whats-new-since-beta-2\/"},"modified":"2010-04-20T16:02:00","modified_gmt":"2010-04-20T16:02:00","slug":"one-click-publish-whats-new-since-beta-2","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/one-click-publish-whats-new-since-beta-2\/","title":{"rendered":"One-Click Publish &#8211; What&#8217;s New Since Beta 2"},"content":{"rendered":"<p><P><STRONG>Publishing using MSDeploy In-Process Deployment&nbsp;or Remote Agent<\/STRONG> <\/P>\n<P>Through&nbsp;the Beta 2 release, VS 2010 had&nbsp;only supported publishing to servers using MSDeploy&#8217;s IIS deployment handler technology&nbsp;integrated with the&nbsp;\u201cWeb Management Service\u201d, a.k.a. WMSVC. As long as you had an account&nbsp;on&nbsp;a hosting server using WMSVC, you could use&nbsp;MSDeploy&nbsp;to&nbsp;update your web content. This is the&nbsp;msdeploy technology most people will use when publishing to a hosted site and, therefore,&nbsp;was released first. (In case you are interested in how the server should be configured, check out the link:&nbsp; <A href=\"http:\/\/technet.microsoft.com\/en-us\/library\/dd722796(WS.10).aspx\">http:\/\/technet.microsoft.com\/en-us\/library\/dd722796(WS.10).aspx<\/A>) <\/P>\n<P>In&nbsp;the RC release of VS 2010,&nbsp;We added&nbsp;support&nbsp;for two&nbsp;more msdeploy&nbsp;technologies&nbsp;that&nbsp;target specific&nbsp;deployment situations where WMSVC is not&nbsp;available. (By the way, the publish method \u201cmsdeploy\u201d has been renamed to \u201cWeb Deploy\u201d, to help provide a&nbsp;consistent brand across&nbsp;the different&nbsp;team using this technology.)<\/P>\n<P><U>Publish locally via In-Process Deployment<\/U><\/P>\n<P>You can now publish to your local development machine using&nbsp;the local msdeploy command instead of WMSVC, this is known as \u201cIn-Process Deployment\u201d.<\/P>\n<P>For example, if you signed up&nbsp;for an account from a hosting server company&nbsp;supporting msdeploy; but wanted to test&nbsp;your site locally first, this option provides you with this ability (even on a machine running XP)&nbsp;as long as IIS is&nbsp;installed.&nbsp;While running Visual Studio&nbsp;in admin mode, follow these steps:<\/P>\n<OL>\n<LI>Create a publish profile.<\/LI>\n<LI>In the Publish Web dialog,&nbsp;enter&nbsp;one of the following&nbsp;in the \u201cService URL\u201d textbox:&nbsp;&nbsp;\u201clocalhost\u201d or the local machine&#8217;s name.<\/LI>\n<LI>Fill in the &#8220;Site\/Application&#8221; field with the desired destination&nbsp;name and invoke publishing. <\/LI><\/OL>\n<BLOCKQUOTE>\n<P><IMG title=\"Untitled1\" height=\"390\" alt=\"Untitled1\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/Untitled1_thumb.jpg\" width=\"290\" border=\"0\"><\/P><\/BLOCKQUOTE>\n<P><U>Publish&nbsp;remotely&nbsp;via MSDeploy Remote Agent Service<\/U><\/P>\n<P>The Remote Agent Service&nbsp;is relatively easy to set up and is supported on IIS 6 boxes in addition to IIS 7. This&nbsp;is a good option for remote deployments&nbsp;on an&nbsp;intranet, and is especially useful&nbsp;in a&nbsp;team development environment where&nbsp;members need to routinely deploy builds&nbsp;during testing. When deploying to the Remote Agent Service you must provide administrator credentials on the destination machine to successfully publish.<\/P>\n<OL>\n<LI>The Remote Agent Service is not installed by default during the &#8216;typical&#8217; Web Deployment installation.&nbsp;If it is not installed on the destination machine, you&nbsp;will need to add&nbsp;it by changing the&nbsp;installed components for the&nbsp;Web Deployment Tool entry in Add\/Remove Programs or perform a custom install if installing for the first time. <BR><A href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/Untitled2_2.jpg\"><IMG title=\"Untitled2\" height=\"208\" alt=\"Untitled2\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/Untitled2_thumb.jpg\" width=\"291\" border=\"0\"><\/A> <\/LI>\n<LI>Start the&nbsp;Web Deployment Agent Service on the destination machine.&nbsp; Unless the service is set to auto start, you will need to&nbsp;perform this&nbsp;step everytime you deploy&nbsp;after the destination machine has restarted.<BR><A href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/Untitled3_2.jpg\"><IMG title=\"Untitled3\" height=\"177\" alt=\"Untitled3\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/Untitled3_thumb.jpg\" width=\"295\" border=\"0\"><\/A> <\/LI>\n<LI>In the publish dialog, the Service URL should be set to:&nbsp;<A href=\"http:\/\/%3cserver\/\">http:\/\/&lt;server<\/A> name&gt; (see the figure below for an example)<\/LI>\n<LI>Fill in&nbsp;administrative&nbsp;credentials for the destination server&nbsp;and start the publish <BR><A href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/Untitled4_2.jpg\"><IMG title=\"Untitled4\" height=\"407\" alt=\"Untitled4\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/Untitled4_thumb.jpg\" width=\"301\" border=\"0\"><\/A> <\/LI><\/OL>\n<P><I><\/I>&nbsp;<\/P>\n<P><STRONG>UI polishing to improve usability <\/STRONG><\/P>\n<P>With more deployment options squeezed onto the&nbsp;existing publish dialog, we thought that developers new to deployment might be overwhelmed.&nbsp; On the other hand, we didn&#8217;t want to&nbsp;flood the UI with controls and explanatory text&nbsp;designed solely for beginners, as this would become&nbsp;less useful&nbsp;once the knowledge was gained.&nbsp;With these opposing needs in mind, we&nbsp;made some strategic changes to the Publish dialog UI.<\/P>\n<P><U>Dynamically disabling and enabling appropriate controls&nbsp;for the current publish method.<\/U><BR>Depending on the publish method chosen, we now dynamically enable and disable controls.&nbsp; When you choose \u201cWeb Deploy\u201d and&nbsp;utilize the&nbsp;\u201cin-process deployment\u201d method, we disable the entire Credentials section.&nbsp;&nbsp;If you&nbsp;utilize the \u201cremote agent\u201d method, we disable the&nbsp;\u201cAllow untrusted certificate\u201d checkbox in the Credentials section.<\/P>\n<P><U>Hint button to help you understand Service URL and Site\/Application.<\/U><BR><A href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/Untitled5_2.jpg\"><IMG title=\"Untitled5\" height=\"94\" alt=\"Untitled5\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/Untitled5_thumb.jpg\" width=\"299\" border=\"0\"><\/A> <\/P>\n<P>If you select the \u201cWeb deploy\u201d publish method there are now many ways to specify the&nbsp;Service URL and Site \/ Application.&nbsp; To increase the amount of information available to users while simplifying the Publish Web UI,&nbsp;we&nbsp;added 2 information buttons that provide a more complete set of explanations and examples.&nbsp; To&nbsp;see these explanations and examples, simply&nbsp;hover over these information buttons.<\/P>\n<P>The Publish dialog has been through&nbsp;a lot&nbsp;of changes back and forth. If you have&nbsp;additional suggestions, please do let us know. Hope you will like the deployment feature and use it to take your webs live.<\/P>\n<P>Yugang Wang<\/P>\n<P>Microsoft Visual Web Development Team<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Publishing using MSDeploy In-Process Deployment&nbsp;or Remote Agent Through&nbsp;the Beta 2 release, VS 2010 had&nbsp;only supported publishing to servers using MSDeploy&#8217;s IIS deployment handler technology&nbsp;integrated with the&nbsp;\u201cWeb Management Service\u201d, a.k.a. WMSVC. As long as you had an account&nbsp;on&nbsp;a hosting server using WMSVC, you could use&nbsp;MSDeploy&nbsp;to&nbsp;update your web content. This is the&nbsp;msdeploy technology most people will use [&hellip;]<\/p>\n","protected":false},"author":404,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[7262,7336,7343,7323,7319,7324,7329],"class_list":["post-3094","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","tag-development","tag-msdeploy","tag-publish","tag-visual-studio-2010","tag-visual-web-developer","tag-vs10","tag-web-deployment"],"acf":[],"blog_post_summary":"<p>Publishing using MSDeploy In-Process Deployment&nbsp;or Remote Agent Through&nbsp;the Beta 2 release, VS 2010 had&nbsp;only supported publishing to servers using MSDeploy&#8217;s IIS deployment handler technology&nbsp;integrated with the&nbsp;\u201cWeb Management Service\u201d, a.k.a. WMSVC. As long as you had an account&nbsp;on&nbsp;a hosting server using WMSVC, you could use&nbsp;MSDeploy&nbsp;to&nbsp;update your web content. This is the&nbsp;msdeploy technology most people will use [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/3094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/404"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=3094"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/3094\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=3094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=3094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=3094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}