Skip to main content

Microsoft Silverlight

Answered Question how to add more than one .NET Ria Service link to SL class library?RSS Feed

(0)

kent.zhou
kent.zhou

Member

Member

110 points

403 Posts

how to add more than one .NET Ria Service link to SL class library?

I use Silverlight Business Application template to create a solution, then get two projects:

MyApp

MyApp.Web

then  I use .NET RIA Services Class library for ria service. VS will create two projects for me:

MyRiaService.Web

MyRiaService

The hosting web project is:

MyWeb

For any silverlight app/class library, add reference MyRiaService.

All data service from EF will be put in MyRiaService.Web. But authentication ria services are in MyApp.Web

When I run sl app, I only get data services and can't get authentication services. 

So I want to add authentication ria service link from MyApp.Web to MyRiaService, but  I can't because it has one link pointing to MyRiaService.Web already.

So how to resolve this problem?

 

 

 


 

Ardman
Ardman

Contributor

Contributor

3434 points

946 Posts

kent.zhou
kent.zhou

Member

Member

110 points

403 Posts

Re: how to add more than one .NET Ria Service link to SL class library?

If I don't use Ria Service class library and add  ria services(domain service) on hosting web(MyApp.Web), like the demo on your link, it works fine.

My question is: how to add more than one Ria service link from two different server side projects to a client side Silverlight app/class library.

ColinBlair
ColinBlair

Contributor

Contributor

6731 points

1,318 Posts

Answered Question

Re: how to add more than one .NET Ria Service link to SL class library?

The part of Brad's blog that he was referring to was that you have to create the RiaContext yourself. It is a very simple piece of code and you can copy it from Brad's blog. You do not need a RIA Link to use the RiaContext, you just need the RIA Services dlls referenced by your Silverlight application and a copy of the RiaContext code.

-Colin Blair

http://www.RiaServicesBlog.net : The Elephant Guide to RIA Services
SLColinBlair on Twitter
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities