diff --git a/mRemoteV1/Connection/ConnectionInitiator.cs b/mRemoteV1/Connection/ConnectionInitiator.cs
index 14f6fa778..65c80d051 100644
--- a/mRemoteV1/Connection/ConnectionInitiator.cs
+++ b/mRemoteV1/Connection/ConnectionInitiator.cs
@@ -304,7 +304,7 @@ namespace mRemoteNG.Connection
if (prot.InterfaceControl.Info.Protocol != ProtocolType.RDP) return;
if (Convert.ToInt32(errorMessage) > -1)
- Runtime.MessageCollector.AddMessage(MessageClass.WarningMsg, string.Format(Language.strConnectionRdpErrorDetail, errorMessage, RdpProtocol.FatalErrors.GetError(errorMessage)));
+ Runtime.MessageCollector.AddMessage(MessageClass.WarningMsg, string.Format(Language.strConnectionRdpErrorDetail, errorMessage, RdpErrorCodes.GetError(errorMessage)));
}
catch (Exception ex)
{
diff --git a/mRemoteV1/Connection/Protocol/RDP/RdpErrorCodes.cs b/mRemoteV1/Connection/Protocol/RDP/RdpErrorCodes.cs
new file mode 100644
index 000000000..fa98147b6
--- /dev/null
+++ b/mRemoteV1/Connection/Protocol/RDP/RdpErrorCodes.cs
@@ -0,0 +1,43 @@
+using System;
+using System.Collections;
+using mRemoteNG.App;
+
+namespace mRemoteNG.Connection.Protocol.RDP
+{
+ public static class RdpErrorCodes
+ {
+ private static Hashtable _description;
+
+ private static void InitDescription()
+ {
+ _description = new Hashtable
+ {
+ {"0", "Language.strRdpErrorUnknown"},
+ {"1", "Language.strRdpErrorCode1"},
+ {"2", "Language.strRdpErrorOutOfMemory"},
+ {"3", "Language.strRdpErrorWindowCreation"},
+ {"4", "Language.strRdpErrorCode2"},
+ {"5", "Language.strRdpErrorCode3"},
+ {"6", "Language.strRdpErrorCode4"},
+ {"7", "Language.strRdpErrorConnection"},
+ {"100", "Language.strRdpErrorWinsock"}
+ };
+ }
+
+ public static string GetError(string id)
+ {
+ try
+ {
+ if (_description == null)
+ InitDescription();
+
+ return (string)_description?[id];
+ }
+ catch (Exception ex)
+ {
+ Runtime.MessageCollector.AddExceptionStackTrace(Language.strRdpErrorGetFailure, ex);
+ return string.Format(Language.strRdpErrorUnknown, id);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/mRemoteV1/Connection/Protocol/RDP/RdpProtocol.cs b/mRemoteV1/Connection/Protocol/RDP/RdpProtocol.cs
index c570bf6ac..703e2b387 100644
--- a/mRemoteV1/Connection/Protocol/RDP/RdpProtocol.cs
+++ b/mRemoteV1/Connection/Protocol/RDP/RdpProtocol.cs
@@ -1,5 +1,4 @@
using System;
-using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
@@ -920,45 +919,6 @@ namespace mRemoteNG.Connection.Protocol.RDP
public static readonly Version RDC81 = new Version(6, 3, 9600);
}
- #region Fatal Errors
- public static class FatalErrors
- {
- private static Hashtable _description;
-
- private static void InitDescription()
- {
- _description = new Hashtable
- {
- {"0", "Language.strRdpErrorUnknown"},
- {"1", "Language.strRdpErrorCode1"},
- {"2", "Language.strRdpErrorOutOfMemory"},
- {"3", "Language.strRdpErrorWindowCreation"},
- {"4", "Language.strRdpErrorCode2"},
- {"5", "Language.strRdpErrorCode3"},
- {"6", "Language.strRdpErrorCode4"},
- {"7", "Language.strRdpErrorConnection"},
- {"100", "Language.strRdpErrorWinsock"}
- };
- }
-
- public static string GetError(string id)
- {
- try
- {
- if (_description == null)
- InitDescription();
-
- return (string)_description?[id];
- }
- catch (Exception ex)
- {
- Runtime.MessageCollector.AddExceptionStackTrace(Language.strRdpErrorGetFailure, ex);
- return string.Format(Language.strRdpErrorUnknown, id);
- }
- }
- }
- #endregion
-
#region Reconnect Stuff
public void tmrReconnect_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
diff --git a/mRemoteV1/mRemoteV1.csproj b/mRemoteV1/mRemoteV1.csproj
index 73953f859..79d4c26f1 100644
--- a/mRemoteV1/mRemoteV1.csproj
+++ b/mRemoteV1/mRemoteV1.csproj
@@ -243,6 +243,7 @@
+