Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. WCF DataContractFormat for System.Exception

WCF DataContractFormat for System.Exception

Scheduled Pinned Locked Moved C#
csharpwcfhelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bit_cmdr
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups