no registered sink error when streaming using CSLA via remoting

no registered sink error when streaming using CSLA via remoting

Old forum URL: forums.lhotka.net/forums/t/3382.aspx


phillipjohnson posted on Wednesday, August 15, 2007

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

McManus replied on Wednesday, August 15, 2007

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

phillipjohnson replied on Thursday, August 16, 2007

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

jkellywilkerson replied on Thursday, August 16, 2007

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.

phillipjohnson replied on Thursday, August 23, 2007

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...

http://www.dotnet247.com/247reference/msgs/26/133439.aspx

Copyright (c) Marimer LLC