5.6.0.3 Error when setting offline mode

5.6.0.3 Error when setting offline mode

avatar

It's great to see the offline mode being implemented. Unfortunately I can't get it to work. I've attempted on two different systems, Windows 7 (UAC turned off) and XP. Both generate the following error:

InvalidOperationException - There was an error generating the XML document.

at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)

at System.Xml.Serialization.XmlSerializer.Serialize(Stream stream, Object o, XmlSerializerNamespaces namespaces)

at Devolutions.RemoteDesktopManager.Managers.SerializationManager.SaveObjectToString(Object aValue)

at Devolutions.RemoteDesktopManager.Managers.SerializationManager.SaveObjectToEncryptedFile(String aFileName, Object aValue)

at Devolutions.RemoteDesktopManager.Managers.OfflineManager.Save(BaseConnectionDataSource aConnectionDataSource)

at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.LoadConnectionsFromDatabase(BaseConnectionDataSource aConnectionDataSource)

at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.LoadConnections(BaseConnectionDataSource aConnectionDataSource)

at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.RefreshConnections()

at Devolutions.RemoteDesktopManager.Forms.FrmMain.RefreshAllConnectionView(Boolean aSaveState, Boolean aCheckOnline)

at Devolutions.RemoteDesktopManager.Forms.FrmMain.RefreshView(Boolean aCheckOnline)

at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.set_DataSource(BaseConnectionDataSource value)

at Devolutions.RemoteDesktopManager.Forms.FrmMain.cbDataSources_SelectedIndexChanged(Object sender, EventArgs e)

at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)

at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)

at Devolutions.RemoteDesktopManager.Forms.FrmMain.LoadConnectionDataSources()

at Devolutions.RemoteDesktopManager.Forms.FrmMain.mnuDataSources_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.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

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.ScrollableControl.WndProc(Message& m)

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

at System.Windows.Forms.ToolStripDropDown.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)

------------------------------------------

TypeInitializationException - The type initializer for 'Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1' threw an exception.

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1..ctor()

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializerContract.get_Writer()

at System.Xml.Serialization.TempAssembly.InvokeWriter(XmlMapping mapping, XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)

at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)

------------------------------------------

NullReferenceException - Object reference not set to an instance of an object.

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1..cctor()

All Comments (4)

avatar

Hi,

I will verify that, it's related to my code obfuscation tool.

Thank you

David Hervieux

Devolutions inc.

David Hervieux

avatar

Hi,

I think that it's now fixed here:

http://remotedesktopmanager.com/download/Devolutions.RemoteDesktopManager.Bin.5.6.0.4.zip

David Hervieux

Devolutions inc.

edited by dhervieux on 8/26/2009

David Hervieux

avatar

The link you posted was to 5.6.0.3 :)

I changed the link to 5.6.0.4 and I've tried it out. Offline mode is working great, no more errors.

On connecting to the SQL server data source, would it be possible to add an option to set the timeout on the SQL connection? I imagine most people will know if their SQL server is unavailable when they launch/switch to that data source, so being able to set the timeout could reduce the wait time.

I also noticed that the stored passwords were available in offline mode. I'm totally cool with that, because I won't remember all those stored passwords anyway. I'm just wondering, is this only for offline mode or are the passwords now included in the regular export option?

Thanks for the quick fix.

EDIT: Instead of setting the timeout, maybe just have RDM remember the last mode the SQL data source was in? Or maybe implement both? :)

edited by jskuby on 8/25/2009

avatar

Hi,

All the shared passwords are not exported, maybe this could be an option if it's required. The offline mode works differently with an encrypted file. I will check for the timeout by the way.

Thank you for your comments

David Hervieux

Devolutions inc.

edited by dhervieux on 8/26/2009

David Hervieux