“ZeroMQ.lib.zmq”的类型初始值设定项引发异常。clrzmq4
来源:互联网 发布:应急逃生标志淘宝 编辑:程序博客网 时间:2024/06/03 10:54
“ZeroMQ.lib.zmq”的类型初始值设定项引发异常。,clrzmq4
'System.TypeInitializationException' in ZeroMQ.dll("The type initializer for 'ZeroMQ.lib.zmq' threw an exception.")
Connect System.TypeInitializationException: The type initializer for 'ZeroMQ.lib.zmq' threw an exception. ---> System.IO.FileNotFoundException: UnmanagedLibrary[libzmq] Unable to load library "libzmq" from "C:\Windows\TEMP\libzmq.dll". Inspect Trace output for details. ---> System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from
static void Main(string[] args) { try { using (var context = ZContext.Create()) using (var publisher = new ZSocket(context, ZSocketType.PUB)) { string address = "tcp://*:5556"; Console.WriteLine("I: Publisher.Bind'ing on {0}", address); publisher.Bind(address); // Initialize random number generator var rnd = new Random(); while (true) { // Get values that will fool the boss int zipcode = rnd.Next(99999); int temperature = rnd.Next(-55, +45); // Send message to all subscribers var update = string.Format("{0:D5} {1}", zipcode, temperature); using (var updateFrame = new ZFrame(update)) { publisher.Send(updateFrame); Console.WriteLine(update); System.Threading.Thread.Sleep(1000); } } } } catch (Exception exp) { Console.WriteLine(exp.Message); } Console.ReadKey(); }
在bin目录下建立bin\Debug\i386\libzmq.dll
1 0
- “ZeroMQ.lib.zmq”的类型初始值设定项引发异常。clrzmq4
- 类型初始值设定项引发异常
- 类型初始值设定项引发异常
- 某某 类型初始值设定项引发异常
- 类型初始值设定项引发异常
- 类型初始值设定项引发异常
- 类型初始值设定项引发异常
- 类型初始值设定项引发异常
- 类型初始值设定项引发异常
- 类型初始值设定项引发异常
- 类型初始值设定项引发异常
- 类型初始值设定项引发异常
- 类型初始值设定项引发异常
- C#类型初始值设定项引发异常
- 类型初始值设定项引发异常
- c# 类型初始值设定项引发异常
- C# 类型初始值设定项引发异常
- 类型初始值设定项引发异常
- Linux菜鸟的入门学习
- Unity 开发小知识点
- CentOS分区大于2TB的磁盘以及格式化大于16TB分区的解决方案
- QT窗口部件
- django迁移到apache生产环境步骤以及遇到的坑
- “ZeroMQ.lib.zmq”的类型初始值设定项引发异常。clrzmq4
- 微信小程序入门-简单页面编写
- Unable to execute dex: Multiple dex files define 已解决
- linux学习之读写文件
- android调用c++
- 【解惑】Java动态绑定机制的内幕
- LinearLayout 实现内容显示在水平两侧
- JavaScript实现拖拽元素对齐到网格(每次移动固定距离)
- win10的VS2015下配置opencv3.2