用VS2012開發的Outlook插件,在多數情況下安裝正常,但是在某些機器上,安裝時出現以下錯誤:
打開VSTOInstaller.exe.config檔案檢視,其中内容是:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.net>
<webRequestModules>
<remove prefix="http:"/>
<remove prefix="https:"/>
<add prefix="http:"
type="Microsoft.Office.BusinessApplications.Fba.HttpFbaRequestCreator,Microsoft.Office.BusinessApplications.Fba,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" />
<add prefix="https:"
type="Microsoft.Office.BusinessApplications.Fba.HttpFbaRequestCreator,Microsoft.Office.BusinessApplications.Fba,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" />
</webRequestModules>
</system.net>
</configuration>
出現錯誤的都是Outlook 2013,作業系統有Windows 7和Windows 8。
但是有些同樣配置的機器卻可以正常安裝,可以自動将Microsoft.Office.BusinessApplications.Fba.dll注冊至GAC中。
不知道其中的Microsoft.Office.BusinessApplications.Fba是什麼用途?正常安裝的此dll是從哪裡來的?
是不是與Outlook版本有關?如何解決?
解決方案: 删除或重命名 VSTOInstaller.exe.config,再點選項目檔案***********.vsto進行安裝.