Hi Bill,
Initialise the remoting configuration in the Application_Start method in the
global.asax rather than in every method call.
DC
> I am designing a system that uses an ASP.NET webservice to call methods on a
> remoting singleton (I need the singleton to keep alive some specific COM
[quoted text clipped - 20 lines]
> Thanks,
> Bill Strong
Bill Strong - 21 Apr 2006 14:05 GMT
Hi David,
Great! I added a Global.asmx file to my project, added the following
directive to the top of the file:
<%@ Import Namespace="System.Runtime.Remoting" %>
and called RemotingConfiguration.Configure(webconfig_path & filename) in the
Application_Start subroutine and it seems to work fine.
A workaround I came up with prior to receiving your reply was to check
ChannelServices.RegisteredChannels.Length < 1 in the Sub New() and if true,
call RemotingConfig. Your suggestion of course is much better.
Thanks again,
Bill
> Hi Bill,
>
[quoted text clipped - 27 lines]
> > Thanks,
> > Bill Strong