Import-AzurePublishSettingsFile抛出CryptographicException。
我们上传了管理证书,所有Azure API都返回结果,但Import-AzurePublishSettingsFile会抛出以下异常:
importSystem.Security.Cryptography.CryptographicException:发生内部错误。 在System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
在System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromBlob(字节[] awData,IntPtr的密码,UInt32的dwFlags中,布尔persistKeySet,SafeCertContextHandle&安培; pCertCtx)
at System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromBlob(Byte [] rawData,Object password,X509KeyStorageFlags keyStorageFlags)
at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte [] rawData,String password)
在Microsoft.WindowsAzure.Commands.Utilities.Common.PublishSettingsImporter.PublishSubscriptionToAzureSubscription(PublishDataPublishProfile轮廓,PublishDataPublishProfileSubscription多个)E:\项目\天青-SDK-工具\ WindowsAzurePowershell \ SRC \ Commands.Utilities \共同\ PublishSettingsImporter.cs:第56行
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
在System.Collections.Generic.List
1..ctor(IEnumerable
1集合)在System.Linq.Enumerable.ToList [TSource](IEnumerable`1 source)
在在电子Microsoft.WindowsAzure.Commands.Utilities.Common.WindowsAzureProfile.ImportPublishSettings(字符串文件名):\项目\天青-SDK-工具\ WindowsAzurePowershell \ SRC \ Commands.Utilities \共同\ WindowsAzureProfile.cs:线293 < / p>