VSTO文档级别自定义

时间:2013-02-08 10:26:35

标签: visual-studio-2010 c#-4.0 vsto ms-office

我开发了文档级Word 2010自定义。当提示从我的系统或任何其他受信任的位置打开文档时,它打开就好了。但是当我尝试从网站链接中打开相同的文档时,我收到以下错误:

Microsoft.VisualStudio.Tools.Applications.Runtime.CannotCreateCustomizationDomainException:
This document contains custom code that cannot be loaded because the location is
not in your trusted locations list: TestDocument.docx. If you trust this document
you can save and open it from a location on your computer.

我使用有效的.pfx和证书签署了清单。

我已经阅读了一些类似的线程,但发现如果将文档保存到文件系统,将运行自定义。您不能将Temp文件夹设为受信任位置。证书不会这样做,它必须保存到文件系统中的受信任位置。

使用宏进行自定义时没有问题。是否可以在VSTO定制中使用?

1 个答案:

答案 0 :(得分:0)

尝试在互联网选项下将网站的网址添加到IE中的本地Intranet /可信站点。