RocketMQ 在 .NET SDK 抛出 System.TypeInitializationException 中的



我正在运行为.NET SDK RocketMQ提供的演示示例 https://help.aliyun.com/document_detail/29561.html?spm=5176.doc29561.3.3.nIAzgT。

但它抛出了以下异常。

An unhandled exception of type 'System.TypeInitializationException' 
Additional information: The type initializer for 'ons.ONSClient4CPPPINVOKE' threw an exception.

我没有得到这个问题的任何解决方案。任何人都可以为例外提供解决方案。

确保 bin 文件夹中安装了 ONSClient4CPP.dll 和 ONSClient4CPP.lib 和 vc++ 2015。

相关内容

最新更新