{"action":"created","issue":{"url":"https://api.github.com/repos/Hyrules/WinHue3/issues/45","repository_url":"https://api.github.com/repos/Hyrules/WinHue3","labels_url":"https://api.github.com/repos/Hyrules/WinHue3/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/Hyrules/WinHue3/issues/45/comments","events_url":"https://api.github.com/repos/Hyrules/WinHue3/issues/45/events","html_url":"https://github.com/Hyrules/WinHue3/issues/45","id":195295628,"number":45,"title":"CTD on no write access","user":{"login":"MaddBomber83","id":7620950,"avatar_url":"https://avatars.githubusercontent.com/u/7620950?v=3","gravatar_id":"","url":"https://api.github.com/users/MaddBomber83","html_url":"https://github.com/MaddBomber83","followers_url":"https://api.github.com/users/MaddBomber83/followers","following_url":"https://api.github.com/users/MaddBomber83/following{/other_user}","gists_url":"https://api.github.com/users/MaddBomber83/gists{/gist_id}","starred_url":"https://api.github.com/users/MaddBomber83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaddBomber83/subscriptions","organizations_url":"https://api.github.com/users/MaddBomber83/orgs","repos_url":"https://api.github.com/users/MaddBomber83/repos","events_url":"https://api.github.com/users/MaddBomber83/events{/privacy}","received_events_url":"https://api.github.com/users/MaddBomber83/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-13T16:11:41Z","updated_at":"2016-12-13T17:01:02Z","closed_at":null,"body":"When scanning / adding a bridge, it gets to the part to save the information, it will throw an exception on close if it does not have write access.\r\n\r\nMy Documents is under Ransom Protection.  When it threw the exception Bit Defender notified me it blah blah blah.  Added WinHue to the trusted apps.  No issue next time.\r\n\r\nOther than a graceful (write access denied) message, not sure there is anything else to do.\r\n\r\n`2016-12-13 08:03:06,147 [1] DEBUG WinHue3.BridgeDetectionPairingView [Hue_OnIpScanProgressReport:434] ==> Hue IP scan progress report : 253\r\n2016-12-13 08:03:06,212 [1] DEBUG WinHue3.BridgeDetectionPairingView [set_ProgressBarValue:128] ==> ProgressBarValue : 254\r\n2016-12-13 08:03:06,212 [1] DEBUG WinHue3.BridgeDetectionPairingView [Hue_OnIpScanProgressReport:434] ==> Hue IP scan progress report : 254\r\n2016-12-13 08:03:06,278 [1] DEBUG WinHue3.BridgeDetectionPairingView [set_UserMessage:176] ==> UserMessage : Scanning complete.\r\n2016-12-13 08:03:06,279 [1] DEBUG WinHue3.BridgeDetectionPairingView [set_ScanButtonText:209] ==> ScanButtonText : Scan\r\n2016-12-13 08:03:06,280 [1] INFO  WinHue3.BridgeDetectionPairingView [Hue_OnIpScanComplete:446] ==> Scan for bridge completed.\r\n2016-12-13 08:03:07,648 [1] DEBUG WinHue3.BridgeDetectionPairingView [set_SelectedBridge:139] ==> SelectedBridge : ipaddress : 192.168.1.17, IsDefault : True, SwVersion : 01035934, Mac : 00:17:88:18:55:c4, ApiVersion : 1.15.0, ApiKey : dY764p-oVqIAlxWBfWXpYMq5H6VT-ftR3zcz8-vk, BridgeUrl : http://192.168.1.17/api/dY764p-oVqIAlxWBfWXpYMq5H6VT-ftR3zcz8-vk \r\n2016-12-13 08:03:07,653 [1] DEBUG WinHue3.BridgeDetectionPairingView [set_CanPair:164] ==> CanPair : False\r\n2016-12-13 08:03:09,628 [1] DEBUG WinHue3.WinHueSettings [Save:32] ==> Saving settings : {\"BridgeInfo\":{\"00:17:88:18:55:c4\":{\"ip\":\"192.168.1.17\",\"apikey\":\"dY764p-oVqIAlxWBfWXpYMq5H6VT-ftR3zcz8-vk\",\"apiversion\":\"1.15.0\",\"swversion\":\"01035934\",\"name\":\"The Hue Hub\"}},\"DefaultBridge\":\"00:17:88:18:55:c4\",\"ShowHiddenScenes\":false,\"Language\":\"en-US\",\"DetectProxy\":false,\"EnableDebug\":true,\"LiveSliders\":false,\"UpnpTimeout\":5000,\"DelayLiveSliders\":25,\"StartWithWindows\":false,\"StartMode\":0,\"listHotKeys\":[]}\r\n2016-12-13 08:03:09,629 [1] ERROR WinHue3.WinHueSettings [Save:48] ==> Error while saving the settings.\r\nSystem.UnauthorizedAccessException: Access to the path 'C:\\Users\\Brent\\OneDrive\\Documents\\WinHue\\WinHueSettings.set' is denied.\r\n   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)\r\n   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)\r\n   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)\r\n   at System.IO.File.WriteAllText(String path, String contents)\r\n   at WinHue3.WinHueSettings.Save() in D:\\Documents\\Visual Studio 2012\\Projects\\WinHue3_1\\WinHue3\\Utils\\WinHueSettings.cs:line 41\r\n2016-12-13 08:03:25,049 [1] ERROR WinHue3.Form_BridgeDetectionPairing [btnDone_Click:46] ==> Error while saving settings.\r\n2016-12-13 08:03:26,346 [1] DEBUG WinHue3.WinHueSettings [Save:32] ==> Saving settings : {\"BridgeInfo\":{\"00:17:88:18:55:c4\":{\"ip\":\"192.168.1.17\",\"apikey\":\"dY764p-oVqIAlxWBfWXpYMq5H6VT-ftR3zcz8-vk\",\"apiversion\":\"1.15.0\",\"swversion\":\"01035934\",\"name\":\"The Hue Hub\"}},\"DefaultBridge\":\"00:17:88:18:55:c4\",\"ShowHiddenScenes\":false,\"Language\":\"en-US\",\"DetectProxy\":false,\"EnableDebug\":true,\"LiveSliders\":false,\"UpnpTimeout\":5000,\"DelayLiveSliders\":25,\"StartWithWindows\":false,\"StartMode\":0,\"listHotKeys\":[]}\r\n2016-12-13 08:03:26,350 [1] INFO  WinHue3.MainFormView [LoadBridge:667] ==> Loading bridge...\r\n2016-12-13 08:03:26,350 [1] DEBUG WinHue3.MainFormView [AssociateBridgeWithApiKey:653] ==> Associating bridge 192.168.1.17 with APIkey dY764p-oVqIAlxWBfWXpYMq5H6VT-ftR3zcz8-vk\r\n2016-12-13 08:03:33,061 [1] FATAL WinHue3.App [CurrentDomain_UnhandledException:74] ==> Unexpected Exception : \r\nSystem.NullReferenceException: Object reference not set to an instance of an object.\r\n   at WinHue3.MainFormView.MessageAdded(Object sender, EventArgs e) in D:\\Documents\\Visual Studio 2012\\Projects\\WinHue3_1\\WinHue3\\Views\\MainFormView.cs:line 728\r\n   at HueLib2.Bridge.set_lastMessages(MessageCollection value) in D:\\Documents\\Visual Studio 2012\\Projects\\WinHue3_1\\HueLib2\\Bridge\\Bridge.cs:line 118\r\n   at HueLib2.Bridge.GetBridgeSettings() in D:\\Documents\\Visual Studio 2012\\Projects\\WinHue3_1\\HueLib2\\Bridge\\Bridge_Settings.cs:line 68\r\n   at WinHue3.HueObjectHelper.IsAuthorized(Bridge bridge) in D:\\Documents\\Visual Studio 2012\\Projects\\WinHue3_1\\WinHue3\\Utils\\HueObjectHelper.cs:line 730\r\n   at WinHue3.MainFormView.AssociateBridgeWithApiKey(ObservableCollection`1 bridge) in D:\\Documents\\Visual Studio 2012\\Projects\\WinHue3_1\\WinHue3\\Views\\MainFormView.cs:line 655\r\n   at WinHue3.MainFormView.LoadBridge() in D:\\Documents\\Visual Studio 2012\\Projects\\WinHue3_1\\WinHue3\\Views\\MainFormView.cs:line 668\r\n   at WinHue3.MainFormView.DoBridgePairing() in D:\\Documents\\Visual Studio 2012\\Projects\\WinHue3_1\\WinHue3\\Views\\MainFormView.cs:line 878\r\n   at WinHue3.MainFormView.Temp_BridgeNotResponding(Object sender, EventArgs e) in D:\\Documents\\Visual Studio 2012\\Projects\\WinHue3_1\\WinHue3\\Views\\MainFormView.cs:line 722\r\n   at HueLib2.Bridge.GetBridgeDataStore() in D:\\Documents\\Visual Studio 2012\\Projects\\WinHue3_1\\HueLib2\\Bridge\\Bridge.cs:line 194\r\n   at WinHue3.HueObjectHelper.GetBridgeDataStore(Bridge bridge) in D:\\Documents\\Visual Studio 2012\\Projects\\WinHue3_1\\WinHue3\\Utils\\HueObjectHelper.cs:line 639\r\n   at WinHue3.MainFormView.RefreshView() in D:\\Documents\\Visual Studio 2012\\Projects\\WinHue3_1\\WinHue3\\Views\\MainFormView.cs:line 1051\r\n   at WinHue3.MainFormView.set_SelectedBridge(Bridge value) in D:\\Documents\\Visual Studio 2012\\Projects\\WinHue3_1\\WinHue3\\Views\\MainFormView.cs:line 537\r\n   at WinHue3.MainFormView.LoadBridge() in D:\\Documents\\Visual Studio 2012\\Projects\\WinHue3_1\\WinHue3\\Views\\MainFormView.cs:line 702\r\n   at WinHue3.MainFormView..ctor(Form_EventLog fel) in D:\\Documents\\Visual Studio 2012\\Projects\\WinHue3_1\\WinHue3\\Views\\MainFormView.cs:line 81\r\n   at WinHue3.MainWindow.Window_ContentRendered(Object sender, EventArgs e) in D:\\Documents\\Visual Studio 2012\\Projects\\WinHue3_1\\WinHue3\\MainWindow.xaml.cs:line 81\r\n   at System.Windows.Window.OnContentRendered(EventArgs e)\r\n   at System.Windows.Window.<PostContentRendered>b__198_0(Object unused)\r\n   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)\r\n   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)\r\n   at System.Windows.Threading.DispatcherOperation.InvokeImpl()\r\n   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Windows.Threading.DispatcherOperation.Invoke()\r\n   at System.Windows.Threading.Dispatcher.ProcessQueue()\r\n   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)\r\n   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)\r\n   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)\r\n   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)\r\n   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)\r\n   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)\r\n   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)\r\n   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)\r\n   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)\r\n   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)\r\n   at System.Windows.Application.RunDispatcher(Object ignore)\r\n   at System.Windows.Application.RunInternal(Window window)\r\n   at System.Windows.Application.Run(Window window)\r\n   at System.Windows.Application.Run()\r\n   at WinHue3.App.Main()`"},"comment":{"url":"https://api.github.com/repos/Hyrules/WinHue3/issues/comments/266796365","html_url":"https://github.com/Hyrules/WinHue3/issues/45#issuecomment-266796365","issue_url":"https://api.github.com/repos/Hyrules/WinHue3/issues/45","id":266796365,"user":{"login":"Hyrules","id":3161577,"avatar_url":"https://avatars.githubusercontent.com/u/3161577?v=3","gravatar_id":"","url":"https://api.github.com/users/Hyrules","html_url":"https://github.com/Hyrules","followers_url":"https://api.github.com/users/Hyrules/followers","following_url":"https://api.github.com/users/Hyrules/following{/other_user}","gists_url":"https://api.github.com/users/Hyrules/gists{/gist_id}","starred_url":"https://api.github.com/users/Hyrules/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hyrules/subscriptions","organizations_url":"https://api.github.com/users/Hyrules/orgs","repos_url":"https://api.github.com/users/Hyrules/repos","events_url":"https://api.github.com/users/Hyrules/events{/privacy}","received_events_url":"https://api.github.com/users/Hyrules/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T17:01:02Z","updated_at":"2016-12-13T17:01:02Z","body":"Noted I will add a message."}}
{"actor":{"display_login":"Hyrules"}}