<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bill Lodin &#187; web applications</title>
	<atom:link href="http://blogs.itmentors.com/bill/tag/web-applications/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.itmentors.com/bill</link>
	<description></description>
	<lastBuildDate>Tue, 11 Jan 2011 22:46:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Migrating Web Applications to Windows Azure</title>
		<link>http://blogs.itmentors.com/bill/2009/10/30/migrating-web-applications-to-windows-azure/</link>
		<comments>http://blogs.itmentors.com/bill/2009/10/30/migrating-web-applications-to-windows-azure/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 22:16:25 +0000</pubDate>
		<dc:creator>bill</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Windows Azure]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[web applications]]></category>
		<category><![CDATA[web role]]></category>

		<guid isPermaLink="false">http://blogs.itmentors.com/bill/?p=50</guid>
		<description><![CDATA[With the release of Windows Azure only a few weeks away, it is likely that more and more developers are going to want to move their existing Web applications into the cloud. Fortunately, Microsoft has made it very easy to do so and a big part of that is the decision to make Azure Web Roles [...]]]></description>
			<content:encoded><![CDATA[<p>With the release of Windows Azure only a few weeks away, it is likely that more and more developers are going to want to move their existing Web applications into the cloud. Fortunately, Microsoft has made it very easy to do so and a big part of that is the decision to make Azure Web Roles look (and behave) so much like ASP.NET Web Applications.</p>
<p>Really, a Web Role project and a Web Application project are identical, with one very minor exception: by default, Web Role projects contain a reference to the <em>Microsoft.ServiceHosting.ServiceRuntime</em> assembly and Web Application projects do not:</p>
<div id="attachment_53" class="wp-caption alignnone" style="width: 667px"><img class="size-full wp-image-53" src="http://blogs.itmentors.com/bill/files/2009/10/roleVSapp.png" alt="The ONLY difference between a Web Role project and a Web Application project" width="657" height="428" /><p class="wp-caption-text">The ONLY difference between a Web Role project and a Web Application project</p></div>
<p>Because Web Roles and Web Applications are architecturally identical, you can easily add an existing Web application to a Windows Azure application… It’s a two step process; first, add the Web Application project to your cloud solution:</p>
<div id="attachment_51" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-51" src="http://blogs.itmentors.com/bill/files/2009/10/addWebApp-300x163.png" alt="Adding a new Web Application project to an existing Cloud Service" width="300" height="163" /><p class="wp-caption-text">Adding a new Web Application project to an existing Cloud Service</p></div>
<p>Second, add the project as a Web Role by right-clicking “Roles” in Solution Explorer and selecting Add &gt; Web Role Project in solution…</p>
<div id="attachment_52" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-52" src="http://blogs.itmentors.com/bill/files/2009/10/addWebRole-300x167.png" alt="Adding an existing Web Role project in solutions" width="300" height="167" /><p class="wp-caption-text">Adding an existing Web Role project in solutions</p></div>
<p>Your original Web Application project is now part of your Windows Azure application! To make it identical to a Web Role created “from scratch,” simply add a reference to <em>Microsoft.ServiceHosting.ServiceRuntime</em>, which you can find in the Windows Azure SDK (the default location in most cases will be <strong>C:\Program Files\Windows Azure SDK\v1.0\ref\Microsoft.ServiceHosting.ServiceRuntime.dll</strong>.)</p>
<p>One more thing – when you add an existing application to a Visual Studio solution, it just creates a pointer to the original .csproj/.vbproj file from your solution – in other words, make sure you create a backup copy of your original Web Application before you move it into the cloud!</p>
<p>That’s the easy part of migration – however, it can get more complicated and more challenging if your application relies on data storage, services, client-side code or 3rd party libraries. I’ll be posting some short articles on how to deal with these various scenarios in the coming days and weeks.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.itmentors.com/bill/2009/10/30/migrating-web-applications-to-windows-azure/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

