aspnetcore/src
Praburaj 56cfbdde82 Fixing dataprotection on IIS
Fixes: https://github.com/aspnet/DataProtection/issues/73

On IIS where there is no user profile, the code tries to always read the 32bit registry view irrespective of the bitness of the worker process. So in case of 64 bit app pools the registry key is null so it falls back to in memory ephemeral repository. On 32 bit app pool it can find an appropriate registry key, but the keyRepositoryDescriptor is not populated resulting in a null reference exception.

Current behavior:
X86 throws
X64 falls back to in memory ephemeral

With fix:
Both X86 and X64 will use DPAPI.
2015-04-01 13:02:09 -07:00
..
Microsoft.AspNet.Cryptography.Internal
Microsoft.AspNet.Cryptography.KeyDerivation
Microsoft.AspNet.DataProtection Fixing dataprotection on IIS 2015-04-01 13:02:09 -07:00
Microsoft.AspNet.DataProtection.Extensions
Microsoft.AspNet.DataProtection.Interfaces
Microsoft.AspNet.DataProtection.Shared
Microsoft.AspNet.DataProtection.SystemWeb