共用方式為


Running HealthVault .NET SDK (1.1.2193.4712) on XP SP2

We have hardened the security protocols used in our .NET SDK (>= 1.1.2193.4712) to use SHA2 instead of SHA1. If you are running HealthVault 0910 or 1001 SDK (DLL Version 1.1.2193.4712) on an Windows XP SP2 (which doesn’t support FIPS compliant SHA2 natively), please add the following settings in web.config of your application to get the SDK to work for you. In future versions of SDK we will default to appropriate alternatives if the OS doesn’t support them.

Web.Config :

 <appSettings>
 <add key="HashAlgorithmName" value="SHA1" />
 <add key="HmacAlgorithmName" value="HMACSHA1" />
</appSettings>

UPDATE: Changed the last line to reflect use of appropriate SHA2 alternatives if OS support is not available.