CSLA for Silverlight 3.8.1 and WCF
CSLA for Silverlight 3.8.1 and WCFOld forum URL: forums.lhotka.net/forums/t/8347.aspx
thomaa posted on Wednesday, January 13, 2010VS2010
CSLA for Silverlight 3.8.1
(on VMWare Fusion)
I'm currently going through Rocky's video series on CSLA for Silverlight (which, btw, is great!). However, already on Demo001-project I run into problems.
First, the projects have to be converted to VS2010. No problem, in general, but the service reference will not generate.
This is how I fixed it:
1. After reading some posts, I decided to change the service name. Appearently, there are some issuses with service names with with a dot (.). I change the namespace and name on service from "web.demoservice" to "webDemoservice". Rebuild the webproject.
2. Delete the existing webservice reference and and a new - with a name you haven't tried before! AND..
3. Make sure to uncheck "Reuse types in referenced asseblies"
4. Change code to reflect the new proxy.
..and it works!
Question: Why do I have to uncheck the "reuse types.." in service ref? In VS2008, with the same demo project, I don't need to do this!
RockfordLhotka replied on Wednesday, January 13, 2010
I've noticed this too. I think this has to do with some of the upcoming WCF RIA Services features, which do some assembly sharing between client and server. I also think that functionality is not complete in Beta 2 :)
But clearly Msft is doing some work in this space, and so the behavior of WCF references from SL to .NET has changed in VS10.
Copyright (c) Marimer LLC