You are browsing the archive for Web Deployment.

by Editor

Applying XDT magic to App.Config

May 18, 2010 in Articles, News, Reference

For several weeks now people have been asking to be able to use the XML Document Transform (XDT) with App.Config files similar to what is available with Web.Config files in VS 2010… In all honesty there is no official/supported  implementation of XDT for any other project type than Web Application Projects but the good news is that the basis of Web.Config Transformation resides in Web Publishing Pipeline (WPP) which are set of extensible tasks and targets hooked up to provide a great deployment story for Web Applications… Today, Ming (our senior dev on Visual Studio) and I decided to get together to give some love to App.Config file too… The below implementation is a crude way of getting XDT working into other project types within VS 2010…(read more)

by Editor

The Aspnet Compiler Build Task in Visual Studio 2010 ASP.Net MVC 2 Projects

May 14, 2010 in Articles, ASP.NET, ASP.NET MVC, MVC, News, Reference

If you crack open the project file in an ASP.Net MVC 2 application (in notepad or unload your project and then click “ Edit *.proj” ), you will notice an interesting line. <MvcBuildViews>false</MvcBuildViews> This is an option to enable a post build task that will run the Asp_net compiler. This command will compile your aspx pages and report any errors in the pages at design time. Ordinarily the compiler runs before your site loads for the first time after making a change. This is why you can debug a website or web application with errors in the markup and not see an error until actually running your site. So why is the option set to false by default? I obviously want errors at design time before I run the site! Well, if you turn…(read more)

by Editor

Hosting for ASP.NET 4.0 & Web Deploy from ORCS Web, DiscountASP, and MaximumASP

May 5, 2010 in Articles, News, Reference, VS2010

Visual Web Developer 2010 Express offers a great set of features for deploying web applications seamlessly. One of the key features is the ability to publish your web application from VS 2010 to a remote hosted web server along with its dependencies like SQL Server database using “Web One Click Publish”. VS 2010 integrates Microsoft Web Deployment Tool (MsDeploy.exe) to provide a fast, reliable and cohesive way of deploying web applications. Learn more about Visual Studio 2010 Web Deployment Features . And now that you have been introduced to Web Deployment, you may be looking for a hoster which is compatible with both the new framework (ASP.NET 4.0) and the Web Deployment features included in this release. The following web hosting providers…(read more)

by Editor

Xml Document Transforms (XDT) for any XML file in your project

May 3, 2010 in Articles, News, Reference

There have been several requests floating around to be able to use XDTs (the technology behind Web.Debug.Config/Web.Release.Config) with other XML files within the project…  To make that feasible I wrote a XmlDocumentTransform.targets   file which can generically transform any XML file using the standard Web.Config Transformation syntax introduced with VS 2010… Learn more about XDT & Web.Config Transformation here… Now to get started first download XmlDocumentTransform.targets file from my Skydive… Follow the below simple steps to get transformation working for any well formed XML file in your project… Step 1: Save the downloaded XmlDocumentTransform.targets to %ProgramFiles%\MSBuild\Microsoft\VisualStudio\v10.0\Web\XmlDocumentTransform…(read more)

by Editor

Tip #105: Did you know … How to include empty directory when package a web application?

April 29, 2010 in Articles, News, Reference

By design, Visual Studio 2010 will skip the empty directory when packaging web application project using web deploy.  To get empty directory packaged and deployed, we can work around this by adding an empty stub file inside the directory to make…(read more)

by Editor

Xml Document Transform (XDT) Snippets for VS 2010

April 27, 2010 in Articles, News, Reference, Web

During my PDC talk I had shown some of the snippets that can come handy while using Web.Config Transformations…  This post is intended to share the XDT snippets and instructions on how to install them to use them with VS 2010… Download XDT zip file from my SkyDrive Unzip the files and copy the inner XDT folder into %Program Files%\Microsoft Visual Studio 10.0\Xml\1033\Snippets After this the XDT snippets will be available for you to use within any XML file within VS 2010… To know how to use XDTs for Web.Config file please check out the post about Web.Config Transformations Few interesting points about Transforms & Locators which are worth noting to do pretty powerful stuff with your XML are: Transforms   – Transforms act on a XML…(read more)

by Editor

Tip #104: Did you know … How to view text for the ‘hint’ buttons on the Publish Web Dialog?

April 26, 2010 in Articles, News, Reference, Visual Studio

After the Beta 2 release of Visual Studio 2010, the Publish Web Dialog was modified to include two information buttons associated with the Service URL and Site/application text boxes. (See Figure 1) Figure 1 – New information (‘hint’) buttons (see circled…(read more)

by Editor

Web Deployment: Excluding Files and Folders via the Web Application’s Project File

April 22, 2010 in Articles, News, Reference

Web Deployment (see this posting for an overview) offers a set of pre-determined options to allow users to include the most common sets of files for deployment. These options are as follows and can be found under the “Items to deploy” section on the Package / Publish Web property page. Only files needed to run this application: This will include only the files required to run the application. Specifically, files to be included will be those found in the bin folder and those files whose Build Action property = Content (such as .aspx, .ascx, and .master). All files in this project: This will include all files within the project file. All files in this project folder: This will include all files in the source project folder, including those not…(read more)

by Editor

One-Click Publish – What’s New Since Beta 2

April 20, 2010 in Articles, News, Reference

Publishing using MSDeploy In-Process Deployment or Remote Agent Through the Beta 2 release, VS 2010 had only supported publishing to servers using MSDeploy's IIS deployment handler technology integrated with the “Web Management Service”, a.k.a. WMSVC. As long as you had an account on a hosting server using WMSVC, you could use MSDeploy to update your web content. This is the msdeploy technology most people will use when publishing to a hosted site and, therefore, was released first. (In case you are interested in how the server should be configured, check out the link: http://technet.microsoft.com/en-us/library/dd722796(WS.10).aspx ) In the RC release of VS 2010, We added support for two more msdeploy technologies that target specific deployment…(read more)

by Editor

Web Deployment Projects Released to Beta (WDP for VS 2010)

April 16, 2010 in Articles, News, Reference

  Our team recently released WDP for VS 2010… The key features to note for WDP for VS 2010 are: All the core features of WDP 2008 Migration from WDP 2008 to WDP 201o Multi-Targeting support in WDP 2010 Support Web Deploy Packages in the WDP project.. You can read more about the above features on our team blog at Visual Web Developer Team Blog Download WDP 2010 Beta by clicking here!! The guidance around using WDP 2010 is Use it if you want to migrate to VS 2010 and are currently using WDP for VS 2008 Use it for TeamBuild/MSBuild based deployment of Web Site Projects in VS 2010… Use them for Web Application Projects (WAPs) if you feel it is extremely important for you to pre-compile/merge your projects… If not then you can use Web Deployment…(read more)