OneNote COM Addin only loads manually

China☆狼群 提交于 2019-12-11 05:24:01

问题


I have been working on a COM add-in for OneNote based on the tutorial at http://www.malteahrens.com/#/blog/howto-onenote-dev/ and http://support.microsoft.com/kb/2555352. It builds fine, however, when I load OneNote, I have to manually go through to options to start the add in. It tells me a "runtime error occurred during the loading of the COM add-in." Once the add-in is loaded manually it works as it should. I've been searching around on the internet for a while without much luck.

I have tried looking at Fusion logs, but can't make any sense of the errors:

LOG: Download of application configuration file was attempted from file:///C:/Windows/SysWOW64/DllHost.exe.config. LOG: Configuration file C:\Windows\SysWOW64\DllHost.exe.config does not exist. LOG: No application configuration file found. LOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/Windows/SysWOW64/CSOneNoteRibbonAddIn.DLL. LOG: Attempting download of new URL file:///C:/Windows/SysWOW64/CSOneNoteRibbonAddIn/CSOneNoteRibbonAddIn.DLL. LOG: Attempting download of new URL file:///C:/Windows/SysWOW64/CSOneNoteRibbonAddIn.EXE. LOG: Attempting download of new URL file:///C:/Windows/SysWOW64/CSOneNoteRibbonAddIn/CSOneNoteRibbonAddIn.EXE.

I have also tried try catch blocks with logging with no luck. I am using VS 2010 Pro. Thanks.

来源:https://stackoverflow.com/questions/6552425/onenote-com-addin-only-loads-manually

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