Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open any connections using version 1.2017.1.10 #561

Closed
mtnmuncher opened this issue Jan 26, 2017 · 4 comments
Closed

Unable to open any connections using version 1.2017.1.10 #561

mtnmuncher opened this issue Jan 26, 2017 · 4 comments

Comments

@mtnmuncher
Copy link

See attachment for pop-up when I click 'connect'. I can create the connection. I just cannot open the connection.

1.del MSCRMTools\XrmToolbox folder. I thought it would be better to start anew.
2.open XrmToolBox
3.create new connection
4.select new connection.
5.connect

Since I could not get the downloaded assembly to work, I then tried running from source. Please see error when running from Visual Studio.


Error

An unexpected error occured: System.InvalidCastException: Unable to cast object of type 'System.Windows.Forms.ToolStripDropDownButton' to type 'System.Windows.Forms.ToolStripMenuItem'.

at McTools.Xrm.Connection.WinForms.CrmConnectionStatusBar.actionItem_Click(Object sender, EventArgs e)

at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ToolStrip.WndProc(Message& m)

at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)

at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

at XrmToolBox.Program.Main(String[] args) in C:\downloads\XrmToolBox-v.1.2017.1.10\XrmToolBox\Program.cs:line 46

One reason can be that at least one file is locked by Windows. Please unlock each locked files or unlock XrmToolBox.zip before extracting its content

OK

xrmtoolbox_v1_2017_1_10_connection_error

@MscrmTools
Copy link
Owner

Ok, so it happens only when connecting?

Can you connect with the button on the main toolbar waiting for a fix?

@mtnmuncher
Copy link
Author

Yes, it appears to be isolated to the Connect, located in lower left corner. Connect using main toolbar is successful. Thanks.

@rajyraman
Copy link
Contributor

Same behaviour. Able to connect using the "Connect to CRM" button as suggested.

@MscrmTools
Copy link
Owner

Issue moved to MscrmTools/MscrmTools.Xrm.Connection #23 via ZenHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants