Hi,
I am getting mscorlib:Authentication Failure error while trying to invoke my applicaiton. My code
Code:
private void InitializeRemoting(out int RemotingPortNumber)
		{
// Establish server channel sink provider
BinaryServerFormatterSinkProvider svrSinkProvider = new BinaryServerFormatterSinkProvider();

svrSinkProvider.TypeFilterLevel = TypeFilterLevel.Full;
// Create and register tcp server channel to listen on a port.
m_serverChannel = new TcpServerChannel("ITViewAppOperations",	0,
				svrSinkProvider);
ChannelServices.RegisterChannel(m_serverChannel);
string PortNumberString = m_serverChannel.GetChannelUri().Split(':')[2];
RemotingPortNumber = Convert.ToInt32(PortNumberString);

// Register "BridgeFactory.rem" as singleton well know service types.
WellKnownServiceTypeEntry entry1 = new WellKnownServiceTypeEntry(
typeof(IdeWMakerBridge).FullName,
typeof(IdeWMakerBridge).Assembly.FullName, // "Arch.IDE.IdeWmBridge"
"IdeWMakerBridge.rem",WellKnownObjectMode.Singleton);
RemotingConfiguration.RegisterWellKnownServiceType(entry1);

// Get remoting singleton bridge instance.
m_ideWmBridge = Arch.IDE.WMakerBridge.Common.IaaIdeWmBridge)Activator.GetObject(typeof(Arch.IDE.IdeWmBridge.IdeWMakerBridge),
				"tcp://localhost:" + RemotingPortNumber + "/IdeWMakerBridge.rem");
SetLifetime(m_ideWmBridge, TimeSpan.FromDays(365*100));
m_ideWmBridge.IdeProxy = m_ideProxy;
m_ideWmBridge.Name = "TestNameABC: " + m_ideProxy.GetType().ToString();
}
I am getting exception at SetLifetime function.
Code:
private void SetLifetime(object obj, TimeSpan LeaseTime)
	   {
                    ((ILease)((MarshalByRefObject)obj).GetLifetimeService()).Renew(LeaseTime);
                }
Can I know why this exception is happening and what could be the fix for this.