Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Remoting Exception...Am i solving it correct.......?

Remoting Exception...Am i solving it correct.......?

Scheduled Pinned Locked Moved C#
helpcsharpsysadmindata-structuresdebugging
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Siddharth Rastogi
    wrote on last edited by
    #1

    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

    G 1 Reply Last reply
    0
    • S Siddharth Rastogi

      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

      G Offline
      G Offline
      Gareth H
      wrote on last edited by
      #2

      Member 3824736, Wrong forum. You want ASP.NET Regards, Gareth.

      S 1 Reply Last reply
      0
      • G Gareth H

        Member 3824736, Wrong forum. You want ASP.NET Regards, Gareth.

        S Offline
        S Offline
        Siddharth Rastogi
        wrote on last edited by
        #3

        is it.....? ok..

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups