Click here to Skip to main content
15,914,385 members
Home / Discussions / C#
   

C#

 
Questionhow to get text within <iframe> in .net with c#</iframe> Pin
sugunavathysubramanian8-May-08 22:56
sugunavathysubramanian8-May-08 22:56 
AnswerRe: how to get text within in .net with c# Pin
phannon868-May-08 23:00
professionalphannon868-May-08 23:00 
GeneralRe: how to get text within in .net with c# Pin
sugunavathysubramanian8-May-08 23:07
sugunavathysubramanian8-May-08 23:07 
QuestionDesign display problem in c# Pin
selvarajanlatha8-May-08 22:40
selvarajanlatha8-May-08 22:40 
AnswerRe: Design display problem in c# Pin
Gareth H8-May-08 22:50
Gareth H8-May-08 22:50 
QuestionHow to set search provider to my browser in c#.net ? Pin
Thirukkumaran8-May-08 21:50
Thirukkumaran8-May-08 21:50 
AnswerRe: How to set search provider to my browser in c#.net ? Pin
Vikram A Punathambekar8-May-08 22:25
Vikram A Punathambekar8-May-08 22:25 
QuestionRemoting Exception...Am i solving it correct.......? Pin
Siddharth Rastogi8-May-08 21:03
Siddharth Rastogi8-May-08 21:03 
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&amp; 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: ASP.NET Question Pin
Gareth H8-May-08 22:48
Gareth H8-May-08 22:48 
GeneralRe: ASP.NET Question Pin
Siddharth Rastogi8-May-08 22:53
Siddharth Rastogi8-May-08 22:53 
QuestionCrystal report viewer toolbar Print button event PinPopular
AbhijeetB8-May-08 21:01
AbhijeetB8-May-08 21:01 
Questioncan anyone help me out? Pin
cristi_alonso8-May-08 20:54
cristi_alonso8-May-08 20:54 
QuestionReportViewer Pin
_str_618-May-08 19:55
_str_618-May-08 19:55 
QuestionDom Inspector assistance [modified] Pin
binaryDigit@@8-May-08 18:25
binaryDigit@@8-May-08 18:25 
AnswerRe: Dom Inspector assistance Pin
binaryDigit@@9-May-08 7:49
binaryDigit@@9-May-08 7:49 
Questionis this coding correct? Pin
Thomas Toh8-May-08 17:00
Thomas Toh8-May-08 17:00 
AnswerRe: is this coding correct? PinPopular
Christian Graus8-May-08 17:14
protectorChristian Graus8-May-08 17:14 
AnswerRe: is this coding correct? Pin
Christian Graus8-May-08 17:26
protectorChristian Graus8-May-08 17:26 
AnswerRe: is this coding correct? Pin
Thomas Toh8-May-08 17:31
Thomas Toh8-May-08 17:31 
GeneralRe: is this coding correct? Pin
Christian Graus8-May-08 18:03
protectorChristian Graus8-May-08 18:03 
GeneralRe: is this coding correct? Pin
Michael Martin9-May-08 3:09
professionalMichael Martin9-May-08 3:09 
RantRe: is this coding correct? PinPopular
MumbleB8-May-08 20:27
MumbleB8-May-08 20:27 
GeneralRe: is this coding correct? Pin
Jeremy Falcon9-May-08 9:07
professionalJeremy Falcon9-May-08 9:07 
AnswerRe: is this coding correct? Pin
Thomas Toh8-May-08 17:36
Thomas Toh8-May-08 17:36 
GeneralRe: is this coding correct? Pin
Christian Graus8-May-08 18:02
protectorChristian Graus8-May-08 18:02 

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.