Did
you check ServiceReference.ClicnConfig to make sure it matches your web.config?
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: Cuong
[mailto:cslanet@lhotka.net]
Sent: Sunday, August 23, 2009 5:29 AM
To: Sergey Barskiy
Subject: [CSLA .NET] Cslalight 3.8: Config WcfPortal service for using
SL3 Binary XML?
Hi,
I am using Cslalight 3.8 in a silverlight app. I want to use the new SL3 binary
XML feature. I change the service configuration in the web.config (server side)
like below:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="WcfPortalBehavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug
includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<customBinding>
<binding name="BinaryBinding">
<binaryMessageEncoding />
<httpTransport />
</binding>
</customBinding>
</bindings>
<services>
<service
behaviorConfiguration="WcfPortalBehavior"
name="Csla.Server.Hosts.Silverlight.WcfPortal">
& nbsp;
<endpoint address=""
binding="customBinding" bindingConfiguration="BinaryBinding"
contract="Csla.Server.Hosts.Silverlight.IWcfPortal">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange"/>
</service>
</services>
</system.serviceModel>
But I get an exception " System.Net.WebException: The remote server
returned an error: NotFound."
Does anybody successfully use the SL3 Binary XML feature with Cslalight? Did I
config something wrong?
Did you get this working?
From: Cuong [mailto:cslanet@lhotka.net]
Sent: August-23-09 6:32 PM
To: jaddington@alexandergracie.com
Subject: Re: [CSLA .NET] RE: Cslalight 3.8: Config WcfPortal service for
usingSL3 Binary XML?
@sergey: Yes, I check the ServiceReference.ClicnConfig and
it works if the service (server side) uses
basicHttpBinding. I prepared a simple demo, could you have look into it to
check the problem?
http://www.mediafire.com/download.php?homqzzzazfm
@Jack: Do you mean that we do not need to change the service configuration in
the web.config (server side). We still keep the basicHttpBinding and WcfPortal
will use Binary XML to transfer objects between clients and server?
There are links in the FAQ
http://www.lhotka.net/cslanet/faq/DataPortalFaq.ashx
Copyright (c) Marimer LLC