This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

перенос с Windows -> Linux

Dale1ter

Новый участник
10 Окт 2022
12
0
38
перенес свой С# проект с Windows на Linux закинул файли с архива для линукса и у меня ошибка по sql

условно понимаю что по етому пути /dotnet/resources/ServerPjCats/ должен быть MySql.Data.dll но на винде он работает и когда файл лежыт по пути dotnet\resources\ServerPjCats\Debug\netcoreapp3.1\MySql.Data.dll

кладу туда файл вручную он хочет еще два файла их тоже туда кладу и такая ошибка


-> Starting ServerPjCats resource..
ServerPjCats: loading scripts.. found 1 script(s)
ServerPjCats: instantiating Events..
ServerPjCats: loading server events.. found 1 server event(s)
ServerPjCats: loaded 1 server events(s)
zdarova zaebal
error:0E076071:configuration file routines:module_run:unknown module name
The type initializer for 'SslInitializer' threw an exception.
The type initializer for 'Ssl' threw an exception.
The type initializer for 'SslMethods' threw an exception.
The type initializer for 'SslMethods' threw an exception.
Authentication failed, see inner exception.
Authentication failed, see inner exception.
Authentication failed, see inner exception.
Authentication failed, see inner exception.
Authentication failed, see inner exception.
Authentication failed, see inner exception.
Authentication failed, see inner exception.
Authentication failed, see inner exception.
Authentication failed, see inner exception.
Authentication failed, see inner exception.
Authentication failed, see inner exception.
Authentication failed, see inner exception.
Authentication failed, see inner exception.
Authentication failed, see inner exception.
Authentication failed, see inner exception.
Authentication failed, see inner exception.
System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.
---> System.TypeInitializationException: The type initializer for 'SslMethods' threw an exception.
---> System.TypeInitializationException: The type initializer for 'Ssl' threw an exception.
---> System.TypeInitializationException: The type initializer for 'SslInitializer' threw an exception.
---> Interop+Crypto+OpenSslCryptographicException: error:0E076071:configuration file routines:module_run:unknown module name
at static Interop+SslInitializer()
--- End of inner exception stack trace ---
at static Interop+Ssl()
--- End of inner exception stack trace ---
at IntPtr Interop+Ssl.SslV2_3Method()
at static Interop+Ssl+SslMethods()
--- End of inner exception stack trace ---
at SafeSslHandle Interop+OpenSsl.AllocateSslContext(SslProtocols protocols, SafeX509Handle certHandle, SafeEvpPKeyHandle certKeyHandle, EncryptionPolicy policy, SslAuthenticationOptions sslAuthenticationOptions)
at new System.Net.Security.SafeDeleteSslContext(SafeFreeSslCredentials credential, SslAuthenticationOptions sslAuthenticationOptions)
at SecurityStatusPal System.Net.Security.SslStreamPal.HandshakeInternal(SafeFreeCredentials credential, ref SafeDeleteContext context, ArraySegment<byte> inputBuffer, ref byte[] outputBuffer, SslAuthenticationOptions sslAuthenticationOptions)
--- End of inner exception stack trace ---
at System.Net.Security.SslStream.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, ExceptionDispatchInfo exception)
at System.Net.Security.SslStream.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslStream.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslStream.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslStream.ProcessAuthentication(LazyAsyncResult lazyResult, CancellationToken cancellationToken)
at System.Net.Security.SslStream.BeginAuthenticateAsClient(SslClientAuthenticationOptions sslClientAuthenticationOptions, CancellationToken cancellationToken, AsyncCallback asyncCallback, Object asyncState)
at System.Net.Security.SslStream.BeginAuthenticateAsClient(String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation, AsyncCallback asyncCallback, Object asyncState)
at System.Net.Security.SslStream.<>c.<AuthenticateAsClientAsync>b__64_1(String arg1, X509CertificateCollection arg2, SslProtocols arg3, AsyncCallback callback, Object state)
at System.Threading.Tasks.TaskFactory`1.FromAsyncImpl[TArg1,TArg2,TArg3](Func`6 beginMethod, Func`2 endFunction, Action`1 endAction, TArg1 arg1, TArg2 arg2, TArg3 arg3, Object state, TaskCreationOptions creationOptions)
at System.Threading.Tasks.TaskFactory.FromAsync[TArg1,TArg2,TArg3](Func`6 beginMethod, Action`1 endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, Object state, TaskCreationOptions creationOptions)
at System.Threading.Tasks.TaskFactory.FromAsync[TArg1,TArg2,TArg3](Func`6 beginMethod, Action`1 endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, Object state)
at System.Net.Security.SslStream.AuthenticateAsClientAsync(String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation)
at MySql.Data.Common.Ssl.StartSSLAsync(Stream baseStream, Encoding encoding, String connectionString, CancellationToken cancellationToken, Boolean execAsync)
at MySql.Data.MySqlClient.NativeDriver.OpenAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.Driver.OpenAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.Driver.CreateAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.Driver.CreateAsync(MySqlConnectionStringBuilder settings, Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnectionAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnectionAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlPool.TryToGetDriverAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlPool.GetConnectionAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlConnection.OpenAsync(Boolean execAsync, CancellationToken cancellationToken)
at MySql.Data.MySqlClient.MySqlConnection.Open()
at MySQL.Test()
-> Resource ServerPjCats started!


в чем может быть проблема?
 

Jerry (ChatGPT)

AI-powered language model
VIP
helper
17 Окт 2023
2,443
239
100
Проблема скорее всего связана с отсутствием или некорректной конфигурацией SSL на вашем Linux сервере. Убедитесь, что у вас установлены все необходимые зависимости для работы с SSL и проверьте конфигурационные файлы. Возможно, вам также потребуется настроить SSL для работы с вашей базой данных MySQL на Linux.
 

Dale1ter

Новый участник
10 Окт 2022
12
0
38
Можете подсказать как ето делать или видео как ето настраивать?
 

koltr

Гуру
BackEnd developer
14 Сен 2020
157
108
121
Покажи содержимое файла ragemp-srv/dotnet/settings.xml
 

Similar threads