Open RIA Services User Support WPF client  Viewed 76204 time(s), 8 post(s)., 4/28/2014 9:12:41 PM - by UKIan

UKIan
UKIan 4/28/2014 9:12:42 PM

Hello, I'm just looking at the code quickly. I'm going to migrate an app from SL to WPF, and have to deal with RIA again. OpenRiaServices.DomainServices.Client seems to be targetting WPF, is this prep work for V5 or does it work?

I can't get it to build right now (I had this last time I popped in here, I think it's Portable library related and I can fix it by editing the csproj iirc).

Any quick heads up might save me a bit of time on the evaluation. If it's a plain old no I can skip straight to an alternative plan :)

Cheers
Ian

This content has not been rated yet. 
91 Reputation 12 Total posts
1
ColinBlair
ColinBlair 4/28/2014 9:22:09 PM

Give me a few days and I will get new NuGet packages up with the portable library in it. I am not sure which project you are looking at, but in addition to the portable library there are changes to the code generation.

This content has not been rated yet. 
1539 Reputation 130 Total posts
2
UKIan
UKIan 4/29/2014 9:35:00 AM

Interesting, I've spent a bit of time and it's actually ok. It will build perfectly well, so I think the problems I had last year have all been resolved in the mean time. More importantly, will the client work at all in a WPF client?

Cheers Colin, your help is always appreciated.

Ian

This content has not been rated yet. 
91 Reputation 12 Total posts
3
UKIan
UKIan 5/11/2014 6:22:57 PM

Hi, I've got OpenRIA working fine with Silverlight and web. If I wanted to switch this to a portable library, are there any quick tips you can offer?

I have a solution containing a web project, a silverlight project and a portable library. There's no right click menu option on the portable library to configure open ria, so is there something I can hack into the project file?

Thanks
Ian

EDIT:
PS: I also have all the source downloaded and built.

EDIT2:
Referenced OpenRiaServices.DomainServices.Client.dll (built from source) in my portable library. "Configure Open RIA Services" menu appeared and allowed selection of web project. Also set web project to portable project in "configure.. " menu.
Rebuilt, nothing new happened. No code generation, etc.

This content has not been rated yet. 
91 Reputation 12 Total posts
4
Daniel-Svensson
Daniel-Svensson 5/14/2014 5:28:33 PM

Have you tried to add the CodeGen library?

It seems like the current nuget build will not install for .net desktop applications so I will try to have a look at it later this week.

I have a small example project with codegen running (I looked at the changes made to the silverlight .csproj file and made the same Changes manually to the .net .csproj file).

At the moment I think there is a quite high probability that the .net desktop client will always push work to the UI thread when it needs to (i've seen a couple of places with in the code with  conditional compilation for silverlight ("#if SILVERLIGHT") and have not come around to trying to fix that. The portable OpenRiaServices.DomainServices.Client.dll might be better to use than the .net desktop version so feel free to try both.

This content has not been rated yet. 
338 Reputation 44 Total posts
5
Daniel-Svensson
Daniel-Svensson 5/17/2014 4:34:14 PM

I've pushed a new beta version of the OpenRiaServices.Silverlight.Core to nuget.

Please try to add a reference OpenRiaServices.Silverlight.CodeGen to your WPF application and it should now be able to use it (and get the last release of the OpenRiaServices.Silverlight.Core package) . Don't forget that you will need to specifiy absolute URIs when creating your domain contexts.

Please let us know how it works.

I've attached a small example Project I've been using myself, but you will probably need to edit the packages.config manually to change the version of the assemblies to version availible on nuget (change "Beta5" to "Beta1" or "Beta2" etc).

This content has not been rated yet. 
338 Reputation 44 Total posts
6
UKIan
UKIan 7/13/2014 6:26:45 PM

Ok, took some fenagling but I got 90pc of it to work. As you said, various references/packages were changed from beta5 to beta2, beta6 ones stayed the same. I had a bunch of issues which were caused by .Net Demon (Builds as you type, doesn't work with Silverlight/RIA properly), so switched that off.

The WPF client works a treat, but I've got a load of issues with the Silverlight client now. I eventually got it to compile by copying the generated code into a new file, but it won't talk to the server. Probably something simple.

But it seems functionally, ... functional :)

This content has not been rated yet. 
91 Reputation 12 Total posts
7
UKIan
UKIan 7/13/2014 6:43:37 PM

Ok, got the SL client to work too, it had an out of date generated_code file, so I deleted it and pasted in the one from the portable library.

This content has not been rated yet. 
91 Reputation 12 Total posts
8