Hi,
I am converting a Silverlight app to use the Mobile Data Portal. The configuration settings:
<appSettings>
<add key="ObjectFactoryAssembly" value="DataAccess.Mock"/>
<add key="CslaObjectFactoryLoader" value="DataAccess.FactoryLoader,DataAccess"/>
</appSettings>
Are not beight pulled in. I cannot call methods in the DAL assembly. How do I change this to use the Mobile Data Portal?
Silverlight doesn't use configuration files, so if you are putting that XML in a client-side file then it will surely be ignored. You need to set Silverlight configuration values through code as shown in the 'Using CSLA 4' ebook.
If that is server-side configuration in your web.config then it won't matter what data portal channel you are using (mobile, wcf, etc) because any code using that configuration will run long after the data portal is in its standard server-side processing pipeline - and that is totally independent of the network channel being used.
It is server side for a Silverlight Application. When I use the 4.3 csla.dll it works, but when I use the 4.5 csla dll it doesn't.
Have you read through and adapted to the following?
http://www.lhotka.net/weblog/CSLADataPortalChangesInVersion45.aspx
Yes,
That's one of the posts I used as my guide. Being I am using a server-side data portal, it appeared to me that the only change that I needed to make initially is changing the wcfDataPortal to use the Mobile instead of the Silverlight one from:
<% @ServiceHost Service="Csla.Server.Hosts.Silverlight.WcfPortal" %>
To:
<% @ServiceHost Service="Csla.Server.Hosts.Mobile.WcfPortal" %>
Copyright (c) Marimer LLC