System.AddIn AddInView assembly strong name issue
I've built up an application that works using the System.AddIn APIs. Add-ins are currently activated in an external AppDomain with Internet trust.
In order to improve performance I've added strong names to all my pipeline c开发者_开发知识库omponents. However as soon as I did this I get the following exception when trying to activate my add-in:
System.Security.SecurityException: That assembly does not allow partially trusted callers.
Looking at the fusion logs the error messages indicate this is due to the AddInView assembly not allowing partially trusted callers. However, I've added the [assembly: AllowPartiallyTrustedCallers] attribute to the assembly. The only assemblies AddInView references are:
- System.
- System.AddIn
- System.AddIn.Contract
Any ideas how to resolve this issue?
I think you need to add the
[assembly:AllowPartiallyTrustedCallers]
attribute to the AddInView and the AddInViewAdapters assemblies.
精彩评论