6.0.10-preview: using ThreadSafetyPolicy causes subclassing Exception to fail

avatar's Avatar

avatar

15 May, 2018 07:18 AM

Producing the error:

Error PS0264: Cannot find declaration System.Exception+__RestrictedErrorObject. Build your project with detailed verbosity to see the assembly loading log.

This can be fixed by either removing the Exception base class, or by removing the ThreadSafetyPolicy.

Repro project enclosed.

Thanks,

Alistair

  1. Support Staff 1 Posted by PostSharp Techn... on 17 May, 2018 05:12 PM

    PostSharp Technologies's Avatar

    Hello,

    Thank you for reporting the issue and for providing reproduction. We have filed an internal bug for this issue (#16091) and we'll get back to you once the bug is fixed.

    -alex

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • SubclassException.zip 67.5 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac