View Single Post
  #2 (permalink)  
Old December 8th, 2004, 01:58 AM
kunlun_mrpii kunlun_mrpii is offline
Registered User
 
Join Date: Dec 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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>