lock (GetType())
{
if (webConfigLoaded) return;
+
+ string appConfig = AppDomain.CurrentDomain.SetupInformation.ConfigurationFile;
+ if (File.Exists (appConfig))
+ RemotingConfiguration.Configure (appConfig);
// Look for a channel that wants to receive http request
IChannelReceiverHook chook = null;
string channelUrl = context.Request.Url.GetLeftPart(UriPartial.Authority);
channelUrl += context.Request.ApplicationPath;
chook.AddHookChannelUri (channelUrl);
-
- transportSink = new HttpServerTransportSink (chook.ChannelSinkChain, null);
+
+ transportSink = new HttpServerTransportSink (chook.ChannelSinkChain);
webConfigLoaded = true;
}
}