Re: Exception

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Well, by definition, an exception contains information about the environment
that it was thrown in, but if you catch the original exception that it's
module and line number won't be passed to the client. Only the module and
line of the module that caught the exception and then triggered a new one.

-Scott

"Pablo Noble" <pnoble03@xxxxxxxxxxx> wrote in message
news:ux5C6gREKHA.4432@xxxxxxxxxxxxxxxxxxxxxxx
Hi Scott, thanks for your reply.

But i did that, but when my client catch the exception, he can see the
clase name and the line where the exception was. I wan´t that he can see
that info.
Is it possible ? Can you send me any example on how to encapsule that info
and the client can´t see that info ?

Really, thanks a lot.



"Scott M." <s-mar@xxxxxxxxxxxxx> escribió en el mensaje
news:uquQrbKEKHA.1340@xxxxxxxxxxxxxxxxxxxxxxx
Catch the exception at the web service and then throw your own custom
exception to the client that is populated with whatever information you
want in it.


"Pablo Noble" <pnoble03@xxxxxxxxxxx> wrote in message
news:eusYc2HEKHA.2832@xxxxxxxxxxxxxxxxxxxxxxx
Hi, my question is:

Is ts possible to hide some information when y throw a soapexception
from my web service to my client ? for example, i don´t like the client
see the class and line where the error was ?

thanks in advance







.



Relevant Pages

  • Re: Client Firewall and Outlook
    ... Additionally there are times when a user is on the phone to a client, ... I am trying to add Outlook ... as an exception to the firewall list. ... on windows firewall in control panel. ...
    (microsoft.public.windows.server.sbs)
  • Re: Code design ideas?
    ... app and the webservice, etc. ... Errors of type 1 should be handled by the client side. ... Usually it is the Message of the Exception. ... severity levels: warning and error. ...
    (microsoft.public.dotnet.languages.csharp)
  • Assmebly.Load error using Byte()
    ... I have 2 WebApplication project (dummy and dummy2). ... The first is trying to load a UserControl compiled in the second. ... The web sites are formed of a client part and an administration part. ... An unhandled exception occurred during compilation using ...
    (microsoft.public.dotnet.framework.aspnet)
  • friendly error messages for usernameForCertificateSecurity
    ... returned to the client in a simple way. ... In the code above if I comment out the throwing of the soap exception on the ... "Security requirements are not satisfied because the security header is not ... true error message is a less then desireable solution. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: friendly error messages for usernameForCertificateSecurity
    ... You are receiving that security error because WSE could not validate the ... The WSE core is who creates that exception, and it does not provide a way ... a.You can maybe use a WSE router between the client and the service, ...
    (microsoft.public.dotnet.framework.webservices.enhancements)