开发者

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:

  1. System.
  2. System.AddIn
  3. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜