Skip to content

Commit

Permalink
Updated server and page manager to .NET 4.8 and MySql 8.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Threetwosevensixseven committed Jan 27, 2024
1 parent 8ec8e73 commit 8eb949e
Show file tree
Hide file tree
Showing 49 changed files with 199 additions and 2,409 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@
/server/NXStaticServer/bin
/server/NXStaticServer/obj
/build/*.ps1
/build/zeustest.exe
/docs/registrations.txt
/uart
.vs
Binary file added build/zeustest.exe
Binary file not shown.
Binary file modified server/ESPATTest/bin/Debug/ESPATTest.exe
Binary file not shown.
Binary file modified server/ESPATTest/bin/Debug/ESPATTest.pdb
Binary file not shown.
Binary file modified server/Markdown/bin/x86/Release/Markdown.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions server/NXtelData/Classes/Geo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private static T LoadJson<T>(string URL)
}
}
}
catch (Exception ex)
catch (Exception /*ex*/)
{
var obj2 = JsonConvert.DeserializeObject<T>(EmptyJSON);
return obj2;
Expand All @@ -147,7 +147,7 @@ private static T LoadJson<T>(string URL)
var obj = JsonConvert.DeserializeObject<T>(json);
return obj;
}
catch (Exception ex)
catch (Exception /*ex*/)
{
var obj = JsonConvert.DeserializeObject<T>(EmptyJSON);
return obj;
Expand Down
2 changes: 1 addition & 1 deletion server/NXtelData/Classes/Route.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public static Route GetRoute(string CurrentPageNo, string CurrentFrame, string P
if (CurrentFrameNo < 0)
CurrentFrameNo = -1;

byte KeyCode = 0;
//byte KeyCode = 0;
string sql = @"SELECT @CurrentPageNo AS CurrentPageNo,@CurrentFrameNo AS CurrentFrameNo,
@NextPageNo AS NextPageNo,@NextFrameNo AS NextFrameNo,
@GoNextPage AS GoNextPage,@GoNextFrame AS GoNextFrame,dp.PageID AS DirectPageID,dp.PageNo AS DirectPageNo,dp.FrameNo AS DirectFrameNo,
Expand Down
2 changes: 1 addition & 1 deletion server/NXtelData/Classes/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Settings Load()
}
settings.appDir = appDir;
}
catch (Exception ex)
catch (Exception /*ex*/)
{
settings = new Settings(appDir);
}
Expand Down
2 changes: 1 addition & 1 deletion server/NXtelData/Classes/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public static string GetUniqueMailbox()
catch (Exception ex)
{
throw ex;
return "";
//return "";
}
}

Expand Down
9 changes: 5 additions & 4 deletions server/NXtelData/NXtelData.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NXtelData</RootNamespace>
<AssemblyName>NXtelData</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
Expand Down Expand Up @@ -63,6 +63,7 @@
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
Expand All @@ -72,11 +73,11 @@
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="mysql.data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>.\mysql.data.dll</HintPath>
<Reference Include="MySql.Data, Version=8.3.0.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
<HintPath>..\NXtelManager\lib\MySql.Data.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net40\Newtonsoft.Json.dll</HintPath>
Expand Down
8 changes: 6 additions & 2 deletions server/NXtelData/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
<assemblyIdentity name="Google.Protobuf" publicKeyToken="a7d26565bac4d604" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-3.6.0.0" newVersion="3.6.0.0"/>
</dependentAssembly>
</assemblyBinding>
<dependentAssembly>
<assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d"/>
<bindingRedirect oldVersion="1.0.0.0-8.3.0.0" newVersion="8.3.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
<system.data>
<DbProviderFactories>
Expand Down
Binary file removed server/NXtelData/mysql.data.dll
Binary file not shown.
3 changes: 1 addition & 2 deletions server/NXtelData/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MySql.Data" version="6.7.9" targetFramework="net40" />
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net40" />
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net48" requireReinstallation="true" />
</packages>
6 changes: 3 additions & 3 deletions server/NXtelGeo/App.config
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="GeoEndpoint" value="http://ip-api.com/json/{{IP}}?fields=status,lat,lon"/>
<add key="GeoRequestsPerMinute" value="175"/>
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
</configuration>
</configuration>
3 changes: 2 additions & 1 deletion server/NXtelGeo/NXtelGeo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NXtelGeo</RootNamespace>
<AssemblyName>NXtelGeo</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<IsWebBootstrapper>false</IsWebBootstrapper>
Expand All @@ -27,6 +27,7 @@
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down
16 changes: 8 additions & 8 deletions server/NXtelLogImport/App.config
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
<appSettings>
<add key="ImportLogFile" value="C:\Users\robin\Documents\Visual Studio 2015\Projects\NXtel\tmp\logs\NXtelServerLog_Prod_002.txt" />
<add key="TimestampCutoff" value="2019-05-29 13:57:31" />
<add key="HashSalt" value="m8FYG8w5LZwV78tu" />
<add key="TimestampCutoff_Test" value="2019-05-29 13:57:31" />
<add key="TimestampCutoff_Prod" value="2019-05-29 13:57:41" />
<add key="ImportLogFile" value="C:\Users\robin\Documents\Visual Studio 2015\Projects\NXtel\tmp\logs\NXtelServerLog_Prod_002.txt"/>
<add key="TimestampCutoff" value="2019-05-29 13:57:31"/>
<add key="HashSalt" value="m8FYG8w5LZwV78tu"/>
<add key="TimestampCutoff_Test" value="2019-05-29 13:57:31"/>
<add key="TimestampCutoff_Prod" value="2019-05-29 13:57:41"/>
</appSettings>
</configuration>
</configuration>
5 changes: 4 additions & 1 deletion server/NXtelLogImport/NXtelLogImport.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NXtelLogImport</RootNamespace>
<AssemblyName>NXtelLogImport</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand All @@ -21,6 +22,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand All @@ -30,6 +32,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down
Binary file modified server/NXtelLogImport/bin/Debug/NXtelLogImport.exe
Binary file not shown.
16 changes: 8 additions & 8 deletions server/NXtelLogImport/bin/Debug/NXtelLogImport.exe.config
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
<appSettings>
<add key="ImportLogFile" value="C:\Users\robin\Documents\Visual Studio 2015\Projects\NXtel\tmp\logs\NXtelServerLog_Prod_002.txt" />
<add key="TimestampCutoff" value="2019-05-29 13:57:31" />
<add key="HashSalt" value="m8FYG8w5LZwV78tu" />
<add key="TimestampCutoff_Test" value="2019-05-29 13:57:31" />
<add key="TimestampCutoff_Prod" value="2019-05-29 13:57:41" />
<add key="ImportLogFile" value="C:\Users\robin\Documents\Visual Studio 2015\Projects\NXtel\tmp\logs\NXtelServerLog_Prod_002.txt"/>
<add key="TimestampCutoff" value="2019-05-29 13:57:31"/>
<add key="HashSalt" value="m8FYG8w5LZwV78tu"/>
<add key="TimestampCutoff_Test" value="2019-05-29 13:57:31"/>
<add key="TimestampCutoff_Prod" value="2019-05-29 13:57:41"/>
</appSettings>
</configuration>
</configuration>
4 changes: 2 additions & 2 deletions server/NXtelManager/Controllers/MessageController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public ActionResult Save(MessageComposeModel Model)
{
if (ModelState.IsValid)
{
string err;
//string err;
//if (!Model.Zone.Save(out err))
{
return View("Edit", Model);
}
return RedirectToAction("Index");
//return RedirectToAction("Index");
}
return View("Edit", Model);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public ActionResult Set(UserPreferences Pref)
UserPreferences.Set(userID, Pref.Key, (Pref.Value ?? "").ToString());
return AllowGet(true);
}
catch (Exception ex)
catch (Exception /*ex*/)
{
}
return AllowGet(false);
Expand Down
Loading

0 comments on commit 8eb949e

Please sign in to comment.