C# Remoting
-
Can anybody tell me that, if i'm using .NET remoting server with SAO, how can i raise an event across different application domains? the application wors fine when on the same machine but creates problem when I try using server and client on different machine. The error description and stack trace is: I tried with microsoft solution which says that u create an abstract class and override it in client and handle events there. But it does not work for me. Here is the error: Exception occured at server. Message: Server encountered an internal error. For more information, turn on customError s in the server's .config file. Stack trace: Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage req Msg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgDa ta, Int32 type) at Coordinator.RemotableDelegate.WelComeMessage(ChatArgs ca) in E:\Jayant\Pra ctice\MyChatArchitecture\Coordinator\IMediator.cs:line 139 at MarshalByRefClass.Mediator.ConnectMe(String userName) in E:\Jayant\Practic e\MyChatArchitecture\MarshalByRefClass\Mediator.cs:line 49 I'm not using any App.config file. My server code is as follows. // For Http channel try { SoapClientFormatterSinkProvider scl = null; SoapServerFormatterSinkProvider ssr = new SoapServerFormatterSinkProvider(); ssr.TypeFilterLevel = TypeFilterLevel.Full; IWebProxy proxy = new WebProxy("proxy.sharda.mahindrabt.com", 80); ICredentials ic = new NetworkCredential("myself", "123"); proxy.Credentials = ic; IDictionary id = new Hashtable(); id["port"] = 9113; id["typeFilterLevel"] = TypeFilterLevel.Full; id["name"] = System.Guid.NewGuid().ToString(); id["proxyName"] = "proxy.sharda.mahindrabt.com"; id["proxyPort"] = 80; id["machineName"] = "DSCP01214Jayant"; id["credentials"] = ic; id["unsafeAuthenticatedConnectionSharing"] = true; HttpChannel htc = new HttpChannel(id, scl, ssr); ChannelServices.RegisterChannel(htc); RemotingConfiguration.RegisterWellKnownServiceType(typeof (Mediator), "Chat.soap", WellKnownObjectMode.Singleton); Console.Wr