{"action":"created","issue":{"url":"https://api.github.com/repos/zeromq/clrzmq4/issues/19","labels_url":"https://api.github.com/repos/zeromq/clrzmq4/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/zeromq/clrzmq4/issues/19/comments","events_url":"https://api.github.com/repos/zeromq/clrzmq4/issues/19/events","html_url":"https://github.com/zeromq/clrzmq4/issues/19","id":60464174,"number":19,"title":"Unhandled Exception of type 'System.TypeInitializationException' occured in ZeroMQ.dll","user":{"login":"tuldok89","id":854884,"avatar_url":"https://avatars.githubusercontent.com/u/854884?v=3","gravatar_id":"","url":"https://api.github.com/users/tuldok89","html_url":"https://github.com/tuldok89","followers_url":"https://api.github.com/users/tuldok89/followers","following_url":"https://api.github.com/users/tuldok89/following{/other_user}","gists_url":"https://api.github.com/users/tuldok89/gists{/gist_id}","starred_url":"https://api.github.com/users/tuldok89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuldok89/subscriptions","organizations_url":"https://api.github.com/users/tuldok89/orgs","repos_url":"https://api.github.com/users/tuldok89/repos","events_url":"https://api.github.com/users/tuldok89/events{/privacy}","received_events_url":"https://api.github.com/users/tuldok89/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-10T08:11:32Z","updated_at":"2015-11-19T03:38:10Z","closed_at":"2015-03-10T10:12:18Z","body":"![capture](https://cloud.githubusercontent.com/assets/854884/6571181/09565742-c740-11e4-8b2e-283685182700.PNG)\r\n\r\n\r\nSo I tried running the HWClient sample using the latest ZeroMQ nuget package. I've tried compiling it for both .net 4.0 and .net 4.5, and the results are the same. \r\n\r\nUpon the instantiation of ZContext, TypeInitializationException gets thrown.\r\n\r\nThe inner exception is: {\"UnmanagedLibrary[libzmq] Unable to load library \\\"libzmq\\\" from\r\n\\\"C:\\\\TEMP\\\\libzmq.dll\\\". Inspect Trace output for details.\":\"C:\\\\TEMP\r\n\\\\libzmq.dll\"}\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/zeromq/clrzmq4/issues/comments/157942113","html_url":"https://github.com/zeromq/clrzmq4/issues/19#issuecomment-157942113","issue_url":"https://api.github.com/repos/zeromq/clrzmq4/issues/19","id":157942113,"user":{"login":"super999","id":2546263,"avatar_url":"https://avatars.githubusercontent.com/u/2546263?v=3","gravatar_id":"","url":"https://api.github.com/users/super999","html_url":"https://github.com/super999","followers_url":"https://api.github.com/users/super999/followers","following_url":"https://api.github.com/users/super999/following{/other_user}","gists_url":"https://api.github.com/users/super999/gists{/gist_id}","starred_url":"https://api.github.com/users/super999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/super999/subscriptions","organizations_url":"https://api.github.com/users/super999/orgs","repos_url":"https://api.github.com/users/super999/repos","events_url":"https://api.github.com/users/super999/events{/privacy}","received_events_url":"https://api.github.com/users/super999/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T03:38:10Z","updated_at":"2015-11-19T03:38:10Z","body":"Thanks, this issue is solved by the above answer: \"Please set the files in i386 and amd64 to \"copy if newer\" (.dll for Windows and .so for Linux).\"  +1"}}