System.ServiceModel.DomainServices silverlight to cshtml5

Please post public support tickets here. Note: for private support tickets, please send an email to instead.
Posts: 1
Joined: Thu Jan 04, 2018 11:07 pm

System.ServiceModel.DomainServices silverlight to cshtml5

Postby ColourShadow » Thu Jan 04, 2018 11:24 pm

Hi all,

After migrating from silverlight to cshtml5, the reference below is gone, and caused alot compilation errors, may I know is there anyway to substitute this in C# --> System.ServiceModel.DomainServices.Client

Thank you.

Best regards

using System.ServiceModel.DomainServices.Client;

public ObservableCollection<Template> TemplateList { get; set; }

JS-Support @Userware
Site Admin
Posts: 1050
Joined: Tue Apr 08, 2014 3:42 pm

Re: System.ServiceModel.DomainServices silverlight to cshtml5

Postby JS-Support @Userware » Fri Jan 05, 2018 5:15 am


The "ObservableCollection" class is available and should work properly.

The "System.ServiceModel.DomainServices" namespace and classes, as well as RIA Services, are not available at the moment.

You can either:
  • Work around this limitation by replacing them with WCF SOAP service calls (read WCF Limitations and Tutorials). To make the migration easier, a common practice is to create a new server-side project of type "WCF Service Application" that references your server-side RIA Service and functions as an "adapter" (or "bridge") that will relay the communications between your CSHTML5 app and your RIA Service. In other words, instead of communicating directly with the RIA Service, your CSHTML5 application will communicate with your WCF service - which exposes SOAP endpoints -, and the latter will then communicate with your RIA Service via simple method calls (because they run in the same process on the server). We recommend redefining the business entities that are passed between the client and the server if they are too complex or if they have dependencies on EntityFramework (which is currently not supported). Also, make sure you are using the very latest build of CSHTML5, available at:
  • Or request us to accelerate the development of the DomainServices support. To do so, please send an email to mentioning this topic, and our team will quickly send you a quotation and planning proposal. Tens of features of CSHTML5 have been developed with this kind of collaboration.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 6 guests