次の問題があります。
AesCryptoServiceProvider を使用して一部のデータを暗号化および復号化するクラスを作成しました。SharePoint WebPart でクラスを使用していますが、すべて正常に動作します。また、カスタム SharePoint Web サービスの同じ Web アプリケーションで同じクラスを使用しており、System.Security.Cryptography.AesCryptoServiceProvider のコンストラクターが呼び出されるたびに、次のスタック トレースで System.PlatformNotSupportedException がスローされます。
System.PlatformNotSupportedException: The specified cryptographic algorithm is not supported on this platform.
at System.Security.Cryptography.CapiNative.AcquireCsp(String keyContainer, String providerName, ProviderType providerType, CryptAcquireContextFlags flags, Boolean throwPlatformException)
at System.Security.Cryptography.AesCryptoServiceProvider..ctor()
at m2009_wu.ProvisioningLibrary.ConfigManager..ctor()
変更なしで、さまざまなプラットフォーム用にクラスを含む Web サービスとライブラリをコンパイルしようとしました。
私の開発環境が実行されているシステムは、Microsoft Office SharePoint Server 2007 SP2 x64 および Visual Studio 2008 SP1 を備えた Windows Server 2008 Standard SP1 x64 です。.Net Framework 3.5 SP1 がサーバーにインストールされています。
誰かが私を正しい方向に向けることができれば幸いです。
敬具 レネ・ウィンデガー