The value of the property 'type' cannot be parsed
Issue:在安装Office add-in时,有时会报关于VSTOInstaller.exe.Config的错误,具体错误代码如下
"The value of the property 'type' cannot be parsed. The error is: Could not load file or assembly 'Microsoft.Office.BusinessApplications.Fba, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependancies. The system cannot find the file specified. (C:\Program Files (x86)\Common Files\Microsoft Shared\VSTO\10.0\VSTOInstaller.exe.Config line 10)"
Solution:
1.VSTOInstaller.Config默认情况下是不会创建的,如果不需要使用,可以直接删除,然后再次安装ClickOnce
2.可以修改VSTOInstaller.Config的内容,将下面这行
type="Microsoft.Office.BusinessApplications.Fba.HttpFbaRequestCreator,Microsoft.Office.BusinessApplications.Fba,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c"
替换为
type="Microsoft.Office.BusinessApplications.Runtime.DeploymentAction.HttpFbaRequestCreator,Microsoft.Office.BusinessApplications.Runtime,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c"
Reference
Problem with VSTOInstaller.Config