I'm using VS2013, castle windsor v 3.3, winform project in C#,.NET
Framework 4.0.
If i mark the class of a form with the attribute
[Castle.Core.Interceptor(typeof(MyInterceptor))]
and the form have the property AllowDrop = true
at runtime will raise a ComponentActivatorException
{"ComponentActivator: could not proxy FormTest"}
inner exception:
Can not create proxy for type System.Windows.Forms.ISupportOleDropSource
because it is not accessible. Make it public, or internal and mark your
assembly with [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2,
PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")]
attribute, because assembly System.Windows.Forms is strong-named."
if I set AllowDrop = false all work fine.
There is some workaround?
--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.