Web Login causes a crash and a .NET error

Web Login causes a crash and a .NET error

avatar

I just upgrade my test system to 14.1.1.
Previous version I tested was 14.0.6 which did not seem to have this issue.

Reproduction scenario:
Start RDM
- open some connection that has a linked Secret Server credential
- login to Secret Server
- Everything is still OK at this point
- Start Chrome or Firefox
- Open a webpage that is known in RDM and has the Web browser Extension link enabled.
- use the Browser plugin/extension to request the passwords

This scenario causes the error below to crash RDM.

Our environment:
Windows 10
RDM 32-bit and 64-bit both
Secret Server version 10.4.000000
Chrome 71.0.3578.98 (Official Build) (64-bit)
Firefox 64.0 (64-bit)
Browser extensions version 7.1 in Chrome and Firefox


.NET Error:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: DragDrop registration did not succeed. ---> System.Threading.ThreadStateException: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.
at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
--- End of inner exception stack trace ---
at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
at System.Windows.Forms.TreeView.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at Devolutions.RemoteDesktopManager.Controls.EnhancedTreeView.WndProc(Message& message)
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)

All Comments (7)

avatar

I will try to reproduce the issue and I will update you soon.

Best regards,

David Grandolfo

avatar

Hi,

I was not able to reproduce the issue, I escalate the ticket to our QA department. The ticket number is QA-807

Best regards,

David Grandolfo

avatar

Hello,

Does this error still occur for you ?

If so I would need the entire .net error stack so we can try to troubleshoot it through a debugger see what we can find. You could email me the file to aroy@devolutions.net.

Also, what datasource are you using with RDM ?

Best regards,

Alexandre Roy

avatar

Hi Alexandre,

I've send you the stack via email.
Thank you for looking into the issue.

Kind Regards,
Dion

avatar

Hi Alexandre,

Today, a very similar error happened on our production environment today.
It runs RDM version 11.1.0.0 (on a Windows Terminal Server 2008 R2).
The database runs on MS SQL 2008 (on a Windows Server 2008 Standard)
I used Chrome (version 71.0.3578.98 64-bits) and the old/matching browser plugin is version 3.0.4.0.

I've sent you an email with the full stack of the error.


Kind Regards,

Dion

avatar

Hello,

I was not able to reproduce the issue so far, have you tried reinstalling .Net framework last available version for your current OS ?

Regards,

Alexandre Roy

avatar

Hi Alexandre,

Thanks for trying to reproduce the issue.
Reinstalling .NET might not make a lot of difference since this issue occurred on two quite different pc's, my Windows 10 laptop and a Terminal Server 2012, but I will try it anyway.
The common part of both tests may be the database content.
I will also try some time with a new clean test database and see if the problem is caused by any of the database content.
I'll post back when I know more.

Kind Regards,
Dion