{"action":"created","issue":{"url":"https://api.github.com/repos/MscrmTools/MscrmTools.Xrm.Connection/issues/83","repository_url":"https://api.github.com/repos/MscrmTools/MscrmTools.Xrm.Connection","labels_url":"https://api.github.com/repos/MscrmTools/MscrmTools.Xrm.Connection/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/MscrmTools/MscrmTools.Xrm.Connection/issues/83/comments","events_url":"https://api.github.com/repos/MscrmTools/MscrmTools.Xrm.Connection/issues/83/events","html_url":"https://github.com/MscrmTools/MscrmTools.Xrm.Connection/issues/83","id":393532172,"node_id":"MDU6SXNzdWUzOTM1MzIxNzI=","number":83,"title":"ArgumentOutOfRangeException in loading About dialog","user":{"login":"imranakram","id":13014005,"node_id":"MDQ6VXNlcjEzMDE0MDA1","avatar_url":"https://avatars3.githubusercontent.com/u/13014005?v=4","gravatar_id":"","url":"https://api.github.com/users/imranakram","html_url":"https://github.com/imranakram","followers_url":"https://api.github.com/users/imranakram/followers","following_url":"https://api.github.com/users/imranakram/following{/other_user}","gists_url":"https://api.github.com/users/imranakram/gists{/gist_id}","starred_url":"https://api.github.com/users/imranakram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imranakram/subscriptions","organizations_url":"https://api.github.com/users/imranakram/orgs","repos_url":"https://api.github.com/users/imranakram/repos","events_url":"https://api.github.com/users/imranakram/events{/privacy}","received_events_url":"https://api.github.com/users/imranakram/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-21T17:19:19Z","updated_at":"2018-12-21T17:20:04Z","closed_at":null,"author_association":"NONE","body":"I’m adding an about dialog to the Plugin Registration Tool and this exception occurs randomly. Mostly it occurs when you go straight into opening the about dialog without clicking anywhere in the tree. And it just crashes the whole XTB. This is the stack trace:- \r\n\r\n```\r\nSystem.ArgumentOutOfRangeException\r\n  HResult=0x80131502\r\n  Message=Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index\r\n  Source=mscorlib\r\n  StackTrace:\r\n   at System.Collections.ArrayList.get_Item(Int32 index) in f:\\dd\\ndp\\clr\\src\\BCL\\system\\collections\\arraylist.cs:line 173\r\n   at System.Windows.Forms.ToolStripItemCollection.get_Item(Int32 index)\r\n   at McTools.Xrm.Connection.WinForms.CrmConnectionStatusBar.SetMessage(String message)\r\n   at XrmToolBox.New.NewForm.<>c__DisplayClass64_0.<StatusBarMessenger_SendMessageToStatusBar>g__Mi|1()\r\n   at XrmToolBox.New.PluginForm.<>c__DisplayClass28_0.<StatusBarMessager_SendMessageToStatusBar>g__Mi|0()\r\n   at System.Windows.Forms.Timer.OnTick(EventArgs e)\r\n   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)\r\n   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n   at System.Windows.Forms.SafeNativeMethods.MessageBox(HandleRef hWnd, String text, String caption, Int32 type)\r\n   at System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp)\r\n   at System.Windows.Forms.MessageBox.Show(String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon)\r\n   at XrmToolBox.Program.Main(String[] args)\r\n```\r\n\r\nI can see that it must be coming from this method in the `CrmConnectionStatusBar` here\r\n\r\n```\r\npublic void SetMessage(string message)\r\n{\r\n     ToolStripStatusLabel label = (ToolStripStatusLabel)Items[1];\r\n```\r\n\r\nNow trouble is I’ve never worked with the Xrm.Connections project and have no idea what this `Items[]` collection is representing. The assembly is also signed, when I tried to replace it in my local debug folder, it fails saying that the assembly should be signed and so on.  Please let me know how to proceed\r\n"},"comment":{"url":"https://api.github.com/repos/MscrmTools/MscrmTools.Xrm.Connection/issues/comments/449446799","html_url":"https://github.com/MscrmTools/MscrmTools.Xrm.Connection/issues/83#issuecomment-449446799","issue_url":"https://api.github.com/repos/MscrmTools/MscrmTools.Xrm.Connection/issues/83","id":449446799,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTQ0Njc5OQ==","user":{"login":"imranakram","id":13014005,"node_id":"MDQ6VXNlcjEzMDE0MDA1","avatar_url":"https://avatars3.githubusercontent.com/u/13014005?v=4","gravatar_id":"","url":"https://api.github.com/users/imranakram","html_url":"https://github.com/imranakram","followers_url":"https://api.github.com/users/imranakram/followers","following_url":"https://api.github.com/users/imranakram/following{/other_user}","gists_url":"https://api.github.com/users/imranakram/gists{/gist_id}","starred_url":"https://api.github.com/users/imranakram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imranakram/subscriptions","organizations_url":"https://api.github.com/users/imranakram/orgs","repos_url":"https://api.github.com/users/imranakram/repos","events_url":"https://api.github.com/users/imranakram/events{/privacy}","received_events_url":"https://api.github.com/users/imranakram/received_events","type":"User","site_admin":false},"created_at":"2018-12-21T17:20:04Z","updated_at":"2018-12-21T17:20:04Z","author_association":"NONE","body":"ping @shytikov "}}
{"actor":{"display_login":"imranakram"}}