SQL Azure connection string

Use this connection string to connect to SQL Azure database

<add name=”DatabaseEntities” connectionString=”metadata=res://*/Database.csdl|res://*/Database.ssdl|res://*/Database.msl;provider=System.Data.SqlClient;provider connection string=&quot;Server=tcp:[serverName].database.windows.net;Database=[myDataBase];User ID=[LoginForDb]@[serverName];Password=[myPassword];Trusted_Connection=False;Encrypt=True;&quot;” providerName=”System.Data.EntityClient” />

How to locate resources in WinRT Metro App

MS invented another URI format for WinRT resources. For example, to set the Image.Source attribute on WinRT Metro App follow this steps:

  1. Define a new Image
  2. Add the Source attribute in the code behind
Image image = new Image();
image.Source = new BitmapImage(new Uri("ms-resource://MyAssembly/.../image.png", UriKind.ReletiveOrAbsolute));

You’ve to add the path above to locate the resouce in WinRT Metro App.

Setting up the MS.NET Enterprise Environment for Application Development

A new machine configuration for Microsoft development software.


  1. Install Visual Studio 2010 from DVD
  2. Install Team Explorer (.iso) from http://www.microsoft.com/download/en/details.aspx?id=329
  3. Install Visual Studio 2010 SP1 from http://www.microsoft.com/download/en/details.aspx?id=23691


  1. Install Microsoft SQL Server 2008 R2 RTM – Express with Management Tools from http://www.microsoft.com/download/en/details.aspx?id=23650
  2. Install Microsoft® SQL Server® 2008 R2 Service Pack 1 from http://www.microsoft.com/download/en/details.aspx?id=26727
  3. Otherwise (1-2) you can download and install these products separately:

Windows Phone

  1. Install Windows Phone SDK (actual SDK 7.1) from http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=27570
  2. Verify and install Windows Phone Developer Tool Update from http://www.microsoft.com/download/en/details.aspx?id=23854


  1. Install the latest version of Silverlight SDK (check Microsoft’s Web Site – actual version 5.0.x)
  2. Install Silverlight Toolkit based on last installed version
  3. Install Silverlight for Windows Phone Toolkit (actual release september 2010) from http://silverlight.codeplex.com/releases/view/52297


  1. Install Microsoft Kinetic SDK (Beta version) from http://research.microsoft.com/en-us/um/redmond/projects/kinectsdk/download.aspx


  1. Install Windows Azure SDK e VSCloudService (actual version 1.4) from http://www.microsoft.com/download/en/details.aspx?id=15658
  2. Otherwise (1) you can download and install Windows Azure SDK All-in-one (actual september 2010) from http://www.microsoft.com/windowsazure/sdk/

Microsoft Web Platform

You can complete your installations with the Microsoft Web Platform availabe at http://www.microsoft.com/web/downloads/platform.aspx

Visit Microsoft’s web site for latest updates

How to install Windows 8 Developer Preview

Download the Windows 8 Developer Preview from the follow link http://msdn.microsoft.com/en-us/windows/apps/br229516. Choose your version.

Download and install Oracle VirtualBox.

  1. Launch VirtualBox and create a New virtual machine (VM).
  2. Create a new VM with Windows 8 Developer Preview OS. Next
  3. Select at least half the RAM on your machine. Next
  4. Create a new Hard Drive. Next
  5. Select VDI (VirtualBox Disk Image). Next
  6. Select Dynamically Allocated. Next
  7. Set the position and the size (a minimum of 80GB is required) of the Virtual Drive. Next
  8. Create.
  9. A new empty Virtual Machine was created.

To install the relative OS load the .iso image on a virtual optical device in the guest machine.

  1. Open VirtualBox and launch the Virtual Machine created before
  2. Follow the procedure of the first start
  3. Choose the installation support (the virtual optical device where you loaded the .iso image
  4. Wait until the OS installation is finished

For developers:

After Windows 8 installation, launch the new OS and download Microsoft® Visual Studio® 11 Developer Preview (Web installer) from http://www.microsoft.com/download/en/details.aspx?id=27543