Click here to Skip to main content
15,914,165 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF App and Debug Issue Pin
User 2710099-May-08 5:36
User 2710099-May-08 5:36 
GeneralRe: WPF App and Debug Issue Pin
Jammer11-May-08 23:17
Jammer11-May-08 23:17 
GeneralRe: WPF App and Debug Issue Pin
User 27100911-May-08 23:59
User 27100911-May-08 23:59 
GeneralRe: WPF App and Debug Issue Pin
Jammer12-May-08 4:47
Jammer12-May-08 4:47 
GeneralRe: WPF App and Debug Issue Pin
User 27100912-May-08 5:34
User 27100912-May-08 5:34 
GeneralRe: WPF App and Debug Issue Pin
Jammer12-May-08 5:51
Jammer12-May-08 5:51 
GeneralRe: WPF App and Debug Issue Pin
User 27100912-May-08 5:55
User 27100912-May-08 5:55 
QuestionRemoting Isuue.. Pin
Siddharth Rastogi8-May-08 22:58
Siddharth Rastogi8-May-08 22:58 
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
AnswerRe: Remoting Isuue.. Pin
Pete O'Hanlon9-May-08 8:26
mvePete O'Hanlon9-May-08 8:26 
Questionmove rectangle Pin
willy20058-May-08 5:45
willy20058-May-08 5:45 
AnswerRe: move rectangle Pin
Brian Griggs8-May-08 6:31
Brian Griggs8-May-08 6:31 
GeneralRe: move rectangle Pin
willy20058-May-08 7:28
willy20058-May-08 7:28 
QuestionHow to use the custom control in silver light beta 2.0 Pin
kishorekumar.malla@live.com7-May-08 21:47
kishorekumar.malla@live.com7-May-08 21:47 
AnswerRe: How to use the custom control in silver light beta 2.0 Pin
Michael Sync7-May-08 22:38
Michael Sync7-May-08 22:38 
QuestionWPF and VS 2008 Pin
BlitzPackage7-May-08 12:49
BlitzPackage7-May-08 12:49 
AnswerRe: WPF and VS 2008 Pin
User 2710097-May-08 13:15
User 2710097-May-08 13:15 
GeneralRe: WPF and VS 2008 Pin
Pete O'Hanlon7-May-08 22:55
mvePete O'Hanlon7-May-08 22:55 
AnswerRe: WPF and VS 2008 Pin
Mark Salsbery9-May-08 14:06
Mark Salsbery9-May-08 14:06 
QuestionThe MediaPlayer Class Pin
Jammer7-May-08 12:24
Jammer7-May-08 12:24 
AnswerRe: The MediaPlayer Class Pin
User 2710097-May-08 13:17
User 2710097-May-08 13:17 
GeneralRe: The MediaPlayer Class Pin
Jammer7-May-08 13:55
Jammer7-May-08 13:55 
AnswerRe: The MediaPlayer Class Pin
Christian Graus7-May-08 13:30
protectorChristian Graus7-May-08 13:30 
GeneralRe: The MediaPlayer Class Pin
Jammer7-May-08 13:57
Jammer7-May-08 13:57 
GeneralRe: The MediaPlayer Class Pin
Christian Graus7-May-08 14:18
protectorChristian Graus7-May-08 14:18 
GeneralRe: The MediaPlayer Class Pin
Jammer7-May-08 14:37
Jammer7-May-08 14:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.