Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make exceptions serializable #573

Closed
SimonCropp opened this issue Sep 16, 2014 · 2 comments
Closed

Make exceptions serializable #573

SimonCropp opened this issue Sep 16, 2014 · 2 comments

Comments

@SimonCropp
Copy link

for example this https://github.com/autofac/Autofac/blob/master/Core/Source/Autofac/Core/DependencyResolutionException.cs

need a PR?

@alexmg
Copy link
Member

alexmg commented Sep 16, 2014

This was one of the biggest PITA issues that I came across when moving to PCL. There is no support for the Serializable attribute with the platforms we have targeted. I would love to know if there is a work around for this; the response from Microsoft was basically that was "old school" stuff that nobody uses now. It seems they think types don't cross AppDomain boundaries these days. I don't know why it was an issue considering it's just an attribute and doesn't have any behaviour. We were moving away from all the #if directives and this was one of the gaps.

@tillig
Copy link
Member

tillig commented Sep 16, 2014

This is actually a duplicate of #456.

The official Microsoft position seems to be that if you want to marshal exceptions across AppDomains (a model they are apparently moving away from) then it's up to the consuming code to handle that serialization. See discussion in #456 for reference articles.

@tillig tillig closed this as completed Sep 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants