p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional C#, 2nd and 3rd Editions (http://p2p.wrox.com/forumdisplay.php?f=44)
-   -   Remoting Callback problem (http://p2p.wrox.com/showthread.php?t=10161)

downboat March 5th, 2004 09:17 PM

Remoting Callback problem
 
The .net Remoting example of your book has a problem,
obj.Status += StatusEvent (sink.StatusHandler);
when the vsnet runs to it ,it shows :

²»ÔÊÐíÀàÐÍ System.DelegateSerializationHolder ºÍ´ÓÖÐÅÉÉúµÄÀàÐÍ(ÀýÈç System.DelegateSerializationHolderÔÚ´Ë°²È« ¼¶±ðÉϱ»·´ÐòÁл¯"

Its genneral idea maybe is that delegate can't be deserialiaed:

how can us solve is ?
Help me,Thanks.


kunlun_mrpii December 8th, 2004 01:58 AM

you just amend Client.exe.config and Server.exe.config like this

Client.exe.config

<configuration>
  <system.runtime.remoting>
    <application>

      <client url="http://localhost:6791/CallbackSample">
    <activated type="Wrox.ProfessionalCSharp.RemoteObject, RemoteObject" />
      </client>

      <channels>
        <channel ref="http" port="777">
            <serverProviders>
                <provider ref="wsdl"/>
                <formatter ref="soap" typeFilterLevel="Full"/>
                <formatter ref="binary" typeFilterLevel="Full"/>
            </serverProviders>
        </channel>
      </channels>

    </application>
  </system.runtime.remoting>
</configuration>



Server.exe.config

<configuration>
  <system.runtime.remoting>
    <application name="CallbackSample">

      <service>
    <activated type="Wrox.ProfessionalCSharp.RemoteObject, RemoteObject" />
      </service>

      <channels>
        <channel ref="http" port="6791" >
            <serverProviders>
            <provider ref="wsdl"/>
            <formatter ref="soap" typeFilterLevel="Full"/>
            <formatter ref="binary" typeFilterLevel="Full"/>
            </serverProviders>
        </channel>
      </channels>
    </application>
  </system.runtime.remoting>
</configuration>



Kevon Somsy June 8th, 2011 02:13 AM

Maybe you should try this page: http://www.voip-sip-sdk.com/p_159-ho...urce-voip.html

It is about callback problems i think it might be useful for you.


All times are GMT -4. The time now is 11:33 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.