Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Remoting issue...

Last post 05-09-2008 10:03 AM by S Rastogi. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 05-09-2008 10:03 AM

    • S Rastogi
    • Not Ranked
    • Joined on 05-09-2008
    • India
    • New Member
    • Points 5

    Remoting issue...

     

    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

    • Post Points: 5
Page 1 of 1 (1 items)