NullReferenceException after copying a data source

Implemented

NullReferenceException after copying a data source

avatar

Hi!

RDM 2023.2.32.0

I copied a DVLS data source and changed the user name. When connecting to it, I got the following exception. Restarting RDM fixed it.

NullReferenceException - Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

bei Devolutions.Server.ApiWrapper.RDMSWebClient.RunSynchronous[T](Task`1 task)
bei Devolutions.RemoteDesktopManager.Business.DataSources.RDMSWebApiClient.<GetPrivateWebInstanceInformation>b__153_0()
bei Devolutions.RemoteDesktopManager.Business.DataSources.RDMSWebApiClient.ExecuteAnonymousAction[T](ExecuteActionDelegate`1 action)
bei Devolutions.RemoteDesktopManager.Business.DataSources.RDMSWebApiClient.GetPrivateWebInstanceInformation()
bei Devolutions.RemoteDesktopManager.Business.DataSources.RDMSConnectionDataSource.LoadPrivateWebInstanceInfo(Boolean saveCache)
bei Devolutions.RemoteDesktopManager.Business.DataSources.RDMSConnectionDataSource.Login(Boolean useCredentials)
bei Devolutions.RemoteDesktopManager.Business.DataSources.RDMSWebApiClient.get_WebClient()
bei Devolutions.RemoteDesktopManager.Business.DataSources.RDMSWebApiClient.TouchProxy()
bei Devolutions.RemoteDesktopManager.Business.DataSources.RDMSSecuritySubDataSource.GetUser()
bei Devolutions.RemoteDesktopManager.Managers.SecurityManager.GetCurrentLoggedInUserNotCached(BaseConnectionDataSource dataSource)
bei Devolutions.RemoteDesktopManager.Managers.ConnectionEngine.get_User()
bei Devolutions.RemoteDesktopManager.Managers.DataSourceManager.InvokeDataSourceChanged(BaseConnectionDataSource datasourceChanged, EventArgs e)
bei Devolutions.RemoteDesktopManager.Managers.ConnectionManager.set_DataSource(BaseConnectionDataSource value)
bei Devolutions.RemoteDesktopManager.Managers.ActionManager.DoEditDataSource(Section section)
bei DevExpress.XtraBars.Ribbon.BackstageViewButtonItem.RaiseItemClick()
bei DevExpress.XtraBars.Ribbon.Handler.BackstageViewControlHandler.OnMouseUp(DXMouseEventArgs e)
bei DevExpress.XtraBars.Ribbon.Handler.Office2013BackstageViewControlHandler.OnMouseUp(DXMouseEventArgs e)
bei DevExpress.XtraBars.Ribbon.BackstageViewControl.OnMouseUp(MouseEventArgs e)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei DevExpress.XtraBars.Ribbon.BackstageViewControl.WndProc(Message& msg)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
------------------------ extended stack ------------------------
bei Devolutions.RemoteDesktopManager.Managers.ErrorManager.BuildErrorDetails(Exception exception, String extraMessage)
bei Devolutions.RemoteDesktopManager.Forms.FrmErrorMessage.ShowErrorMessage(Exception exception, String message, String title)
bei Devolutions.RemoteDesktopManager.Managers.LogManager.OnThreadException(Object sender, ThreadExceptionEventArgs t)
bei System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
bei System.Windows.Forms.Control.WndProcException(Exception e)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
bei Devolutions.RemoteDesktopManager.Program.Main(String[] args)

All Comments (4)

avatar

Hello Daniel,

I haven't been able to reproduce it yet.

What authentication method are you using to connect on DVLS?

Have you switched from one authentication method to another one in the new data source?

Best regards,

Érica Poirier

avatar

Hi Erica!

Yes, for the original data source I use Azure AD, for the new one a local DVLS admin account.

edit: The username in the original DS was $USER_PRINCIPAL_NAME$, for the new one I entered my own named admin account

Regards,
Daniel

avatar

Hello Daniel,

Thank you for the information.

A ticket has already been opened internally regarding that issue. Once a fix is available, we will post it here.

Thank you for being so patient!

Best regards,

Érica Poirier

avatar

Thank you!