Hi, can anybody help me, I am using business objects built on CSLA using remoting. I can log on and create objects etc, but when I try to upload a file stream I get the following error:
This remoting proxy has no channel sink which means either the server has no registered server channels that are listening, or this application has no suitable client channel to talk to the server.
My Client config file contains:
<?
xml version="1.0" encoding="utf-8" ?><configuration>
<appSettings> <add key="Authentication" value="CSLA" /> <add key="PortalServer" value="http://localhost/DataPortal/dataportal.rem" /> <add key="ServicedPortalServer" value="http://localhost/DataPortal/ServicedPortal.rem" /> </appSettings></
configuration>And my server config file contains....
<
system.runtime.remoting><
application><
service><
wellknown mode="SingleCall" objectUri="DataPortal.rem" type="CSLA.Server.DataPortal, SLA.Server.DataPortal" /><
wellknown mode="SingleCall" objectUri="ServicedDataPortal.rem" type="CSLA.Server.ServicedDataPortal.DataPortal, CSLA.Server.ServicedDataPortal" /></
service><
channels><
channel ref="http"><
serverProviders><
provider ref="wsdl" /><
formatter ref="soap" typeFilterLevel="Full" /><
formatter ref="binary" typeFilterLevel="Full" /></
serverProviders></
channel></
channels></
application></
system.runtime.remoting><
appSettings><
add key="Authentication" value="CSLA"/><
add key="db stuff removed for security"/></
appSettings>Thanks in advance.... greatly appreciated!
Phil Johnson
Phil,
In your client config, dataportal.rem is spelled lowercase:
<add key="PortalServer" value="http://localhost/DataPortal/dataportal.rem" />
In your server config it is spelled Pascal cased:
<wellknown mode="SingleCall" objectUri="DataPortal.rem" type="CSLA.Server.DataPortal, SLA.Server.DataPortal" />
I'm not sure, but my guess is that both strings should match exactly (case-sensitive). Probably it is worth a try.
Cheers,
Herman
Thanks for the suggestion, but no joy unfortunately.
I think this form posting may well be similar to what I am after....
http://forums.lhotka.net/forums/thread/12127.aspx
Will look further into that for the time being, but if anybody does have any further ideas, please do not hesitate to post them
Thanks,
Phil
Phil,
I don't know if it was just a typo or not, but in the Client config, you have:
<add key="ServicedPortalServer" value="http://localhost/DataPortal/ServicedPortal.rem" />
and in your Server config, you have:
<wellknown mode="SingleCall" objectUri="ServicedDataPortal.rem" type="CSLA.Server.ServicedDataPortal.DataPortal, CSLA.Server.ServicedDataPortal" />
I am almost sure that the Client should be <.../DataPortal/ServicedDataPortal.rem"/>.
Hope it helps,
Kelly.
SOLUTION
The issue turned out to be with a method that accepted a memory stream..... I found some good advice here and implemented an overloaded method that took a byte array parameter instead...
Copyright (c) Marimer LLC