AzureFeeds - All your Azure feeds in one place.

Sponsors

Tuesday, March 23, 2010

Fixing the Silverlight Design Time in a Windows Azure Cloud Service

by Jim Nakashima - MSFT via Cloudy in Seattle on 3/23/2010 4:00:00 PM

This is a workaround for the following configuration:

  • Visual Studio 2008 (works fine on VS 2010)
  • Windows Azure Tools for Microsoft Visual Studio February 2010 Release
  • Silverlight 3 Tools for Visual Studio 2008
  • Building a Silverlight application in a Windows Azure Cloud Service

This is the issue reported in this forum thread.

To reproduce the issue:

1. Create a new Windows Azure Cloud Service project. (File | New Project)

image

2. Add a Web Role to the project, this will be the web application for the Silverlight application.

image

3. Right click on the Solution in Solution Explorer and select “Add |New Project…” Select, a Silverlight Application

image

4. Use an existing web site in the solution to host the Silverlight application.

image 

5. Open up MainPage.xaml and notice that 1. there are no controls on the Toolbox, 2. Intellisense no longer works and 3. pasting in to the XAML editor results in an “Object reference not set to an instance of an object.” error.

image

image

Fixing the issue:

1. Close Visual Studio

2. Save the attached file (Microsoft.CloudService.targets) to your local machine

3. Copy the file to:

  • C:\Program Files (x86)\MSBuild\Microsoft\Cloud Service\v1.0 (64-Bit OS)
  • C:\Program Files\MSBuild\Microsoft\Cloud Service\v1.0  (32-Bit OS)

overwriting the existing file

4. Open Visual Studio, open your Cloud Service and you’ll find you will have the controls on the Toolbox, Intellisense and you can paste in XAML without hitting the Object reference error dialog.

image

This issue will be fixed in our post February 2010 release.

email it!bookmark it!digg it!

Original Post: Fixing the Silverlight Design Time in a Windows Azure Cloud Service

Legal Note

The content of the postings is owned by the respective author. AzureFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on AzureFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us