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. WPF
  4. Remoting Isuue..

Remoting Isuue..

Scheduled Pinned Locked Moved WPF
helpcsharpsysadmindata-structuresdebugging
2 Posts 2 Posters 3 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

    P 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

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      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.

      My blog | My articles

      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