Groups | Blog | Home
all groups > dotnet remoting > july 2003 >

dotnet remoting : IIS acting as client - can't get configuration to work


Thomas N. Sørensen
7/27/2003 10:55:22 AM
Hi,

I have built a broadcasting example (based on the Broadcasting example in
Ingo Rammer's book "Advanced .Net Remoting").
I can get everything to work, when the listeners receiving message events
are Console applications, but when I'm trying to let an IIS site register as
listener it fails.

I'm using the RemotingHelper class shown here
http://www.ingorammer.com/RemotingFAQ/USEINTERFACESWITHCONFIGFILES.html
to be able to instantiate my object using configuration in the web.config
file.

But no WellKnowClients are registered? - the command:
RemotingConfiguration.GetRegisteredWellKnownClientTypes())
returns zero.

I can't seem to find any errors in my config file. It seems that the
configuration is not read at all. The remoting part of my web.config file
looks like this:

<system.runtime.remoting>
<application>
<channels>
<channel ref="http">
<serverProviders>
<provider ref="wsdl" />
<formatter ref="soap" typeFilterLevel="Full" />
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
<client>
<wellknown type="Broadcasting.IBroadcaster, BroadCasting"
url="http://localhost/facade/ServerBroadcaster.rem"/>
</client>
</application>
</system.runtime.remoting>


Any help/comments would be appriciated.

Thomas N. Sørensen
email: tns@mondo.dk

Thomas N. Sørensen
7/27/2003 1:32:51 PM
OK - found the solution myself.

Client config is not read by default in web.config. Has to manually read
config in application_onstart.
See this: http://support.microsoft.com/default.aspx?scid=kb;en-us;323490

Regards,
Thomas N. Sørensen


____

[quoted text, click to view]

AddThis Social Bookmark Button