Quote:
Originally Posted by Anja Mielbrecht
I dun see the problem :x VS sux !!
|
Problems appear after I try to run the compiled project.
Game.dll
C:\Users\palva\Desktop\1184\Game>dotnet exec game.dll
[Information ] Initializing...
[Error ] UnhandledException
MySql.Data.MySqlClient.MySqlException (0x80004005): Authentication to host 'localhost' for user 'root' using method 'mysql_native_password' failed with message: Access denied for user 'root'@'localhost' (using password: YES) ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Access denied for user 'root'@'localhost' (using password: YES)
at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.Authentication.MySqlAuthent icationPlugin.ReadPacket()
at MySql.Data.MySqlClient.Authentication.MySqlAuthent icationPlugin.AuthenticationFailed(Exception ex)
at MySql.Data.MySqlClient.Authentication.MySqlAuthent icationPlugin.ReadPacket()
at MySql.Data.MySqlClient.Authentication.MySqlAuthent icationPlugin.Authenticate(Boolean reset)
at MySql.Data.MySqlClient.NativeDriver.Open()
at MySql.Data.MySqlClient.Driver.Open()
at MySql.Data.MySqlClient.Driver.Create(MySqlConnecti onStringBuilder settings)
at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledCo nnection()
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnecti on()
at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlConnection.Open()
at Netsphere.Database.AuthDatabase.Open() in C:\Users\palva\Desktop\NetspherePirates-patch_1184\src\Netsphere.Database\AuthDatabase.cs: line 42
at Netsphere.Database.AuthDatabase.Initialize(Databas eConfig config) in C:\Users\palva\Desktop\NetspherePirates-patch_1184\src\Netsphere.Database\AuthDatabase.cs: line 20
at Netsphere.Program.Main() in C:\Users\palva\Desktop\NetspherePirates-patch_1184\src\Game\Program.cs:line 55
Unhandled Exception: MySql.Data.MySqlClient.MySqlException: Authentication to host 'localhost' for user 'root' using method 'mysql_native_password' failed with message: Access denied for user 'root'@'localhost' (using password: YES) ---> MySql.Data.MySqlClient.MySqlException: Access denied for user 'root'@'localhost' (using password: YES)
at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.Authentication.MySqlAuthent icationPlugin.ReadPacket()
--- End of inner exception stack trace ---
at MySql.Data.MySqlClient.Authentication.MySqlAuthent icationPlugin.AuthenticationFailed(Exception ex)
at MySql.Data.MySqlClient.Authentication.MySqlAuthent icationPlugin.ReadPacket()
at MySql.Data.MySqlClient.Authentication.MySqlAuthent icationPlugin.Authenticate(Boolean reset)
at MySql.Data.MySqlClient.NativeDriver.Open()
at MySql.Data.MySqlClient.Driver.Open()
at MySql.Data.MySqlClient.Driver.Create(MySqlConnecti onStringBuilder settings)
at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledCo nnection()
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnecti on()
at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlConnection.Open()
at Netsphere.Database.AuthDatabase.Open() in C:\Users\palva\Desktop\NetspherePirates-patch_1184\src\Netsphere.Database\AuthDatabase.cs: line 42
at Netsphere.Database.AuthDatabase.Initialize(Databas eConfig config) in C:\Users\palva\Desktop\NetspherePirates-patch_1184\src\Netsphere.Database\AuthDatabase.cs: line 20
at Netsphere.Program.Main() in C:\Users\palva\Desktop\NetspherePirates-patch_1184\src\Game\Program.cs:line 55
An error in the visual studio warns about these conflicts.
I have been looking for a solution for 3 days and still can’t understand what to do, because I don't have enough knowledge.
Packages are restored using the .Net Framework, but must be restored using netcoreapp2.0
I think the problem somewhere here:
Game.csproj
Code:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<GenerateAssemblyInfo>True</GenerateAssemblyInfo>
<RootNamespace>Netsphere</RootNamespace>
<RuntimeIdentifiers>win-x86;win-x64;linux-x64</RuntimeIdentifiers>
<StartupObject>Netsphere.Program</StartupObject>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<WarningLevel>4</WarningLevel>
<DefineConstants>TRACE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Expressmapper" Version="1.9.1" />
<PackageReference Include="Hjson" Version="3.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
<PackageReference Include="MySql.Data" Version="8.0.8-dmr" />
<PackageReference Include="Serilog" Version="2.5.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="3.0.1" />
<PackageReference Include="Serilog.Sinks.File" Version="4.0.1-dev-00801" />
<PackageReference Include="Stateless" Version="4.2.1" />
<Reference Include="..\..\libs\SharpLzo.dll" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Auth.ServiceModel\Auth.ServiceModel.csproj" />
<ProjectReference Include="..\Netsphere\Netsphere.csproj" />
<ProjectReference Include="..\Netsphere.Database\Netsphere.Database.csproj" />
<ProjectReference Include="..\Netsphere.Network\Netsphere.Network.csproj" />
<ProjectReference Include="..\ProudNet\ProudNet.csproj" />
</ItemGroup>
</Project>
Auth.dll works great.