ylbtech-Error-ONS:ONS Exception |
·
System.TypeInitializationException
HResult=0x80131534
Message=“ons.ONSClient4CPPPINVOKE”的类型初始值设定项引发异常。
Source=ConsoleApp2
StackTrace:
在 ons.ONSClient4CPPPINVOKE.ONSFactory_getInstance()
在 ons.ONSFactory.getInstance() 在 C:UsersAdministratorsource
eposSolution6ConsoleApp2ONSFactory.cs 中: 第 44 行
在 test.OnscSharp.CreateProducer() 在 C:UsersAdministratorsource
eposSolution6ConsoleApp2ConsumerAndProducerForEx.cs 中: 第 197 行
在 test.ConsumerAndProducerForEx.Main(String[] args) 在 C:UsersAdministratorsource
eposSolution6ConsoleApp2ConsumerAndProducerForEx.cs 中: 第 221 行
内部异常 1:
TypeInitializationException: “SWIGExceptionHelper”的类型初始值设定项引发异常。
内部异常 2:
BadImageFormatException: 试图加载格式不正确的程序。 (异常来自 HRESULT:0x8007000B)
·