Skip to main content
Home Forums Silverlight Programming WCF RIA Services how to add more than one .NET Ria Service link to SL class library?
3 replies. Latest Post by ColinBlair on November 4, 2009.
(0)
kent.zhou
Member
110 points
403 Posts
11-04-2009 11:01 AM |
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
Contributor
3424 points
946 Posts
11-04-2009 11:50 AM |
This may help:
http://blogs.msdn.com/brada/archive/2009/07/28/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-11-the-new-class-library-project.aspx
11-04-2009 11:57 AM |
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
6701 points
1,318 Posts
11-04-2009 12:06 PM |
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.