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

Improve : throw TypeLoadException on failing to load a type #8463

Merged
merged 1 commit into from
Jun 5, 2023
Merged

Improve : throw TypeLoadException on failing to load a type #8463

merged 1 commit into from
Jun 5, 2023

Conversation

kwemou
Copy link
Contributor

@kwemou kwemou commented Jun 4, 2023

This is a port of a PR 7851 from 3.7.X to orleans 7.

Currently when Orleans fails to load a type, the exception only contains information of missing assembly.
This PR catches exception on Assembly.Load and attach the failed type information in message so it is more helpful.

See an example issue from #8450 and
the old PR from #7851.
I just did a copy pas of @wangjia184 changes.

Microsoft Reviewers: Open in CodeFlow

…riendly exception during deserialization
@kwemou
Copy link
Contributor Author

kwemou commented Jun 4, 2023

@dotnet-policy-service agree

@ReubenBond
Copy link
Member

Thank you, @kwemou! These kinds of improvements are very helpful

@ReubenBond ReubenBond merged commit 4afe189 into dotnet:main Jun 5, 2023
@kwemou kwemou deleted the port-7851 branch June 6, 2023 06:00
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants