2016-11-21 9 views
0

私は自分のLinuxボックスでASPコアプロジェクトを実行しています。'Crypto'の型初期化器が例外をスローしました

私はボイラープレート自体にほとんど何もしていません。

私は今朝プロジェクトを実行しようとしましたが、突然それが壊れます。何も動作しません。この問題を抱えているユーザーのほとんどがMacシステムで動作しているので、私は数時間インターネットを覗いてみましたが、すべて利用できます。以下のスタックトレースを参照してください。

Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[0] 
     An unhandled exception has occurred: The type initializer for 'Crypto' threw an exception. 
System.TypeInitializationException: The type initializer for 'Crypto' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'System.Security.Cryptography.Native.OpenSsl': The specified module could not be found. 
(Exception from HRESULT: 0x8007007E) 
    at Interop.Crypto.GetMaxMdSize() 
    at Interop.Crypto..cctor() 
    --- End of inner exception stack trace --- 
    at Interop.Crypto.EvpMd5() 
    at Internal.Cryptography.HashProviderDispenser.CreateHashProvider(String hashAlgorithmId) 
    at System.Security.Cryptography.MD5.Implementation..ctor() 
    at Npgsql.FrontendMessages.PasswordMessage.CreateMD5(String password, String username, Byte[] serverSalt) 
    at Npgsql.NpgsqlConnector.ProcessAuthenticationMessage(String username, AuthenticationRequestMessage msg) 
    at Npgsql.NpgsqlConnector.HandleAuthentication(String username, NpgsqlTimeout timeout) 
    at Npgsql.NpgsqlConnector.Open(NpgsqlTimeout timeout) 
    at Npgsql.ConnectorPool.Allocate(NpgsqlConnection conn, NpgsqlTimeout timeout) 
    at Npgsql.NpgsqlConnection.OpenInternal() 
    at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open() 
    at Microsoft.EntityFrameworkCore.Storage.Internal.NpgsqlDatabaseCreator.Exists() 
    at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.EnsureCreated() 

任意の可能なアイデアや解決策

+0

System.Security.Cryptography.Native.OpenSslは存在しますか? –

+0

@DanielHilgarthどこ?私はそれをどこで調べるべきですか? –

+0

LD_DEBUGをオンにして、プローブする場所を取得することができます。また、最近修正されたバグかもしれません:https://github.com/dotnet/corefx/issues/12517 –

答えて

0

は約2日間疑問を持っていた...何も得ませんでした。

とにかく、NetCoreApp:1.1.0バージョンに移行するだけでした。

私はバージョンをインストールし、私は良かった:)

ありがとうS.O.

関連する問題