“new VpnApiClass()” get COM Exception 800701e7 till reboot

房东的猫 提交于 2019-12-11 10:24:45

问题


I am using the CISCO COM object accessed via Interop.VpnApiLib in a C#, .NET2.0 project on Windows 8.1, 64 bit.

I create an instance of the class VpnApiClass from this library with the following line:

 vpnApiLib = new VpnApiClass();

Sometimes this line of code works, but too often, I get the following Exception:

Retrieving the COM class factory for component with CLSID {C15C0F4F-DDFB-4591-AD53-C9A71C9C15C0} failed due to the following error: 800701e7.

Only a Windows reboot helps in such a situation. I googled the error code, and found that it means

"Error: attempt to access invalid address"

Does anyone know what to do to get round this error?


回答1:


Inspired by another bug regarding a similar issue here, we found a workaround. The DLL seems to have a fixed load address. When I load the DLL using LoadLibrary() right at program start, this address is free and ‘new VpnApiClass()’ works.



来源:https://stackoverflow.com/questions/23338598/new-vpnapiclass-get-com-exception-800701e7-till-reboot

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