ValidationCallHandler on ServiceLayer

Topics: Validation Application Block
Aug 24, 2007 at 10:57 AM
Hi,
I've been looking at putting the ValidationCallHandler on my servicelayer. What i'm trying to figure out is, when a service method is called from asp.net and the validation fails, it throws an exception. If i call the method in code and wrap it in a try catch then fine, i can display a message to the user etc.
But if the method has been called by a DetailsView, GridView etc i dont have the chance to catch this exception. is there a way for me to generically catch the validationexceptions, at the end of the day one generic method could pull out all the error messages and display them to the user. i tried the on application error and GetLastServerError pattern but you end up losing the response stream.
any ideas would be gr8, anyone else doing it a better way etc?
Regards,
Mick
Aug 27, 2007 at 7:44 PM
Hi Mick,

Can you provide more details about your scenario, and provide a repro of it if possible (simple page and service)? Anyway I would say these faults shouldn't be different from any other faults...

Regards,
Fernando