.NET VSTO Add In for Excel 2007 not loading config. Issue on one machine only!

别来无恙 提交于 2019-12-11 13:23:09

问题


We have a VSTO Add in for Excel 2007. It works on all the machines in our office except for one. This happened after MS updates last week. Basically, the Add-in won't recognize the config file, but only on that specific machine. We uninstalled/reinstalled the application, then Excel, then the updates without any success. We then did a full Win 7 reinstall, loaded Excel, then our app, and got the same issue. We now have him running our app on a VM with XP and it's fine. No one else in the organization is having this issue. Not sure what else to do at this point since a full windows reinstall did nothing. Any help would be appreciated.

Thanks.


回答1:


Solution:

Start > Run > RegEdit > Hkey_Current_User\Software\Microsoft\Office\Excel\Addin\YourAddInName\

Edit the Manifest key, from:

Manifest="C:\Program Files\\WordAddIn.vsto|vstolocal"

To:

Manifest="file:///C:\Program Files\\WordAddIn.vsto|vstolocal"

To make this work in a deployment, right click on Setup Project in Solution Explorer > click View > Registry > and edit the key.




回答2:


Are there no differences in configuration (OS, software etc) between that machine and the others on which it is working? This looks like it could be related...

VSTO 4.0 SP1 will cause a VSTO Addin to not find its config file.



来源:https://stackoverflow.com/questions/6615271/net-vsto-add-in-for-excel-2007-not-loading-config-issue-on-one-machine-only

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!