开发者

System.AddIn AddInView assembly strong name issue

开发者 https://www.devze.com 2023-04-04 05:40 出处:网络
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.

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

精彩评论

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

关注公众号