<?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>Cloudy Developer</title>
	<atom:link href="http://www.cloudydeveloper.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cloudydeveloper.com</link>
	<description>Tips on Microsoft&#039;s Cloud and Web Tech</description>
	<lastBuildDate>Wed, 21 Nov 2012 18:13:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Working LESS with WebMatrix</title>
		<link>http://www.cloudydeveloper.com/less-and-webmatrix/</link>
		<comments>http://www.cloudydeveloper.com/less-and-webmatrix/#comments</comments>
		<pubDate>Fri, 05 Oct 2012 02:56:46 +0000</pubDate>
		<dc:creator>Mark Berryman</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[LESS]]></category>
		<category><![CDATA[WebMatrix]]></category>

		<guid isPermaLink="false">http://www.cloudydeveloper.com/?p=3651</guid>
		<description><![CDATA[I&#8217;ve been doing some CSS work recently and wanted to try out some of the newer utilities that are supposed to make managing CSS files easier. LESS is a popular one as it allows you to use variables, mixins and &#8230; <a href="http://www.cloudydeveloper.com/less-and-webmatrix/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been doing some CSS work recently and wanted to try out some of the newer utilities that are supposed to make managing CSS files easier. <a href="http://lesscss.org" target="_blank">LESS</a> is a popular one as it allows you to use variables, mixins and a few other constructs to make your CSS coding more enjoyable.</p>
<p>With the WebMatrix v2 release, support was added for working with LESS. When adding a new file to a web site, we have a LESS file template as well as syntax highlighting and intellisense in the editor. Goodness all around.</p>
<p>Knowing nothing about LESS, I went to their website to see how to set it up and of the two options listed on the Usage page, running it client-side or server-side, I chose the former because it was first in the instructions and the latter only talked about it in the context of a Node.js site and I&#8217;m using WebPages.</p>
<p>So I added my LESS file to my site, added the stylesheet link to it in my markup as well as a link to the LESS js file. Then, I started run my site and saw zero CSS styling. Using the browser tools in Chrome, I could see the client side request for the &#8220;.less&#8221; file failed. I made a direct request for the file via the browser and this returned:</p>
<p><a href="http://cloudydeveloper.blob.core.windows.net/images/2012/10/WebMatrixLess404.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="WebMatrixLess404" border="0" alt="WebMatrixLess404" src="http://cloudydeveloper.blob.core.windows.net/images/2012/10/WebMatrixLess404_thumb.png" width="997" height="361"></a></p>
<p>Bummer.</p>
<p>Fortunately, this error was descriptive enough to point me towards the culprit – a missing MIME map for the &#8220;.less&#8221; extension. Simply adding this to the IIS Express &#8220;applicationHost.config&#8221; file did the trick.</p>
<p>With this working, the other question to ask is whether or not processing the LESS file to generate CSS on the client is the best design. I haven&#8217;t thought through all of the pros/cons of this versus a server side processing approach, but my gut tells me doing this server side is probably a better choice. </p>
<p>So can we get the server-side design working? Well, with WebMatrix we&#8217;re in luck, because a nice extension has been written to automatically produce a corresponding CSS file whenever a change to a LESS file is saved, and here&#8217;s a write-up on <a href="http://www.microsoft.com/web/post/how-to-use-less-css-in-webmatrix" target="_blank">How to Use LESS CSS in WebMatrix</a> that explains this. If you&#8217;re going to be actually using LESS in your web site, this is the way to go. In this post I just wanted to point out the one roadblock you would run into if you were simply trying the client-side approach.</p>
<p>Hope this helps,<br />Mark</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudydeveloper.com/less-and-webmatrix/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Debugging Azure Worker Role Startup Issues</title>
		<link>http://www.cloudydeveloper.com/debugging-azure-worker-role-startup-issues/</link>
		<comments>http://www.cloudydeveloper.com/debugging-azure-worker-role-startup-issues/#comments</comments>
		<pubDate>Wed, 03 Oct 2012 20:22:44 +0000</pubDate>
		<dc:creator>Mark Berryman</dc:creator>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.cloudydeveloper.com/?p=3601</guid>
		<description><![CDATA[I&#8217;ve deployed a number of systems to Azure and one of the most painful experiences for me continues to be debugging role startup failures. Often, I&#8217;ve often made configuration mistakes (e.g., wrong Azure storage account credentials) which prevent my worker &#8230; <a href="http://www.cloudydeveloper.com/debugging-azure-worker-role-startup-issues/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve deployed a number of systems to Azure and one of the most painful experiences for me continues to be debugging role startup failures. Often, I&#8217;ve often made configuration mistakes (e.g., wrong Azure storage account credentials) which prevent my worker roles from successfully returning from their &#8220;OnStart()&#8221; method and this only surfaces when I deploy the system to Azure. Unfortunately, the current version of the Azure portal doesn&#8217;t offer a lot of direct help here beyond telling you that a role has failed to start. In the screenshot below, I&#8217;ve captured my worker role in the &#8220;Recycling&#8221; state which means it&#8217;s failed to start the first time and Azure is trying to restart it again.</p>
<p><a href="http://cloudydeveloper.blob.core.windows.net/images/2012/10/AzureWorkerRoleRecycling.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="AzureWorkerRoleRecycling" border="0" alt="AzureWorkerRoleRecycling" src="http://cloudydeveloper.blob.core.windows.net/images/2012/10/AzureWorkerRoleRecycling_thumb.png" width="965" height="578"></a></p>
<p>So how do we debug debug this? Poking around the web a bit yielded a number of recommendations. I could:</p>
<ol>
<li>Enable Remote Desktop for the worker role and login to the box when it was starting up to see if I could debug the issue. This seems kind of tricky for my scenario as I&#8217;d have to catch it before it exited the &#8220;OnStart()&#8221; method.
<li>I could wrap my code in the &#8220;OnStart()&#8221; method with a try/catch and log the exception to SQL Azure, Azure Table storage or write it to queue. That wouldn&#8217;t be too bad, but it does require me to update my code.
<li>I could leverage the built-in Visual Studio <a href="http://msdn.microsoft.com/en-us/library/dd264915.aspx" target="_blank">IntelliTrace feature</a> to record the execution history of my worker role and view this data all from the comfort of my local box.</li>
</ol>
<p>I&#8217;m lazy so #3 sounds like a winner to me.</p>
<p>To configure this, you right click on your Cloud Project in Solution Explorer and choose &#8220;Publish&#8221;. Then, on the Advanced Settings tab, you can &#8220;Enable IntelliTrace&#8221; and further configure settings around how much data you want to collect. When you&#8217;re done, click &#8220;Publish&#8221; and away you go.</p>
<p><a href="http://cloudydeveloper.blob.core.windows.net/images/2012/10/EnableIntellitrace.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="EnableIntellitrace" border="0" alt="EnableIntellitrace" src="http://cloudydeveloper.blob.core.windows.net/images/2012/10/EnableIntellitrace_thumb.png" width="686" height="466"></a></p>
<p>As Visual Studio goes through it&#8217;s publishing process an activity log is provided showing you the steps being executed. I&#8217;ve captured this below and though you can&#8217;t see the local time on my computer, I&#8217;ve been at that final step with the worker role being &#8220;busy&#8221; for a good while. </p>
<p><a href="http://cloudydeveloper.blob.core.windows.net/images/2012/10/WindowsAzureActivityLog.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="WindowsAzureActivityLog" border="0" alt="WindowsAzureActivityLog" src="http://cloudydeveloper.blob.core.windows.net/images/2012/10/WindowsAzureActivityLog_thumb.png" width="838" height="222"></a></p>
<p>Time to look at that IntelliTrace data!</p>
<p>Using the Server Explorer window in Visual Studio, I can now view the IntelliTrace logs by expanding the Windows Azure Compute section and locating my worker role.</p>
<p><a href="http://cloudydeveloper.blob.core.windows.net/images/2012/10/ServerExplorerViewIntellitraceLog.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="ServerExplorerViewIntellitraceLog" border="0" alt="ServerExplorerViewIntellitraceLog" src="http://cloudydeveloper.blob.core.windows.net/images/2012/10/ServerExplorerViewIntellitraceLog_thumb.png" width="470" height="298"></a></p>
<p>This triggers a download of the data to your local machine and once the download completes, Visual Studio pops open the IntelliTrace Summary in a new window. Now I can see the list of exceptions that were generated and where they occurred. </p>
<p>The screenshot below shows the dummy exception I intentionally added to cause my worker role to fail to start.</p>
<p><a href="http://cloudydeveloper.blob.core.windows.net/images/2012/10/OnStartExc.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="OnStartExc" border="0" alt="OnStartExc" src="http://cloudydeveloper.blob.core.windows.net/images/2012/10/OnStartExc_thumb.png" width="1057" height="979"></a></p>
<p>At this point, I can take things one step further by clicking the &#8220;Start Debugging&#8221; data to see the exact state of my worker role when the exception was triggered, fix up my bug and redeploy.</p>
<p>Hope this helps,</p>
<p>Mark</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudydeveloper.com/debugging-azure-worker-role-startup-issues/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Viewing Azure Blob Storage Containers</title>
		<link>http://www.cloudydeveloper.com/viewing-azure-blob-storage-containers/</link>
		<comments>http://www.cloudydeveloper.com/viewing-azure-blob-storage-containers/#comments</comments>
		<pubDate>Wed, 26 Sep 2012 22:25:00 +0000</pubDate>
		<dc:creator>Mark Berryman</dc:creator>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Azure Storage]]></category>

		<guid isPermaLink="false">http://www.cloudydeveloper.com/?p=3431</guid>
		<description><![CDATA[Each week the new Azure portal seems to provide some new piece of functionality. As I was working on integrating the new WordPress plugin for putting media assets in Azure Blob storage (see previous post), I noticed the portal has &#8230; <a href="http://www.cloudydeveloper.com/viewing-azure-blob-storage-containers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Each week the new Azure portal seems to provide some new piece of functionality. As I was working on integrating the new WordPress plugin for putting media assets in Azure Blob storage (see <a href="http://www.cloudydeveloper.com/storing-wordpress-blog-images-in-azure-cloud-storage" target="_blank">previous post</a>), I noticed the portal has been updated with UI to allow you to view your Azure Blob storage containers and blobs as well as allowing you to delete this data. I&#8217;ve been waiting for something like this for a while. Previously, the only ways I knew of for interacting with Azure Blob storage was either writing your own code or using a 3rd party app of which there are a few. Let&#8217;s quickly check out this new UI.</p>
<p>In the portal, click on the Storage section and then a storage account. You&#8217;ll see a new &#8220;Containers&#8221; menu option (circled in red in my screenshot).</p>
<p><a href="http://cloudydeveloper.blob.core.windows.net/images/2012/09/ViewContainers.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="ViewContainers" src="http://cloudydeveloper.blob.core.windows.net/images/2012/09/ViewContainers_thumb.png" alt="ViewContainers" width="963" height="653" border="0" /></a></p>
<p>&nbsp;</p>
<p>Clicking on the link will give you a list of all containers for the storage account and at the bottom of the screen a button to delete a container and all associated data.</p>
<p>You can then drill down into an individual container, look at the individual blobs in the container and delete them if desired.</p>
<p><a href="http://cloudydeveloper.blob.core.windows.net/images/2012/09/image.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://cloudydeveloper.blob.core.windows.net/images/2012/09/image_thumb.png" alt="image" width="959" height="657" border="0" /></a></p>
<p>Hopefully we&#8217;ll one day have the ability to also add containers and blobs, but for now, I&#8217;ll take what I can get.</p>
<p>Mark</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudydeveloper.com/viewing-azure-blob-storage-containers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Storing WordPress Blog Images in Azure Cloud Storage</title>
		<link>http://www.cloudydeveloper.com/storing-wordpress-blog-images-in-azure-cloud-storage/</link>
		<comments>http://www.cloudydeveloper.com/storing-wordpress-blog-images-in-azure-cloud-storage/#comments</comments>
		<pubDate>Wed, 26 Sep 2012 06:03:00 +0000</pubDate>
		<dc:creator>Mark Berryman</dc:creator>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Azure Storage]]></category>

		<guid isPermaLink="false">http://www.cloudydeveloper.com/?p=3261</guid>
		<description><![CDATA[Put your mouse over the image below, and take a look at the URL for the image. The URL is http://cloudydeveloper.blob.core.windows.net/images/2012/09/AzureHomePage.png. If you look at the domain in the URL, you&#8217;ll notice it&#8217;s not www.cloudydeveloper.com. The image is not hosted &#8230; <a href="http://www.cloudydeveloper.com/storing-wordpress-blog-images-in-azure-cloud-storage/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Put your mouse over the image below, and take a look at the URL for the image.</p>
<p><a href="http://cloudydeveloper.blob.core.windows.net/images/2012/09/AzureHomePage.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="AzureHomePage" border="0" alt="AzureHomePage" src="http://cloudydeveloper.blob.core.windows.net/images/2012/09/AzureHomePage_thumb.png" width="642" height="389"></a></p>
<p>The URL is <a href="http://cloudydeveloper.blob.core.windows.net/images/2012/09/AzureHomePage.png">http://cloudydeveloper.blob.core.windows.net/images/2012/09/AzureHomePage.png</a>. </p>
<p>If you look at the domain in the URL, you&#8217;ll notice it&#8217;s <strong>not </strong><a href="http://www.cloudydeveloper.com">www.cloudydeveloper.com</a>. The image is not hosted on the same box running this WordPress site. Instead, it&#8217;s hosted in my Azure storage account thanks to the new <a href="http://wordpress.org/extend/plugins/windows-azure-storage/" target="_blank">Windows Azure Storage for WordPress plugin</a>. This plugin allows images and videos to be stored in Azure &#8220;blob&#8221; storage which is super cheap. While I&#8217;m nowhere near hitting the storage limit for this Azure web site, I like the idea of getting larger media assets in a more suitable location and at $0.12 a GB a month, I&#8217;m not concerned about breaking the bank in the near future.</p>
<p>Here&#8217;s how I set this up:</p>
<ol>
<li>Install the plugin.</p>
<p>From the WordPress admin console, I just searched for the plugin &#8220;Windows Azure Storage for WordPress&#8221; and installed it.</p>
<p><a href="http://cloudydeveloper.blob.core.windows.net/images/2012/10/SearchForAzureWordPressStoragePlugin.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="SearchForAzureWordPressStoragePlugin" border="0" alt="SearchForAzureWordPressStoragePlugin" src="http://cloudydeveloper.blob.core.windows.net/images/2012/10/SearchForAzureWordPressStoragePlugin_thumb.png" width="959" height="555"></a><br /> 
<li>Configure the plugin.</p>
<p>In the settings tab of the WordPress admin console, click on &#8220;Windows Azure&#8221;. You&#8217;ll first need to create an Azure storage account to hold your media assets and have the name of the storage account and access key handy. In the screenshot below, I&#8217;ve already set this up and created a &#8220;container&#8221;, which is like a folder for storing blobs, named &#8220;images&#8221;, but if I hadn&#8217;t already done this, you&#8217;d see the ability to create a new container from this screen.</p>
<p><a href="http://cloudydeveloper.blob.core.windows.net/images/2012/09/WordPressAzureStorage.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="WordPressAzureStorage" border="0" alt="WordPressAzureStorage" src="http://cloudydeveloper.blob.core.windows.net/images/2012/09/WordPressAzureStorage_thumb.png" width="962" height="686"></a><br /> 
<li>Enable XML-RPC publishing in WordPress.</p>
<p>Again, in the WordPress admin console, go to Settings –&gt; Writing and enable this.</p>
<p><a href="http://cloudydeveloper.blob.core.windows.net/images/2012/09/XmlRpcSetting.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="XmlRpcSetting" border="0" alt="XmlRpcSetting" src="http://cloudydeveloper.blob.core.windows.net/images/2012/09/XmlRpcSetting_thumb.png" width="962" height="907"></a></li>
</ol>
<p>And that&#8217;s it. </p>
<p>I use <a href="http://www.microsoft.com/en-us/download/details.aspx?id=8621" target="_blank">Windows Live Writer</a> to create my blog posts and I just include images just like I did before and on publish, the plugin uploads the images to my Azure storage account and generates the correct URL. No extra work needed on my part. Awesome.</p>
<p>Mark</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudydeveloper.com/storing-wordpress-blog-images-in-azure-cloud-storage/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Azure Web Sites With Custom Domains for Ten Bucks a Month</title>
		<link>http://www.cloudydeveloper.com/azure-web-sites-with-custom-domains-for-ten-bucks-a-month/</link>
		<comments>http://www.cloudydeveloper.com/azure-web-sites-with-custom-domains-for-ten-bucks-a-month/#comments</comments>
		<pubDate>Sun, 23 Sep 2012 04:38:54 +0000</pubDate>
		<dc:creator>Mark Berryman</dc:creator>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Domains]]></category>

		<guid isPermaLink="false">http://www.cloudydeveloper.com/?p=3151</guid>
		<description><![CDATA[Some recent improvements to Azure have made it possible to host a web site with a custom domain for just under ten bucks a month. This is a big improvement over the previous options of either staying with the &#8220;Free&#8221; &#8230; <a href="http://www.cloudydeveloper.com/azure-web-sites-with-custom-domains-for-ten-bucks-a-month/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Some recent improvements to Azure have made it possible to host a web site with a custom domain for just under ten bucks a month. This is a big improvement over the previous options of either staying with the &#8220;Free&#8221; web site mode and this sub-optimal <a href="http://www.cloudydeveloper.com/custom-domains-for-windows-azure-web-sites-using-domain-masking/" target="_blank">domain masking trick</a> or moving to the more expensive &#8220;Reserved&#8221; web site mode. There&#8217;s now a new web site mode called &#8220;Shared&#8221; and this level allows you to map your custom domain name (including a naked domain) to your Azure web site.</p>
<p>Here&#8217;s the updated Azure portal UI with the new &#8220;Web Site Mode&#8221;:</p>
<p><a href="http://cloudydeveloper.blob.core.windows.net/images/2012/09/SharedMode.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="SharedMode" border="0" alt="SharedMode" src="http://cloudydeveloper.blob.core.windows.net/images/2012/09/SharedMode_thumb.png" width="673" height="613"></a></p>
<p>I&#8217;m currently configured to use the &#8220;Reserved&#8221; mode but you can see the new &#8220;Shared&#8221; mode in the middle and details about the mode in the pop-out.</p>
<p>I won&#8217;t walk through the details of setting this up as the necessary steps are well outlined in the following posts:</p>
<ul>
<li><a href="http://weblogs.asp.net/scottgu/archive/2012/09/17/announcing-great-improvements-to-windows-azure-web-sites.aspx" target="_blank">Configuring the new &#8220;Shared&#8221; hosting option</a>
<li><a href="https://www.windowsazure.com/en-us/develop/net/common-tasks/custom-dns-web-site/" target="_blank">Configuring a custom domain for a Windows Azure web site</a></li>
</ul>
<p>Hope this helps,</p>
<p>Mark</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudydeveloper.com/azure-web-sites-with-custom-domains-for-ten-bucks-a-month/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Azure Git Publishing&#8211;Mind Your File&#8217;s Build Action</title>
		<link>http://www.cloudydeveloper.com/azure-git-publishingmind-your-files-build-action/</link>
		<comments>http://www.cloudydeveloper.com/azure-git-publishingmind-your-files-build-action/#comments</comments>
		<pubDate>Fri, 21 Sep 2012 04:55:18 +0000</pubDate>
		<dc:creator>Mark Berryman</dc:creator>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.cloudydeveloper.com/?p=2791</guid>
		<description><![CDATA[I have a small web site running in Azure for coordinating a camping trip for my daughter&#8217;s school. Publishing the site to Azure is done via the handy Git publishing feature which I covered in this previous post (look towards &#8230; <a href="http://www.cloudydeveloper.com/azure-git-publishingmind-your-files-build-action/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have a small web site running in Azure for coordinating a camping trip for my daughter&#8217;s school. Publishing the site to Azure is done via the handy Git publishing feature which I covered in this <a href="http://www.cloudydeveloper.com/?p=1641">previous post</a> (look towards the end). Today, I wanted to add a Word document to the site that folks could download to register for the camping trip. On my local box, I opened up the site (it&#8217;s an MVC app) and dropped the Word doc in a folder under the site root. </p>
<p><a href="http://www.cloudydeveloper.com/wp-content/uploads/2012/09/FileAdd9.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="FileAdd" border="0" alt="FileAdd" src="http://www.cloudydeveloper.com/wp-content/uploads/2012/09/FileAdd_thumb.png" width="356" height="373"></a></p>
<p>Next, I committed the file to Git and then a &#8220;git push&#8221; to send the files to Azure. The deployment was built successfully on Azure and my site was re-deployed. Easy peasy.</p>
<p>I hit the site in my browser, typed in the link to the Word document and was sadly greeted by a 404.</p>
<p><a href="http://www.cloudydeveloper.com/wp-content/uploads/2012/09/404.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="404" border="0" alt="404" src="http://www.cloudydeveloper.com/wp-content/uploads/2012/09/404_thumb.png" width="841" height="315"></a></p>
<p>Being logical, I assumed the 404 was correct and the file didn&#8217;t exist so I FTP&#8217;d to my account to look at what Azure had on disk. Sure enough, the file wasn&#8217;t there. </p>
<p>Huh? </p>
<p>I double checked Git to ensure the file had been committed properly, pushed to Azure once more and received the same result. No Word doc in Azure.</p>
<p>This type of problem gives me pause. I had to take a step back and think about what was actually happening with each step of the process.</p>
<ul>
<li>File in local site – check.
<li>File committed to Git – check.
<li>Git push successful – check.
<li>Project built successfully on Azure – check.</li>
</ul>
<p>Looking at these steps, in only the last one that I didn&#8217;t have full control over so I started my investigation there and it dawned on me &#8211; not all content in a site is actually &#8220;output&#8221; during build. </p>
<p>This led me to look a the properties for the Word doc and lo and behold, I had:</p>
<p><a href="http://www.cloudydeveloper.com/wp-content/uploads/2012/09/NoCopy.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="NoCopy" border="0" alt="NoCopy" src="http://www.cloudydeveloper.com/wp-content/uploads/2012/09/NoCopy_thumb.png" width="370" height="245"></a></p>
<p>&#8220;Build Action&#8221; was set to &#8220;None&#8221; so my Word document was never &#8220;output&#8221; when the project was built. You can read the meaning of each &#8220;Build Action&#8221; value on this <a href="http://msdn.microsoft.com/en-us/library/0c6xyb66.aspx">MSDN File Properties page</a>. The relevant info is:</p>
<ul>
<li><em><strong>None</strong> &#8211; The file is not included in the project output group and is not compiled in the build process. An example is a text file that contains documentation, such as a Readme file.</em>
<li><em><strong>Content </strong>- The file is not compiled, but is included in the Content output group. For example, this setting is the default value for an .htm or other kind of Web file.</em></li>
</ul>
<p>Simply changing it from &#8220;None&#8221; to &#8220;Content&#8221; did the trick. I checked in the change to Git, published one last time and there was my Word document.</p>
<p>I went through this process using Visual Studio 2010. Fortunately, in Visual Studio 20120, we&#8217;ve changed the default &#8220;Build Action&#8221; to &#8220;Content&#8221; for file types not recognized as being web specific. Hat tip to teammate <a href="http://blogs.msdn.com/b/jamlew/" target="_blank">Jimmy Lewis</a> for pointing this out.</p>
<p>Quick side note – if Git publishing to Azure is your thing, be sure to check out recent improvements with publishing hooks for CodePlex and GitHub. As usual, Scott Guthrie has a <a href="http://weblogs.asp.net/scottgu/archive/2012/09/17/announcing-great-improvements-to-windows-azure-web-sites.aspx">nice blog post</a> describing these recent improvements.</p>
<p>Hope this help someone avoid a bit of headache in the future.</p>
<p>Mark</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudydeveloper.com/azure-git-publishingmind-your-files-build-action/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JavaScript Intellisense in WebMatrix v2</title>
		<link>http://www.cloudydeveloper.com/javascript-intellisense-in-webmatrix-v2/</link>
		<comments>http://www.cloudydeveloper.com/javascript-intellisense-in-webmatrix-v2/#comments</comments>
		<pubDate>Tue, 14 Aug 2012 17:26:01 +0000</pubDate>
		<dc:creator>Mark Berryman</dc:creator>
				<category><![CDATA[Intellisense]]></category>
		<category><![CDATA[WebMatrix]]></category>

		<guid isPermaLink="false">http://www.cloudydeveloper.com/?p=2401</guid>
		<description><![CDATA[While editing some JavaScript in WebMatrix today, I made a simple typing mistake which led to a JavaScript runtime error. I was using KnockOut and typed: ko.obsevable(accountName); Notice that I misspelled “observable”. I didn&#8217;t realize my error until I ran &#8230; <a href="http://www.cloudydeveloper.com/javascript-intellisense-in-webmatrix-v2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While editing some JavaScript in WebMatrix today, I made a simple typing mistake which led to a JavaScript runtime error. I was using <a href="http://knockoutjs.com/">KnockOut</a> and typed:</p>
<p><font face="Consolas">ko.obsevable(accountName);</font></p>
<p>Notice that I misspelled “observable”. I didn&#8217;t realize my error until I ran the site. Using the developer tools in the browser, I could see my typo. I started to correct this and then it struck me &#8211; why didn&#8217;t intellisense save me from this mistake? Simply put, I didn&#8217;t have the right headers at the top of my file to invoke it.</p>
<p>By simply adding:</p>
<p><font face="Consolas">/// &lt;reference path=&#8221;../Scripts/knockout-2.1.0.js&#8221; /&gt; </font></p>
<p>Typing &#8220;<font face="Consolas">ko.ob</font>&#8220;, now returns:</p>
<p><a href="http://www.cloudydeveloper.com/wp-content/uploads/2012/08/image4.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.cloudydeveloper.com/wp-content/uploads/2012/08/image_thumb4.png" width="799" height="551"></a></p>
<p>Quick gotcha &#8211; after adding the reference to the script, I had to <strong><u>close and re-open</u></strong> the file in WebMatrix.</p>
<p>I&#8217;ve seen some folks mention on StackOverflow that instead of the attribute name &#8220;<font face="Consolas">path</font>”, they had to use &#8220;file&#8221;, but both of these seem to work for me.</p>
<p>Looking at your scripts folder, you might notice some files which include &#8220;<font face="Consolas">vsdoc</font>&#8221; in their name. These are special files which contain additional intellisense information. We have one for jQuery and we get much richer intellisense for that script. </p>
<p>For example, after typing &#8220;<font face="Consolas">$(</font>&#8220;:</p>
<p><a href="http://www.cloudydeveloper.com/wp-content/uploads/2012/08/jQueryVsDoc.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="jQueryVsDoc" border="0" alt="jQueryVsDoc" src="http://www.cloudydeveloper.com/wp-content/uploads/2012/08/jQueryVsDoc_thumb.png" width="800" height="552"></a></p>
<p>Notice that we get a lot of additional info around the API. If you crack open the &#8220;<font face="Consolas">jquery-1.7.2-vsdoc.js</font>&#8221; file, you&#8217;ll see all of this additional content listed.</p>
<p>So in short, it&#8217;s trivial to get some basic intellisense functionality for JavaScript in WebMatrix if you add the right references to the top of your files. If for some reason this doesn&#8217;t work for you, double check that the path reference is correct. That&#8217;s another common mistake I&#8217;ve made.</p>
<p>Hope this helps,</p>
<p>Mark</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudydeveloper.com/javascript-intellisense-in-webmatrix-v2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Domains For Windows Azure Web Sites Using Domain Masking</title>
		<link>http://www.cloudydeveloper.com/custom-domains-for-windows-azure-web-sites-using-domain-masking/</link>
		<comments>http://www.cloudydeveloper.com/custom-domains-for-windows-azure-web-sites-using-domain-masking/#comments</comments>
		<pubDate>Thu, 09 Aug 2012 14:38:56 +0000</pubDate>
		<dc:creator>Mark Berryman</dc:creator>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Domains]]></category>

		<guid isPermaLink="false">http://www.cloudydeveloper.com/?p=2301</guid>
		<description><![CDATA[If you read the Azure documentation on Configuring a Custom Domain Name for a Windows Azure Web Site, it describes configuring a custom domain for a Windows Azure Web Site using a CNAME record with your domain registrar. You’ll also &#8230; <a href="http://www.cloudydeveloper.com/custom-domains-for-windows-azure-web-sites-using-domain-masking/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you read the Azure documentation on <a href="https://www.windowsazure.com/en-us/develop/net/common-tasks/custom-dns-web-site/" target="_blank">Configuring a Custom Domain Name for a Windows Azure Web Site</a>, it describes configuring a custom domain for a Windows Azure Web Site using a <a href="http://en.wikipedia.org/wiki/CNAME_record">CNAME record</a> with your domain registrar. You’ll also read that to do this, your web site has to run on a “Reserved Instance” as opposed to a “Shared Instance”. But, there’s also a way to get a custom domain mapped to your web site while staying with a “Shared Instance”.</p>
<p>The technique is to use <a href="http://en.wikipedia.org/wiki/Domain_Masking" target="_blank">Domain Masking</a>. I’ve seen it also called URL Frames, URL masking and URL cloaking. It depends on your domain registrar. Regardless, the trick is for the browser to use a URL redirect in conjunction with a frame to load a web site while preserving the custom domain name in the address bar. This isn’t as clean as using a CNAME record which avoids the redirect and doesn’t use a frame, but it’s a simple alternative that might meet your needs.</p>
<p>You can see this in action if you visit <a href="http://bushschooladventure.com">bushschooladventure.com</a>. A request to the web site causes a browser redirect to <a href="http://bushschooladventure.azurewebsites.net">bushschooladventure.azurewebsites.net</a> which is where the site is actually hosted.</p>
<p>Here’s the network trace for the request in Fiddler:</p>
<p><a href="http://www.cloudydeveloper.com/wp-content/uploads/2012/08/image.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://www.cloudydeveloper.com/wp-content/uploads/2012/08/image_thumb.png" alt="image" width="656" height="194" border="0" /></a></p>
<p>Notice that request #2 results in an HTTP 302. That’s the browser redirect from “bushschooladventure.com” to “bushschooladventure.azurewebsites.net”. Looking at the URL address in the browser though, it still says “bushschooladventure.com” which is perfect. If I had used a plain URL redirect, the address bar would have shown “bushschooladventure.azurewebsites.net” which is undesirable.</p>
<p><a href="http://www.cloudydeveloper.com/wp-content/uploads/2012/08/image1.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://www.cloudydeveloper.com/wp-content/uploads/2012/08/image_thumb1.png" alt="image" width="851" height="584" border="0" /></a></p>
<p>Looking at the page source, we can see a <span style="color: #4c4c4c;">&lt;frameset&gt;</span> being used:</p>
<p><span style="color: #000000; font-family: Consolas;">&lt;frameset&gt;</span></p>
<p><span style="color: #000000;"><span style="font-family: Consolas;">    &lt;frame src=&#8221;</span><span style="font-family: Consolas;">http://bushschooladventure.azurewebsites.net</span><span style="font-family: Consolas;">&#8220;&gt;</span><span style="font-family: Consolas;">&lt;/frame&gt;</span></span></p>
<p><span style="color: #000000; font-family: Consolas;">&lt;/frameset&gt;</span></p>
<p>To configure this with my domain registrar, <a href="http://www.namecheap.com">Namecheap</a>, I set the following hostname records for a “URL Frame”. GoDaddy calls it domain masking.</p>
<p><a href="http://www.cloudydeveloper.com/wp-content/uploads/2012/08/image2.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://www.cloudydeveloper.com/wp-content/uploads/2012/08/image_thumb2.png" alt="image" width="755" height="171" border="0" /></a></p>
<p>You can’t see the full URL in the text boxes there, but I assure you that it points to “bushschooladventure.azurewebsites.net”.</p>
<p>And that’s it! A custom domain name for my Windows Azure Web Site without running the site on a reserved instance machine.</p>
<p>Hope this helps,<br />
Mark</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudydeveloper.com/custom-domains-for-windows-azure-web-sites-using-domain-masking/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Don’t Forget the CDN</title>
		<link>http://www.cloudydeveloper.com/dont-forget-the-cdn/</link>
		<comments>http://www.cloudydeveloper.com/dont-forget-the-cdn/#comments</comments>
		<pubDate>Mon, 30 Jul 2012 20:34:19 +0000</pubDate>
		<dc:creator>Mark Berryman</dc:creator>
				<category><![CDATA[CDN]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[HTTPS]]></category>

		<guid isPermaLink="false">http://www.cloudydeveloper.com/?p=2221</guid>
		<description><![CDATA[If you’re not already using Content Delivery Networks (CDNs), you should be. They’re a convenient resource that reduce the load on your web site and can improve your users’ browser experience. While working on a side project the other day, &#8230; <a href="http://www.cloudydeveloper.com/dont-forget-the-cdn/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you’re not already using <a href="http://en.wikipedia.org/wiki/Content_delivery_network" target="_blank">Content Delivery Networks</a> (CDNs), you should be. They’re a convenient resource that reduce the load on your web site and can improve your users’ browser experience. While working on a side project the other day, I realized I had deployed the site to production without updating some of my resource references to use a CDN. I was instead serving a number of them from the local machine, and there’s no need to do that. CDNs provide common resources (e.g., jQuery) free and quickly. </p>
<p>As I was fixing up my references, I decided to do more research on CDNs, and I learned some interesting points that I wanted to share. First though, let me cover the basics.</p>
<h2><u>CDN Basics</u></h2>
<p>A CDN usually hosts a common file used by many applications. In the web world, scripts like jQuery are a great example of this. There’s no need for an application to pull this script from the local web server. Instead, they can point at <a href="http://www.asp.net/ajaxlibrary/cdn.ashx" target="_blank">Microsoft’s CDN</a> and the browser will download the script from there. The Microsoft CDN hosts a number of resources beyond the base jQuery script. You can pick up jQuery UI, jQuery validation, jQuery Mobile and many others.</p>
<p>Here’s an example comparing a local versus a CDN script reference (<font color="#800000">please read the final point in this post about the “http” gotcha</font>):</p>
<p><a href="http://www.cloudydeveloper.com/wp-content/uploads/2012/07/image34.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.cloudydeveloper.com/wp-content/uploads/2012/07/image_thumb33.png" width="793" height="142"></a></p>
<p>One obvious advantages here is that I’m not using network bandwidth for my site to send down the script. It’s also likely that the CDN is able to serve up the script faster. After doing some research though, I learned a few less obvious advantages, downsides and tips that I thought were worth sharing.</p>
<p>&nbsp;</p>
<h2><u>Less Obvious CDN Advantages</u></h2>
<h4>Cross-site caching</h4>
<p>Imagine you’re visiting a number of different web sites and they all use the same version of jQuery, but they all host the jQuery script locally. Each time your browser requests a page from one of the sites, it downloads a copy of jQuery. If instead each of these sites pointed to the same CDN for the jQuery script, the browser would only download it once for the first site visited. When you visited the second site, the browser would see the need to download jQuery from the CDN, but we’d get a browser cache-hit for the script and nothing would be downloaded again.</p>
<p>Below is some HTTP traffic captured with Fiddler for requests made to two different web sites. Both sites have a reference to the jQuery script stored on Microsoft’s CDN. Notice that the first request for this script (request #10) resulted in a download of the script and an HTTP 200 response. The second request for the script (request #70) was to a different web site but didn’t require re-downloading the script. The browser made a request for it and the server (the CDN) responded with an HTTP 304 indicating the script contents have not been modified.</p>
<p><a href="http://www.cloudydeveloper.com/wp-content/uploads/2012/07/image35.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.cloudydeveloper.com/wp-content/uploads/2012/07/image_thumb34.png" width="639" height="189"></a></p>
<p>This is the cross-site caching effect. As more web sites reference a CDN for common resources, the chance of the client’s browser getting a cache hit when requesting such scripts goes up.</p>
<h4>Increased browser request parallelism</h4>
<p>Internet Explorer has settings which restrict the number of outstanding requests to a single web server and I’m sure the other browsers have similar restrictions. This <a href="http://support.microsoft.com/kb/282402" target="_blank">Microsoft KB article</a> talks about how to tweak this setting for IE.</p>
<p>Having resources pulled from a CDN means the browser is making requests to a <strong><u>different</u></strong> server than the one serving up the original web page so these requests don’t count against this “max connections per server” browser setting.<br />&nbsp;</p>
<h2><u>Potential Downsides to CDNs</u></h2>
<p>I knew there had to be a few downsides to using CDNs. Here are a couple of them that I found interesting.</p>
<ol>
<li>What if the browser can’t reach the CDN? Like any other server, it’s possible that it could go down although I’d argue that it’s more likely your web server will go down than one of the major CDN’s.
<li>There might be some additional engineering cost to tweak your resource references on deployment to convert from locally referencing files to referencing the CDN. You could avoid this by also targeting a CDN when doing development, but that will likely be slower than having the script loaded from your local machine.
<li>The version of the resource you’re referencing is dropped from the CDN. This is always possible although I’m betting a good CDN would keep a long history of past versions of files. Still, you probably want to pay some attention to this so that you’re not caught off guard.<br /> 
<li>When working with an <strong><u>Intranet</u></strong> based site, hitting a CDN might be slower than the local machine since it’s likely to be physically closer to the machine making the web request. </li>
</ol>
<p>&nbsp;</p>
<h2><u>The HTTP/S Reference Gotcha</u></h2>
<p>This issue was completely new to me. In most of the examples I’ve seen where folks show updating their resource references to CDNs (including the one at the beginning of this post), they precede the reference with “http”. </p>
<p>There’s a problem with this. If the resource is referenced in a page that’s downloaded securely via “http<strong><font color="#ff0000">s</font></strong>”, the browser will generate a warning and will not download the resource from the CDN because it’s not specified using “https” as well. </p>
<p>Here’s what happens when such a page is requested in Chrome:</p>
<p><a href="http://www.cloudydeveloper.com/wp-content/uploads/2012/07/HttpsRequest.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="HttpsRequest" border="0" alt="HttpsRequest" src="http://www.cloudydeveloper.com/wp-content/uploads/2012/07/HttpsRequest_thumb.png" width="854" height="602"></a></p>
<p>Notice the warning at the top of the page and the recommended action. If the user decides to not load the content, your site could break if it depends on the resource that doesn’t get loaded.</p>
<p>A quick fix might be to always download CDN resources via “https”, but that’s overkill as you might have other pages in your site that use the same resource yet those pages are meant to be requested with a standard “http” connection. In such cases, we wouldn’t want to incur the browser overhead of making an “https” connection to the CDN when it’s not needed.</p>
<p>Fortunately, there’s a simple trick to have the CDN resource downloaded via “http” or “https” depending on how the referencing page was requested. Just trim off the leading “http:” or “https:”.</p>
<p><a href="http://www.cloudydeveloper.com/wp-content/uploads/2012/07/TrimmedHttp.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="TrimmedHttp" border="0" alt="TrimmedHttp" src="http://www.cloudydeveloper.com/wp-content/uploads/2012/07/TrimmedHttp_thumb.png" width="735" height="59"></a></p>
<p>When processing this script reference, the browser will automatically prepend it with either “http” or “https” depending on the method used to request the referencing page.</p>
<p>&nbsp;</p>
<p>Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudydeveloper.com/dont-forget-the-cdn/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Connecting to a SQL LocalDb instance</title>
		<link>http://www.cloudydeveloper.com/connecting-to-a-sql-localdb-instance/</link>
		<comments>http://www.cloudydeveloper.com/connecting-to-a-sql-localdb-instance/#comments</comments>
		<pubDate>Thu, 26 Jul 2012 20:32:05 +0000</pubDate>
		<dc:creator>Jim Wang</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.cloudydeveloper.com/?p=2091</guid>
		<description><![CDATA[If you haven’t heard, one of the things that is new in Visual Studio 2012 is a new version of SQL Express for local development. So when you are editing a SQL script and you need to connect to a &#8230; <a href="http://www.cloudydeveloper.com/connecting-to-a-sql-localdb-instance/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you haven’t heard, one of the things that is new in Visual Studio 2012 is a new version of SQL Express for local development. So when you are editing a SQL script and you need to connect to a server, the server name is no longer .SQLEXPRESS. This means that if you’re working in a .sql file and you’re prompted to enter a server name to connect to, you might be stuck.</p>
<p><a href="http://www.cloudydeveloper.com/wp-content/uploads/2012/07/image33.png"><img style="background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;" title="image" src="http://www.cloudydeveloper.com/wp-content/uploads/2012/07/image_thumb32.png" alt="image" width="483" height="357" border="0" /></a></p>
<p>I wasn’t able to quickly find this information out with a web search, so here it is once and for all:</p>
<p><strong><span style="font-size: small;">(localdb)\v11.0</span></strong></p>
<p>Happy developing <img src='http://www.cloudydeveloper.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudydeveloper.com/connecting-to-a-sql-localdb-instance/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
