进口AzurePublishSettingsFile引发CryptographicException。
我们上传了一个管理证书和所有在Azure API的返回结果,但进口AzurePublishSettingsFile抛出以下情况除外:
importSystem.Security.Cryptography.CryptographicException:发生内部错误。 在System.Security.Cryptography.CryptographicException.ThrowCryptographicException(的Int32小时)
在System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromBlob(字节[] awData,IntPtr的密码,UInt32的dwFlags中,布尔persistKeySet,SafeCertContextHandle&pCertCtx)
在System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromBlob(字节[] RAWDATA,对象密码,X509KeyStorageFlags keyStorageFlags)
在System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(字节[] RAWDATA,字符串password)
在Microsoft.WindowsAzure.Commands.Utilities.Common.PublishSettingsImporter.PublishSubscriptionToAzureSubscription(PublishDataPublishProfile轮廓,PublishDataPublishProfileSubscription S)在E:\项目\ Azure的SDK工具\ WindowsAzurePowershell的\ src \ Commands.Utilities \ COMMON \ PublishSettingsImporter.cs:行56
在System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
在System.Collections.Generic.List
1..ctor(IEnumerable
1集合)在System.Linq.Enumerable.ToList [TSource](IEnumerable`1源)
在在电子Microsoft.WindowsAzure.Commands.Utilities.Common.WindowsAzureProfile.ImportPublishSettings(字符串文件名):\项目\ Azure的SDK工具\ WindowsAzurePowershell的\ src \ Commands.Utilities \ COMMON \ WindowsAzureProfile.cs:293线