OneNote 2010 Add-In load problem

ⅰ亾dé卋堺 提交于 2019-12-25 04:33:39

问题


Googled out- could use some help here.

I followed this excellent tutorial here (http://www.malteahrens.com/#/blog/howto-onenote-dev/) and have created my own onenote 2010 addin, but I am having trouble getting it to STAY in onenote. On first install of the addin, I open onenote and the addin is loaded just fine (registry shows load behavior 3). I close onenote and then simply open it again and my addin is unloaded. Onenote (options-addins-manage com addins) shows there was a load error with com, and the registry shows a load behavior of 2 (errored out). The specific error is:

Load Behavior: Not loaded. A runtime error occurred during the loading of the COM Add-In.

I can enable the plugin displaying this error and it works just fine again- until I restart the app. Seems it just cant load from startup any time except after a fresh install.

Ive enabled logging from one of the links from the site above, and dont see anything interesting in the log. I can't attach to dllhost.exe to debug because its not running. So I don't know any way to even see what is wrong.

Anyone have any ideas how I can debug this load error or ideas of what it might be?


回答1:


Found the problem- I was signing one of my assemblies and had renamed the assembly itself a bit ago. Regenerating the strong assembly signing file fixes the issue.

Still it was trial and error to find, I was unable to find any useful log info that could have helped, so that sux.



来源:https://stackoverflow.com/questions/5269588/onenote-2010-add-in-load-problem

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