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

ComponentNotRegisteredException is not serialized properly #631

Closed
MpDzik opened this issue Apr 4, 2015 · 1 comment
Closed

ComponentNotRegisteredException is not serialized properly #631

MpDzik opened this issue Apr 4, 2015 · 1 comment

Comments

@MpDzik
Copy link

MpDzik commented Apr 4, 2015

ComponentNotRegisteredException is not marked with the SerializableAttribute, and therefore when the exception is passed between an AppDomain boundry, the following exception occurs:

System.Runtime.Serialization.SerializationException: Type 'Autofac.Core.Registration.ComponentNotRegisteredException' in Assembly 'Autofac, Version=3.5.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da' is not marked as serializable.

I can provide a pull request to fix this.

@tillig
Copy link
Member

tillig commented Apr 4, 2015

Duplicate of #456.

Exceptions in portable classes libraries can't be marked serializable. See #456 for a detailed explanation.

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

No branches or pull requests

2 participants