2016-12-07 2 views
0

私はAWSSDK.Coreを利用する.NET Coreアプリケーションを実行しています。 MacやドッカーのLinuxのコンテナ(microsoft/dotnet:1.0.1-sdk-projectjson)に次のコードを実行している場合しかし、私は例外を取得しています:ここでwssdkのCrypt32.dllがdockerで実行されている.netコアで見つかりません

ProfileManager.RegisterProfile(_config.Aws.Credentials.ProfileName, _config.Aws.Credentials.AccessKey, _config.Aws.Credentials.Secret); 

は例外で、次のように

System.DllNotFoundException: Unable to load DLL 'Crypt32.dll': The specified module could not be found. 
(Exception from HRESULT: 0x8007007E) 
    at Amazon.Runtime.Internal.Settings.UserCrypto.CryptProtectData(DATA_BLOB& pDataIn, String szDataDescr, DATA_BLOB& pOptionalEntropy, IntPtr pvReserved, CRYPTPROTECT_PROMPTSTRUCT& pPromptStruct, CryptProtectFlags dwFlags, DATA_BLOB& pDataOut) 
    at Amazon.Runtime.Internal.Settings.UserCrypto.Encrypt(String unencrypted) 
    at Amazon.Runtime.Internal.Settings.SettingsCollection.ObjectSettings.WriteToJson(JsonWriter writer) 
    at Amazon.Runtime.Internal.Settings.SettingsCollection.Persist(StreamWriter writer) 
    at Amazon.Runtime.Internal.Settings.PersistenceManager.saveSettingsType(String type, SettingsCollection settings) 
    at Amazon.Util.AWSCredentialsProfile.Persist(String profileName, String accessKeyId, String secretKey) 

は私の依存性は、以下のとおりです。

"dependencies": { 
    "AWSSDK.Core": "3.3.5" 
} 

答えて

関連する問題