{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/clrmd/issues/29","labels_url":"https://api.github.com/repos/Microsoft/clrmd/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/clrmd/issues/29/comments","events_url":"https://api.github.com/repos/Microsoft/clrmd/issues/29/events","html_url":"https://github.com/Microsoft/clrmd/issues/29","id":113299376,"number":29,"title":"System.DllNotFoundException","user":{"login":"ppekrol","id":446555,"avatar_url":"https://avatars.githubusercontent.com/u/446555?v=3","gravatar_id":"","url":"https://api.github.com/users/ppekrol","html_url":"https://github.com/ppekrol","followers_url":"https://api.github.com/users/ppekrol/followers","following_url":"https://api.github.com/users/ppekrol/following{/other_user}","gists_url":"https://api.github.com/users/ppekrol/gists{/gist_id}","starred_url":"https://api.github.com/users/ppekrol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppekrol/subscriptions","organizations_url":"https://api.github.com/users/ppekrol/orgs","repos_url":"https://api.github.com/users/ppekrol/repos","events_url":"https://api.github.com/users/ppekrol/events{/privacy}","received_events_url":"https://api.github.com/users/ppekrol/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/clrmd/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-26T07:24:27Z","updated_at":"2015-10-28T17:28:11Z","closed_at":null,"body":"Hi,\r\n\r\nwe are using ClrMD in RavenDB to get stacktraces of our process. In most cases it works properly (had some issues with .NET 4.6 but latest version resolved that problem - thanks), but on some we are getting following exception:\r\n\r\n```\r\nSystem.DllNotFoundException: Unable to load DLL 'dbgeng.dll': The specified procedure could not be found. (Exception from HRESULT: 0x8007007F) at \r\nMicrosoft.Diagnostics.Runtime.Desktop.NativeMethods.DebugCreate(Guid& InterfaceId, Object& Interface) at \r\nMicrosoft.Diagnostics.Runtime.DbgEngDataReader.CreateIDebugClient() at \r\nMicrosoft.Diagnostics.Runtime.DbgEngDataReader..ctor(Int32 pid, AttachFlag flags, UInt32 msecTimeout) at \r\nMicrosoft.Diagnostics.Runtime.DataTarget.AttachToProcess(Int32 pid, UInt32 msecTimeout, AttachFlag attachFlag) at \r\nRaven.Debug.Program.ShowStackTrace(Int32 processId, UInt32 attachTimeout, String outputPath) at \r\nRaven.Debug.Program.Main(String[] args) at \r\nRaven.Database.Server.Controllers.Admin.AdminController.DumpStacktrace(ZipArchive package) in c:\\workspaces\\HR\\ravendb\\Raven.Database\\Server\\Controllers\\Admin\\AdminController.cs:line 849\r\n```\r\n\r\nNot sure what is the reason and why it only happens on some machines.\r\n\r\nI would appreciate your help/feedback.\r\n\r\nThis is how it works on our side:\r\n1. We are sending a request to a WebAPI controller\r\n2. Controller spawns new process to get the stacktraces (extracts the program from embedded resource):\r\nhttps://github.com/ayende/ravendb/blob/master/Raven.Database/Server/Controllers/Admin/AdminController.cs#L857\r\n3. The program is called Raven.Debug and can be found here: https://github.com/ppekrol/ravendb/blob/master/Raven.Debug/Program.cs#L53\r\n\r\nNot sure if this can help, but on my machine I have a pretty fresh (1 month) Windows 10 Professional with VS2015 installed."},"comment":{"url":"https://api.github.com/repos/Microsoft/clrmd/issues/comments/151918466","html_url":"https://github.com/Microsoft/clrmd/issues/29#issuecomment-151918466","issue_url":"https://api.github.com/repos/Microsoft/clrmd/issues/29","id":151918466,"user":{"login":"leculver","id":8496639,"avatar_url":"https://avatars.githubusercontent.com/u/8496639?v=3","gravatar_id":"","url":"https://api.github.com/users/leculver","html_url":"https://github.com/leculver","followers_url":"https://api.github.com/users/leculver/followers","following_url":"https://api.github.com/users/leculver/following{/other_user}","gists_url":"https://api.github.com/users/leculver/gists{/gist_id}","starred_url":"https://api.github.com/users/leculver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leculver/subscriptions","organizations_url":"https://api.github.com/users/leculver/orgs","repos_url":"https://api.github.com/users/leculver/repos","events_url":"https://api.github.com/users/leculver/events{/privacy}","received_events_url":"https://api.github.com/users/leculver/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T17:28:11Z","updated_at":"2015-10-28T17:28:11Z","body":"One last thing to try.  Can you successfully run this program on the machines where this is failing?\r\n\r\nhttps://gist.github.com/leculver/b48d6c7eb5a99f94af5a"}}