shellscape / Gmail-Notifier-Plus

Gmail Notifier Plus
http://shellscape.org
MIT License
90 stars 26 forks source link

Can't create a second account #87

Closed JezzX closed 12 years ago

JezzX commented 12 years ago

First off nice app using the latest (I think) Gmail-Notifier-Plus-3.0.zip I can't create any more than 1 account in the preferences without getting this error [Window Title] Gmail Notifier Plus Error

[Main Instruction] An unhandled exception occurred:

[Content] Error ID: d30dab3f-b7e1-4cf9-a263-58d0e2b1c3e8

No value exists with that name.

[Expanded Information] at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at Microsoft.Win32.RegistryKey.DeleteValue(String name) at GmailNotifierPlus.Forms.Preferences.ToggleMailto(Boolean addAssociation) at GmailNotifierPlus.Forms.Preferences._ButtonAccountAction_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

[V] See details [OK]

[Footer] Press CTL + C to copy this error to the clipboard.

shellscape commented 12 years ago

I'll need the full output of the error log for this exception.

JezzX commented 12 years ago

I assume you mean from the file in AppData\Roaming\Gmail Notifier Plus\Error Logs see below

Date: 30/04/2012 6:37:21 PM CPU: Microsoft Windows 7 Ultimate 6.1.7600.0 Win32NT Processor: GenuineIntel Intel64 Family 6 Model 23 Stepping 10 Intel(R) Core(TM)2 Duo CPU E8500 @ 3.16GHz 3166 ~Mhz Memory: 4293189632

Exception: System.ArgumentException: No value exists with that name. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at Microsoft.Win32.RegistryKey.DeleteValue(String name) at GmailNotifierPlus.Forms.Preferences.ToggleMailto(Boolean addAssociation) at GmailNotifierPlus.Forms.Preferences._ButtonAccountAction_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Message: No value exists with that name.

Stack Trace: at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at Microsoft.Win32.RegistryKey.DeleteValue(String name) at GmailNotifierPlus.Forms.Preferences.ToggleMailto(Boolean addAssociation) at GmailNotifierPlus.Forms.Preferences._ButtonAccountAction_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Inner Exception:

shellscape commented 12 years ago

Does the following registry key exist?

HKEY_CURRENT_USER\Software\Classes\mailto\shell\open\command

On the account that you've successfully added to the app, do you get an error when you check 'Use this account for mailto links' under account management?

JezzX commented 12 years ago

You are correct in that was the issue the value was empty and once I clicked that check box in preferences it filled up and I was able to add another account.

P.S. would be nice if we could also give each email address a english name as well to display instead of the actual email eg: "Personal Mail" "Work Mail"