This article will give a pictorial
representation of how a Silverlight application can be hosted and debugged on
local development fabric of Windows azure.
Now a Silverlight application
can be hosted in a Web Role. And on local development fabric application can be
debugged also. Step 1
Add .XAP as MIME type to
IIS. To open IIS, click on Start button. After that open Run prompt and type
selecting MIME type from left top corner, select Open Feature from Action
opening Open Feature from the Action tab select Add
add the MIME type. Step
Create Azure service.
Select File -> New ->
Cloud Services ->Windows Azure Cloud Service.
that select ASP.Net Web Role and click on arrow button. Step
Add a Silverlight application. Right click on solution then
select Add New Projects and select Silverlight application from Silverlight
the Silverlight application in existing Web Role.
sure checkbox for Silverlight debugging is enabled is checked.
Silverlight .aspx page as start page. Select aspx page from WebRole1
Add some code in XAML. I am adding a button on Silverlight
page and on click event of button , I will display a message in messagebox in
public partial class MainPage : UserControl
private void myButton_Click(object sender, RoutedEventArgs e)
MessageBox.Show("I am Debugging Silverlight in Azure ");
Debugging Silverlight from Azure. Just put a breakpoint in c#
code and you would able to debug the Silverlight application hosted in
Silverlight application is in debugging mode. Conclusion
In this article, I discussed how to host and debug a
Silverlight application in Windows azure. Thanks for reading!