In this article we will learn:
- How to create Silverlight applications
- How to create simple WCF services
- How to deploy solutions on Arvixe
To work with Silverlight 4 in Visual Studio 2010, you will need to download and install Silverlight Tools 4
Open Visual Studio and create a Silverlight Application
The New Project wizard prompts you to create our site for Silverlight applications
Create Simple WCF Services
Right click on Web project and select the “Add -> New Item…” menu
public interface IDateTimeService
public class DateTimeService : IDateTimeService
Click Add Service Reference next:
In the “Add Service Reference” dialog window, press “Discover” button and select service.
public partial class MainPage : UserControl
The coding is now over. Press F5 to run solution.
Publish the Web project to file system first:
Upload the published site via FTP to Arvixe.com. In Web Site Control Panel, on the “Extensions” page, choose ASP.NET version “4.0″. Also, specify BlogArvixeCom.UserNT.WCFTestPage.aspx as default document on the “Home Folder” page. That seems to be all, but do not be surprised if clicking on the button “Server side time” causes nothing to happen. The file ServiceReferences.ClientConfig file is configured to work on localhost. All you need to do is set the correct endpoint address.