Problem with raising a envent over internet -
05-16-2007
, 05:31 PM
I got my app running on the a server and in a client.
When I ran both on the same machine they work perfect, but when I separated
them (server app on a server with public IP) and my client stays in my local
machine. The event dont raise.
Here are the config file for both server and client:
Server
<configuration>
<system.runtime.remoting>
<application name="TecnotrackerServer">
<service>
<wellknown mode="Singleton"
type="ITB.Tecnotracker.Server.Broadcaster.Broadcas ter,
ITB.Tecnotracker.Server.Broadcaster"
objectUri="Broadcaster.soap"/>
</service>
<channels>
<channel ref="tcp" port="5555" clientConnectionLimit="20">
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full"/>
</serverProviders>
<clientProviders>
<formatter ref="binary" typeFilterLevel="Full"/>
</clientProviders>
</channel>
</channels>
<client url="tcp://localhost:5555">
<wellknown type="ITB.Tecnotracker.Common.Communication.IBroad caster,
ITB.Tecnotracker.Common.Communication"
url="tcp://localhost:5555/Broadcaster.soap" />
</client>
<lifetime leaseTime="20D" sponsorshipTimeout="1H" renewOnCallTime="1D"
leaseManagerPollTime="1H" />
</application>
</system.runtime.remoting>
</configuration>
and this is my clients
<configuration>
<system.runtime.remoting>
<application>
<lifetime leaseTime="20D" sponsorshipTimeout="1H" renewOnCallTime="1D"
leaseManagerPollTime="1H" />
<channels>
<channel ref="tcp" port="0" clientConnectionLimit="20">
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full"/>
</serverProviders>
<clientProviders>
<formatter ref="binary" typeFilterLevel="Full"/>
</clientProviders>
</channel>
</channels>
<client url="tcp://200.67.79.249:5555">
<wellknown type="ITB.Tecnotracker.Common.Communication.IBroad caster,
ITB.Tecnotracker.Common.Communication"
url="tcp://200.67.79.249:5555/Broadcaster.soap" />
</client>
</application>
</system.runtime.remoting>
</configuration>
My server havo to autosubscrive to himself to ve able to raise the event,
the client just become suscriber for the event.
What could ve happening?? Hope somebody could help me |