{"action":"created","issue":{"url":"https://api.github.com/repos/x360ce/x360ce/issues/118","labels_url":"https://api.github.com/repos/x360ce/x360ce/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/x360ce/x360ce/issues/118/comments","events_url":"https://api.github.com/repos/x360ce/x360ce/issues/118/events","html_url":"https://github.com/x360ce/x360ce/issues/118","id":83082313,"number":118,"title":"Crashes on invalid permissions","user":{"login":"Palid","id":3636685,"avatar_url":"https://avatars.githubusercontent.com/u/3636685?v=3","gravatar_id":"","url":"https://api.github.com/users/Palid","html_url":"https://github.com/Palid","followers_url":"https://api.github.com/users/Palid/followers","following_url":"https://api.github.com/users/Palid/following{/other_user}","gists_url":"https://api.github.com/users/Palid/gists{/gist_id}","starred_url":"https://api.github.com/users/Palid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Palid/subscriptions","organizations_url":"https://api.github.com/users/Palid/orgs","repos_url":"https://api.github.com/users/Palid/repos","events_url":"https://api.github.com/users/Palid/events{/privacy}","received_events_url":"https://api.github.com/users/Palid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-31T12:51:47Z","updated_at":"2015-05-31T13:07:07Z","closed_at":null,"body":"Error message when starting application from D drive (C is an SSD drive with just system, all the games are on HDD D drive).\r\nSystem: Windows 8.1 PRO\r\n\r\n    See the end of this message for details on invoking \r\n    just-in-time (JIT) debugging instead of this dialog box.\r\n    \r\n    ************** Exception Text **************\r\n    System.UnauthorizedAccessException: Access to the path 'D:\\$RECYCLE.BIN\\S-1-5-18' is denied.\r\n       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n       at System.IO.FileSystemEnumerableIterator`1.AddSearchableDirsToStack(SearchData localSearchData)\r\n       at System.IO.FileSystemEnumerableIterator`1.MoveNext()\r\n       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)\r\n       at System.IO.DirectoryInfo.InternalGetFiles(String searchPattern, SearchOption searchOption)\r\n       at x360ce.App.Controls.NewDeviceForm.LoadSettingsFromFolder(String folderName)\r\n       at x360ce.App.Controls.NewDeviceForm.NextButton_Click(Object sender, EventArgs e)\r\n       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)\r\n       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)\r\n       at System.Windows.Forms.Control.WndProc(Message& m)\r\n       at System.Windows.Forms.ButtonBase.WndProc(Message& m)\r\n       at System.Windows.Forms.Button.WndProc(Message& m)\r\n       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n    \r\n    \r\n    ************** Loaded Assemblies **************\r\n    mscorlib\r\n        Assembly Version: 4.0.0.0\r\n        Win32 Version: 4.0.30319.34014 built by: FX45W81RTMGDR\r\n        CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll\r\n    ----------------------------------------\r\n    x360ce\r\n        Assembly Version: 3.0.6.39\r\n        Win32 Version: 3.0.6.39\r\n        CodeBase: file:///D:/x360ce_x64.exe\r\n    ----------------------------------------\r\n    System.Configuration.Install\r\n        Assembly Version: 4.0.0.0\r\n        Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL\r\n        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration.Install/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.Install.dll\r\n    ----------------------------------------\r\n    System\r\n        Assembly Version: 4.0.0.0\r\n        Win32 Version: 4.0.30319.34239 built by: FX452RTMGDR\r\n        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll\r\n    ----------------------------------------\r\n    System.Windows.Forms\r\n        Assembly Version: 4.0.0.0\r\n        Win32 Version: 4.0.30319.34250 built by: FX452RTMGDR\r\n        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll\r\n    ----------------------------------------\r\n    System.Drawing\r\n        Assembly Version: 4.0.0.0\r\n        Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL\r\n        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll\r\n    ----------------------------------------\r\n    System.Configuration\r\n        Assembly Version: 4.0.0.0\r\n        Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL\r\n        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll\r\n    ----------------------------------------\r\n    SharpDX.DirectInput\r\n        Assembly Version: 2.6.3.0\r\n        Win32 Version: 3.0.6.39\r\n        CodeBase: file:///D:/x360ce_x64.exe\r\n    ----------------------------------------\r\n    SharpDX\r\n        Assembly Version: 2.6.3.0\r\n        Win32 Version: 3.0.6.39\r\n        CodeBase: file:///D:/x360ce_x64.exe\r\n    ----------------------------------------\r\n    System.Core\r\n        Assembly Version: 4.0.0.0\r\n        Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL\r\n        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll\r\n    ----------------------------------------\r\n    System.Xml\r\n        Assembly Version: 4.0.0.0\r\n        Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR\r\n        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll\r\n    ----------------------------------------\r\n    x360ce.Engine\r\n        Assembly Version: 1.0.0.0\r\n        Win32 Version: 3.0.6.39\r\n        CodeBase: file:///D:/x360ce_x64.exe\r\n    ----------------------------------------\r\n    System.Data.Entity\r\n        Assembly Version: 4.0.0.0\r\n        Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL\r\n        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.Entity/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Entity.dll\r\n    ----------------------------------------\r\n    System.Runtime.Serialization\r\n        Assembly Version: 4.0.0.0\r\n        Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR\r\n        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll\r\n    ----------------------------------------\r\n    System.Data\r\n        Assembly Version: 4.0.0.0\r\n        Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL\r\n        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll\r\n    ----------------------------------------\r\n    Microsoft.GeneratedCode\r\n        Assembly Version: 1.0.0.0\r\n        Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR\r\n        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll\r\n    ----------------------------------------\r\n    System.ComponentModel.DataAnnotations\r\n        Assembly Version: 4.0.0.0\r\n        Win32 Version: 4.0.30319.33440\r\n        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll\r\n    ----------------------------------------\r\n    System.Numerics\r\n        Assembly Version: 4.0.0.0\r\n        Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL\r\n        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll\r\n    ----------------------------------------\r\n    \r\n    ************** JIT Debugging **************\r\n    To enable just-in-time (JIT) debugging, the .config file for this\r\n    application or computer (machine.config) must have the\r\n    jitDebugging value set in the system.windows.forms section.\r\n    The application must also be compiled with debugging\r\n    enabled.\r\n    \r\n    For example:\r\n    \r\n    <configuration>\r\n        <system.windows.forms jitDebugging=\"true\" />\r\n    </configuration>\r\n    \r\n    When JIT debugging is enabled, any unhandled exception\r\n    will be sent to the JIT debugger registered on the computer\r\n    rather than be handled by this dialog box.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/x360ce/x360ce/issues/comments/107174286","html_url":"https://github.com/x360ce/x360ce/issues/118#issuecomment-107174286","issue_url":"https://api.github.com/repos/x360ce/x360ce/issues/118","id":107174286,"user":{"login":"tapcio","id":8019035,"avatar_url":"https://avatars.githubusercontent.com/u/8019035?v=3","gravatar_id":"","url":"https://api.github.com/users/tapcio","html_url":"https://github.com/tapcio","followers_url":"https://api.github.com/users/tapcio/followers","following_url":"https://api.github.com/users/tapcio/following{/other_user}","gists_url":"https://api.github.com/users/tapcio/gists{/gist_id}","starred_url":"https://api.github.com/users/tapcio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tapcio/subscriptions","organizations_url":"https://api.github.com/users/tapcio/orgs","repos_url":"https://api.github.com/users/tapcio/repos","events_url":"https://api.github.com/users/tapcio/events{/privacy}","received_events_url":"https://api.github.com/users/tapcio/received_events","type":"User","site_admin":false},"created_at":"2015-05-31T13:07:07Z","updated_at":"2015-05-31T13:07:07Z","body":"What ? D:\\$RECYCLE.BIN\\S-1-5-18 ? You running it from Recycle bin ?\r\nAlso you have folder with invalid permission in D:\\$RECYCLE.BIN, maybe it was left after Windows re-installation. Remove whole D:\\$RECYCLE.BIN and it should fix this. \r\n\r\nPS: $RECYCLE.BIN is hidden system folder."}}