2
我公司開發的文檔級的Word 2010定製。當提示從我的系統或任何其他受信任的位置打開文檔時,打開就好了。但是,當我嘗試從網站上的鏈接打開同一個文檔,我得到以下錯誤:VSTO文檔級定製
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定製中可能嗎?