Remoting Isuue..
-
Hiii... I am receiving this error :---> Server encountered an internal error. For more information, turn on customErrors in the server's .config file. Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 1) After googling, I found that customErrors mode="off can help. Presently its True on Server side. Like this RemotingConfiguration.CustomErrorsEnabled(true); 2) I am using .Net 1.1 on the server side and .Net 2.0 on client side. 3) Not getting this problem frequently. It has only 5% chances. 4) When I debugging found some interesting stuff: class One { public string m_sResult = null; public string GetInfo(string sID) { try { if(OnRequested != null) OnRequested(sID); return m_sResult; } catch(Exception ex) { WriteLog(“ “); } } } class Two{ void OnRequestedHandler(string sID) { try { One.m_sReult = "Done"; } catch(Exception ex) { One.m_sReult = ex.message; } } } From the client side, I am calling One.GetInfo() method. a) Event OnRequested(sID) raised and handled by class Two and One.m_sReult is set as "Done". b) But on client side it returns NULL and also writes Log "Server encountered and internal....." on Server side. So suggest me, what I should do to solve this problem. I should use customErrors mode="off for better understanding? I would appreciate any help or suggestions that anyone can provide. Thank you. Sidh
-
Hiii... I am receiving this error :---> Server encountered an internal error. For more information, turn on customErrors in the server's .config file. Server stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 1) After googling, I found that customErrors mode="off can help. Presently its True on Server side. Like this RemotingConfiguration.CustomErrorsEnabled(true); 2) I am using .Net 1.1 on the server side and .Net 2.0 on client side. 3) Not getting this problem frequently. It has only 5% chances. 4) When I debugging found some interesting stuff: class One { public string m_sResult = null; public string GetInfo(string sID) { try { if(OnRequested != null) OnRequested(sID); return m_sResult; } catch(Exception ex) { WriteLog(“ “); } } } class Two{ void OnRequestedHandler(string sID) { try { One.m_sReult = "Done"; } catch(Exception ex) { One.m_sReult = ex.message; } } } From the client side, I am calling One.GetInfo() method. a) Event OnRequested(sID) raised and handled by class Two and One.m_sReult is set as "Done". b) But on client side it returns NULL and also writes Log "Server encountered and internal....." on Server side. So suggest me, what I should do to solve this problem. I should use customErrors mode="off for better understanding? I would appreciate any help or suggestions that anyone can provide. Thank you. Sidh
Sidh - please move this to a more appropriate forum. This is for WPF/WCF (and possibly CardSpace but that's a bit of a grey area) - and as these don't work with .NET 1.1 then you're out of luck with getting help there.
Deja View - the feeling that you've seen this post before.