It can be difficult to combine multiple different frameworks into the same solution while working with new technologies. This chapter will focus on how to combine Silverlight 4, Windows Azure, and a WCF 4.0 (Windows Communication Foundation) service together.
In this chapter, we will discuss the following topics:
Combining Silverlight and Windows Azure projects
Consuming an Azure-hosted WCF service within a Silverlight application
Configuring the number of web roles
Standard Silverlight applications require that they be hosted on HTML pages, so that they can be loaded in a browser. Developers who work with the .Net framework will usually host this page within an ASP.Net website.
The easiest way to host a Silverlight application on Azure is to create a single web role that contains an ASP.Net application to host the Silverlight application. Hosting the Silverlight application in this way enables...