My server is runnig as a single call object in a windows
service whereas its client is a WebService.
The problme is that after some successfull connections i
get the following exception unless i restart the service
and it will give some successful connections again, after
that its the same exception
the error i believe is in the serialization bcz thats what
the trace tell me :)
--------------------
at SoapClientFormatterxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxx
xxxxSerialization.Formatters.Soap.SoapParser.ParseXml()
at System.xml.xmlTextReader.Read()
at Syste.xml.xmlTextReader.ParseBeginTagExpandCharEntities

cml.xmlException ' ' 0x08, is an invalid character.
--------------------
My server's config file is
******
<configuration>
  <system.runtime.remoting>
 <application name="Chat">
 <lifetime leaseTime="10M" renewOnCallTime="10M"
sponsorshipTimeout="0M"/>
 <service>
  <wellknown mode="Singleton"
type="Server.ProxyWrapper, Server" objectUri="xxx"/>
  <wellknown mode="SingleCall"
type="Server.ProblemChild, Server" objectUri="xxx"/>
 </service>
     <channels>
  <channel
   ref="http"
   name="http_soap"
   port="8088">
   <serverProviders>
    <formatter ref="soap" />
    <provider
type="Server.SinkProvider, Server" />
   </serverProviders>
  </channel>
  <channel
   name="http_binary"
   port="8089"

 type="System.Runtime.Remoting.Channels.Http.HttpCha
nnel, System.Runtime.Remoting, Version=1.0.3300.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089,
Custom=null"
          >
   <serverProviders>
    <formatter

 type="System.Runtime.Remoting.Channels.BinaryServer
FormatterSinkProvider, System.Runtime.Remoting,
Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, Custom=null"
    />
                         <provider
type="Server.SinkProvider, Server" />
   </serverProviders>
  </channel>
  <channel
   name="tcp_binary"

 type="System.Runtime.Remoting.Channels.Tcp.TcpChann
el, System.Runtime.Remoting, Version=1.0.3300.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089,
Custom=null"
   port="8090">
   <serverProviders>
    <formatter ref="binary" />
    <provider
type="Server.SinkProvider, Server" />
   </serverProviders>
  </channel>
 </channels>
    </application>
    <debug loadTypes="true"/>
  </system.runtime.remoting>
</configuration>
*******

My clients code is

**********

lock(ChannelServices.RegisteredChannels.SyncRoot)
    {
     try
     {
      if
(ChannelServices.GetChannel("http_web") == null)
      {


 HttpClientChannel channel = new HttpClientChannel
("http_webservice", new SoapClientFormatterSinkProvider
() );

 ChannelServices.RegisterChannel(channel);
      }
     }
}

Server.ProblemChild _Impl = (Server.ProblemChild)
Activator.GetObject(
     typeof
(Server.ProblemChild), ("ServerUrl"));

_Impl.Hello(string, string);
**********

Server is running on .NET 1.0 with win 2k

Reply via email to