I use the following code / configurations files for a simple .net remoting object that connects to a database and returns a large datatable. When I look into the packets using WireShark (a packet sniffer) and see what is being sent I see what looks like XML tags with data. What am I doing wrong?

CLIENT - CODE
RemotingConfiguration.Configure("SimpleServiceTester.exe.config",false);
WellKnownClientTypeEntry[]entrys=RemotingConfiguration.GetRegisteredWellKnownClientTypes();
TypeclientType=typeof(ITranslationGrabber);
windowsGrabber=(ITranslationGrabber)Activator.GetObject(clientType,entrys[0].ObjectUrl);
table=windowsGrabber.GrabTranslations();

CLIENT - APP.CONFIG
<?xmlversion="1.0"encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroupname="applicationSettings"type="System.Configuration.ApplicationSettingsGroup,System,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089">
<sectionname="SimpleServiceTester.Properties.Settings"type="System.Configuration.ClientSettingsSection,System,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089"requirePermission="false"/>
</sectionGroup>
</configSections>
<system.serviceModel>
<bindings/>
<client/>
</system.serviceModel>
<applicationSettings>
<SimpleServiceTester.Properties.Settings>
<settingname="SimpleServiceTester_WebTranslationGrabber_WebTranslationGrabber"
serializeAs="String">
<value>http://localhost/WebServiceTranslationGrabber/WebTranslationGrabber.asmx</value>
</setting>
</SimpleServiceTester.Properties.Settings>
</applicationSettings>
<system.runtime.remoting>
<applicationname="SimpleServiceTester">
<client>
<wellknowntype="Contract.ITranslationGrabber,Contract"url="tcp://localhost:8085/ActualWindowsTranslationGrabber"/>
</client>
<channels>
<channelref="tcp">
<clientProviders>
<formatterref="binary"/>
</clientProviders>
<serverProviders>
<formatterref="binary"typeFilterLevel="Full"/>
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>

SERVICE - CODE
RemotingConfiguration.Configure("WindowsService.exe.config",false);

SERVICE - APP.CONFIG
<?xmlversion="1.0"encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroupname="applicationSettings"type="System.Configuration.ApplicationSettingsGroup,System,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089">
<sectionname="SimpleServiceTester.Properties.Settings"type="System.Configuration.ClientSettingsSection,System,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089"requirePermission="false"/>
</sectionGroup>
</configSections>
<system.serviceModel>
<bindings/>
<client/>
</system.serviceModel>
<applicationSettings>
<SimpleServiceTester.Properties.Settings>
<settingname="SimpleServiceTester_WebTranslationGrabber_WebTranslationGrabber"
serializeAs="String">
<value>http://localhost/WebServiceTranslationGrabber/WebTranslationGrabber.asmx</value>
</setting>
</SimpleServiceTester.Properties.Settings>
</applicationSettings>
<system.runtime.remoting>
<applicationname="SimpleServiceTester">
<client>
<wellknowntype="Contract.ITranslationGrabber,Contract"url="tcp://localhost:8085/ActualWindowsTranslationGrabber"/>
</client>
<channels>
<channelref="tcp">
<clientProviders>
<formatterref="binary"/>
</clientProviders>
<serverProviders>
<formatterref="binary"typeFilterLevel="Full"/>
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>

  • Edited byKWienkes Wednesday, July 02, 2008 7:07 PMSwitch in localhost
  •