WCF DataContractFormat for System.Exception
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Okay, so I've been trying to find an answer to this for a while and either I'm not looking in the right place or it's not out there. I figured I'd post here while I continue my search to see if anyone has encountered this. I'm writing a WCF service that needs to accept a System.Exception parameter. I have this done and it's working, problem is that all other exceptions that derive from System.Exception (e.g. ArgumentException) are not recognized, since System.Exception is a System class and not one I created I can't very well decorate it with the KnownType attribute, at least I don't think I can. Does anyone know how I can accept all exception types as a parameter?
- Arcond