I must confess that I've spent zero time getting CSLA to work on SL3. I'm buried in numerous projects and, while this is a high priority, it has to wait.
From what you are seeing, I suspect you'll need to re-reference the WCF data portal service from the CSLA .NET for Windows side. Odds are they changed the way WCF proxies are generated and were unable to auto-upgrade the existing proxy code.
That shouldn't be hard - just build CSLA .NET for Windows, then create a temporary web project and expose the Silverlight WcfHost class as a service. Then in the CSLA .NET for Silverlight project, remove the service reference and re-add it to reference this temporary host.
Obviously the resulting config file URL is useless - but the point is to regen the proxy code in the SL Csla project.
I'm on SL3 and I am having trouble with the DataGrid and "csla:ValidatedDataGridTextColumn" ... I found an very interesting link that I'm exploring about how to toggle between SL2 and SL3.
Chris
Shane,
I'm not having any luck getting this to build by following these steps. Are you using CSLA v 3.6.2? I just installed SL3 but CSLA is can no longer talk to the db. When I try to compile CslaLight now I get those same WcfPortal missing reference errors...
Thanks,
Brian
Hi fellow CSLA + Silverlight 3 Beta newbies...
Thought I'd save everyone else a few hours of hair pulling to get the Cslalight project compiling.
I don't totally understand everything that is going on behind the scenes here yet, but a comment on this other thread helped me out right away.
http://forums.lhotka.net/forums/thread/30799.aspx
Here are the steps I followed:
Some of the samples have an error in the ServiceConfig file. The ServiceConfig file should look something like this:
<
configuration><system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IWcfPortal" maxBufferSize="65536"
maxReceivedMessageSize="65536" receiveTimeout="10" sendTimeout="10"></
binding></
basicHttpBinding></
bindings><
client><
endpoint address="http://localhost:1993/WcfPortal.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IWcfPortal" contract="WcfPortal.IWcfPortal" name="BasicHttpBinding_IWcfPortal" /></
client></
system.serviceModel></
configuration>
Hope this helps!
Ben
FYI, I have branched the 3.6.x code in svn, so trunk will now become 3.7. My plan is for 3.7 to support Silverlight 3, and 3.6 to support Silverlight 2.
Beyond fixing the project issues so 3.7 builds for SL3, there's the bigger matter of taking advantage of element binding (which means all the Csla.Silverlight UI controls will change), and possibly (hopefully) getting rid of Navigator in favor of using SL3's deep linking support.
I suspect there may be some changes in WcfProxy too - to enable some of the new WCF features. Maybe not - maybe the current model will work - but I wouldn't be surprised if some changes aren't required.
Hey guys:
Does there happen to be a consolidated/definitive set of steps one should take to get this all to compile and work for Silverlight 3? It seems some people get it and some don't using a mixture of ideas. I've tried the various things mentioned here and in other threads and I keep running into the same various errors mentioned by other users. I'm presume I'm missing a critical step, doing something out of order or completely doing something wrong...
My SL2 environment is gone and we are only using SL3 Preview stuff. Thankfully this is all new development so we aren't locked out from an existing code base. However, we are definitely itching to get some of this stuff working before the "powers that be" deem it "too soon" or "not worth the effort".
Assume I've got a fresh set of the csla projects (light and win) and a fairly fresh install of the SL3 files. Where to?
Thanks,
Will
There's a link off the FAQ to a forum post with a list of steps
Edit** Question regarding Tortoise moved to thos thread. http://forums.lhotka.net/forums/34200/ShowThread.aspx#34200
Thanks,
Will
Please split the svn question into its own thread.
Well, I've made some progress. I follows the steps linked in the Silverlight FAQ.
After I get all steps completed I am able to get a Rebuild All succeeded message when I build the CslaLight project. However, there is still an error:
Custom tool error: Failed to generate code for the service reference 'WcfPortal'. Please check other error and warning messages for details.
File referenced is Reference.svcmap in the CslaLight project. Does the Rebuild All succeeded really mean that or is this error going to bite us in the rear soon?
Thanks, Will
Compiler warnings follow:
There are 403 warnings, these few seem to be of interest.
Warning 3 Custom tool warning: Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='http://ws.lhotka.net/WcfDataPortal']/wsdl:portType[@name='IWcfPortal']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='BasicHttpBinding_IWcfPortal'] C:\SourceCode\Servicing\Hps.Framework.Servicing\Development\Csla\CslaLight\cslalightcs\Csla\Service References\WcfPortal\Reference.svcmap 1 1 CslaLight
Warning 4 Custom tool warning: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='BasicHttpBinding_IWcfPortal']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:service[@name='WcfPortal']/wsdl:port[@name='BasicHttpBinding_IWcfPortal'] C:\SourceCode\Servicing\Hps.Framework.Servicing\Development\Csla\CslaLight\cslalightcs\Csla\Service References\WcfPortal\Reference.svcmap 1 1 CslaLight
Warning 2 Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: Exception has been thrown by the target of an invocation.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://ws.lhotka.net/WcfDataPortal']/wsdl:portType[@name='IWcfPortal'] C:\SourceCode\Servicing\Hps.Framework.Servicing\Development\Csla\CslaLight\cslalightcs\Csla\Service References\WcfPortal\Reference.svcmap 1 1 CslaLight
Warning 5 Custom tool warning: No endpoints compatible with Silverlight 2 were found. Please note that only Basic Profile / SOAP 1.1 services are supported. If you are attempting to use a Windows Communication Foundation service, make sure you are using the BasicHttpBinding.A client proxy class was generated but it will not be usable unless endpoint information compatible with Silverlight 2 is provided via the constructor. C:\SourceCode\Servicing\Hps.Framework.Servicing\Development\Csla\CslaLight\cslalightcs\Csla\Service References\WcfPortal\Reference.svcmap 1 1 CslaLight
Warning 1 Custom tool warning: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. C:\SourceCode\Servicing\Hps.Framework.Servicing\Development\Csla\CslaLight\cslalightcs\Csla\Service References\WcfPortal\Reference.svcmap 1 1 CslaLight
Copyright (c) Marimer LLC