Skip to content

Exceptions don't get return through HttpProxy? #3538

Discussion options

You must be logged in to vote

Actual exception types do not flow through MobileFormatter. The ability to flow exceptions was always quirky, even with BinaryFormatter and NDCS, and it became more complex over time with modern .NET, and types that may or may not exist on both sides of a remote connection.

Instead look at the ErrorInfo and BusinessErrorInfo properties on DataPortalException. They are intended to provide access to the full exception tree, but in a way that doesn't rely on the .NET type system - so it works reliably across remote boundaries where the same types often can't exist.

Replies: 5 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@ajohnstone-ks
Comment options

@swegele
Comment options

@ajohnstone-ks
Comment options

Comment options

You must be logged in to vote
1 reply
@ajohnstone-ks
Comment options

Answer selected by ajohnstone-ks
Comment options

You must be logged in to vote
1 reply
@ajohnstone-ks
Comment options

Comment options

You must be logged in to vote
1 reply
@ajohnstone-ks
Comment options

Comment options

You must be logged in to vote
2 replies
@swegele
Comment options

@ajohnstone-ks
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants