Ken Kolda
10/25/2004 3:41:00 PM
When you look at the exception that you catch on the client, do you look at
the InnerException property? The client catches the server's exception and
then re-throws its own, with the server exception being set as the inner
exception for the new one. So, to get to the server stack trace, you would
do:
try
{
...
}
catch (Exception ex)
{
Console.WriteLine(ex.InnerException.StrackTrace);
}
Ken
"Serg" <sergNOSPAM@alef.ru> wrote in message
news:eZd1WGpuEHA.3152@TK2MSFTNGP14.phx.gbl...
> Hi Robert
>
> I have tried to switch this.
> It switches off/on Message property, but it does not have any affect on
> StackTrace property :(
> According to MSDN it should, but it does not.
> I can`t see any concerned switches.
> There only remains to think that this is an error in Framework_1.1
> Hope it will be fixed.
>
>
>
> "Robert Jordan" <robertj@gmx.net> wrote in message
> news:cliipp$hjc$00$1@news.t-online.com...
> > Hi Serg,
> >
> > > A little correction.
> > > Of course i see the StackTrace of client side. But it does not include
> > > servers StackTrace.
> > > I want to see the StackTrace from server side and for all
> InnerExceptions.
> > > It is unhelpful to me to see that exception occurs in my clients
method
> that
> > > calls some remote object. After that i should debug my server app to
> find
> > > where the original exception occurs. It takes a LOT of time.
> >
> > You may try this
> >
> > server.exe.config:
> >
> > <configuration>
> > <system.runtime.remoting>
> > <customErrors mode="off" />
> > ...
> >
> > bye
> > Rob
>
>