diff --git a/Program.cs b/Program.cs index c99478f..f493fb3 100644 --- a/Program.cs +++ b/Program.cs @@ -23,7 +23,7 @@ namespace jdis_import { private static string _exeDir; private static bool _log = true; - private static string _connection = "Data Source=192.168.0.7;Initial Catalog=Connexion_Brandt;User ID=mobilepmuser;Password=data4techs;"; + private static string _connection = "Data Source=192.168.0.7;Initial Catalog=Connexion_Brandt;User ID=mobilepmuser;Password=data4techs;TrustServerCertificate=true;"; private static string _workOrderNumber = string.Empty; private static List _sqlMessages = new List(); private static bool _newMachine = false; @@ -122,7 +122,7 @@ namespace jdis_import } - msgToSend.Subject = sendMsg.FileName; + msgToSend.Subject = sendMsg.FileName.Substring(sendMsg.FileName.LastIndexOf("/") + 1); msgToSend.ToRecipients.Add(new EmailAddress(sendMsg.Sender)); msgToSend.CcRecipients.Add(new EmailAddress("mcarman@rpmindustries.com")); msgToSend.Body = body; @@ -170,7 +170,7 @@ namespace jdis_import public static void GetInspectionTypes() { InspectionType = new Dictionary(); - SqlConnection con = new SqlConnection("Data Source=192.168.0.7;Initial Catalog=Connexion_Brandt;User ID=mobilepmuser;Password=data4techs;"); + SqlConnection con = new SqlConnection("Data Source=192.168.0.7;Initial Catalog=Connexion_Brandt;User ID=mobilepmuser;Password=data4techs;TrustServerCertificate=true;"); con.Open(); SqlCommand cmd = con.CreateCommand(); cmd.CommandTimeout = 0; diff --git a/bin/release/net6.0/ubuntu.20.04-x64/jdis_import.dll b/bin/release/net6.0/ubuntu.20.04-x64/jdis_import.dll index c25361c..9cd11cb 100644 Binary files a/bin/release/net6.0/ubuntu.20.04-x64/jdis_import.dll and b/bin/release/net6.0/ubuntu.20.04-x64/jdis_import.dll differ diff --git a/bin/release/net6.0/ubuntu.20.04-x64/jdis_import.pdb b/bin/release/net6.0/ubuntu.20.04-x64/jdis_import.pdb index 8ee5b22..913ebd0 100644 Binary files a/bin/release/net6.0/ubuntu.20.04-x64/jdis_import.pdb and b/bin/release/net6.0/ubuntu.20.04-x64/jdis_import.pdb differ diff --git a/bin/release/net6.0/ubuntu.20.04-x64/publish/jdis_import.dll b/bin/release/net6.0/ubuntu.20.04-x64/publish/jdis_import.dll index c25361c..9cd11cb 100644 Binary files a/bin/release/net6.0/ubuntu.20.04-x64/publish/jdis_import.dll and b/bin/release/net6.0/ubuntu.20.04-x64/publish/jdis_import.dll differ diff --git a/bin/release/net6.0/ubuntu.20.04-x64/publish/jdis_import.pdb b/bin/release/net6.0/ubuntu.20.04-x64/publish/jdis_import.pdb index 8ee5b22..913ebd0 100644 Binary files a/bin/release/net6.0/ubuntu.20.04-x64/publish/jdis_import.pdb and b/bin/release/net6.0/ubuntu.20.04-x64/publish/jdis_import.pdb differ diff --git a/obj/release/net6.0/ubuntu.20.04-x64/jdis_import.dll b/obj/release/net6.0/ubuntu.20.04-x64/jdis_import.dll index c25361c..9cd11cb 100644 Binary files a/obj/release/net6.0/ubuntu.20.04-x64/jdis_import.dll and b/obj/release/net6.0/ubuntu.20.04-x64/jdis_import.dll differ diff --git a/obj/release/net6.0/ubuntu.20.04-x64/jdis_import.pdb b/obj/release/net6.0/ubuntu.20.04-x64/jdis_import.pdb index 8ee5b22..913ebd0 100644 Binary files a/obj/release/net6.0/ubuntu.20.04-x64/jdis_import.pdb and b/obj/release/net6.0/ubuntu.20.04-x64/jdis_import.pdb differ