Fix issue MR-439 - MRemoteNG 1.70 does not start

This commit is contained in:
Riley McArdle
2013-05-02 18:21:17 -05:00
parent 29865c69ab
commit 079fe000bb
5 changed files with 74 additions and 8 deletions

View File

@@ -2,6 +2,7 @@
Fixed issue MR-392 - Sessions Panel - context menu entries need to be context aware
Fixed issue MR-422 - Gives error Object reference not set to an instance of an object.
Fixed issue MR-424 - Import of a few Linux SSH2 hosts discovered via the port scan tool results in a UE
Fixed issue MR-439 - MRemoteNG 1.70 does not start
Added PuTTY Session Settings command to the Config panel for PuTTY Saved Sessions.
Fixed an exception or crash when choosing unnamed colors for themes.
Fixed possible error "Control does not support transparent background colors" when modifying themes.

View File

@@ -1100,14 +1100,31 @@ Namespace App
TimerSqlWatcher.Start()
End If
Catch ex As Exception
MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, String.Format(My.Language.strConnectionsFileCouldNotBeLoaded & vbNewLine & ex.Message & ex.StackTrace, conL.ConnectionFileName))
If My.Settings.UseSQLServer = False Then
If My.Settings.UseSQLServer Then
MessageCollector.AddExceptionMessage(My.Language.strLoadFromSqlFailed, ex)
Dim commandButtons As String = String.Join("|", {My.Language.strCommandTryAgain, My.Language.strCommandOpenConnectionFile, String.Format(My.Language.strCommandExitProgram, Application.ProductName)})
cTaskDialog.ShowCommandBox(Application.ProductName, My.Language.strLoadFromSqlFailed, My.Language.strLoadFromSqlFailedContent, Misc.GetExceptionMessageRecursive(ex), "", "", commandButtons, False, eSysIcons.Error, Nothing)
Select Case cTaskDialog.CommandButtonResult
Case 0
LoadConnections(WithDialog, Update)
Return
Case 1
My.Settings.UseSQLServer = False
LoadConnections(True, Update)
Return
Case Else
Application.Exit()
Return
End Select
Else
MessageCollector.AddExceptionMessage(String.Format(My.Language.strConnectionsFileCouldNotBeLoaded, conL.ConnectionFileName), ex)
If Not conL.ConnectionFileName = GetStartupConnectionFileName() Then
LoadConnections()
Exit Sub
LoadConnections(WithDialog, Update)
Return
Else
MsgBox(String.Format(My.Language.strErrorStartupConnectionFileLoad, vbNewLine, Application.ProductName, GetStartupConnectionFileName(), ex.Message), MsgBoxStyle.OkOnly + MsgBoxStyle.Critical)
MsgBox(String.Format(My.Language.strErrorStartupConnectionFileLoad, vbNewLine, Application.ProductName, GetStartupConnectionFileName(), Misc.GetExceptionMessageRecursive(ex)), MsgBoxStyle.OkOnly + MsgBoxStyle.Critical)
Application.Exit()
Return
End If
End If
End Try

View File

@@ -276,7 +276,7 @@ Namespace Config
App.Runtime.IsConnectionsFileLoaded = True
'App.Runtime.Windows.treeForm.InitialRefresh()
Catch ex As Exception
MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, My.Language.strLoadFromSqlFailed & vbNewLine & ex.Message, True)
Throw
Finally
If sqlCon IsNot Nothing Then
sqlCon.Close()

View File

@@ -918,6 +918,15 @@ Namespace My
End Get
End Property
'''<summary>
''' Looks up a localized string similar to E&amp;xit {0}.
'''</summary>
Friend Shared ReadOnly Property strCommandExitProgram() As String
Get
Return ResourceManager.GetString("strCommandExitProgram", resourceCulture)
End Get
End Property
'''<summary>
''' Looks up a localized string similar to Couldn&apos;t parse command line args!.
'''</summary>
@@ -927,6 +936,24 @@ Namespace My
End Get
End Property
'''<summary>
''' Looks up a localized string similar to &amp;Open a connection file.
'''</summary>
Friend Shared ReadOnly Property strCommandOpenConnectionFile() As String
Get
Return ResourceManager.GetString("strCommandOpenConnectionFile", resourceCulture)
End Get
End Property
'''<summary>
''' Looks up a localized string similar to &amp;Try again.
'''</summary>
Friend Shared ReadOnly Property strCommandTryAgain() As String
Get
Return ResourceManager.GetString("strCommandTryAgain", resourceCulture)
End Get
End Property
'''<summary>
''' Looks up a localized string similar to {0} has detected the Lenovo Auto Scroll Utility running on this system. This utility is known to cause problems with {0}. It is recommended that you disable or uninstall it..
'''</summary>
@@ -2393,7 +2420,7 @@ Namespace My
End Property
'''<summary>
''' Looks up a localized string similar to Load From SQL failed!.
''' Looks up a localized string similar to Load from SQL failed.
'''</summary>
Friend Shared ReadOnly Property strLoadFromSqlFailed() As String
Get
@@ -2401,6 +2428,15 @@ Namespace My
End Get
End Property
'''<summary>
''' Looks up a localized string similar to The connection information could not be loaded from the SQL server..
'''</summary>
Friend Shared ReadOnly Property strLoadFromSqlFailedContent() As String
Get
Return ResourceManager.GetString("strLoadFromSqlFailedContent", resourceCulture)
End Get
End Property
'''<summary>
''' Looks up a localized string similar to Load From XML failed!.
'''</summary>

View File

@@ -414,9 +414,18 @@ VncSharpNG Control Version {0}</value>
<data name="strColumnWaitForExit" xml:space="preserve">
<value>Wait For Exit</value>
</data>
<data name="strCommandExitProgram" xml:space="preserve">
<value>E&amp;xit {0}</value>
</data>
<data name="strCommandLineArgsCouldNotBeParsed" xml:space="preserve">
<value>Couldn't parse command line args!</value>
</data>
<data name="strCommandOpenConnectionFile" xml:space="preserve">
<value>&amp;Open a connection file</value>
</data>
<data name="strCommandTryAgain" xml:space="preserve">
<value>&amp;Try again</value>
</data>
<data name="strCompatibilityLenovoAutoScrollUtilityDetected" xml:space="preserve">
<value>{0} has detected the Lenovo Auto Scroll Utility running on this system. This utility is known to cause problems with {0}. It is recommended that you disable or uninstall it.</value>
</data>
@@ -911,7 +920,10 @@ See the Microsoft Support article at http://support.microsoft.com/kb/811833 for
<value>{0} must be restarted before changes to the language will take effect.</value>
</data>
<data name="strLoadFromSqlFailed" xml:space="preserve">
<value>Load From SQL failed!</value>
<value>Load from SQL failed</value>
</data>
<data name="strLoadFromSqlFailedContent" xml:space="preserve">
<value>The connection information could not be loaded from the SQL server.</value>
</data>
<data name="strLoadFromXmlFailed" xml:space="preserve">
<value>Load From XML failed!</value>