I am using MachineKey API to encrypt/decrypt a piece of information in an ASP.NET application. I am using
MachineKey.Encode(data, MachineKeyProtection.All)
and
MachineKey.Decode(data, MachineKeyProtection.All)
methods of API. Everything works great on Windows 8 and Windows Server 2012 when Load User Profile is enabled. The problem is for some reason it doesn't survive app pool restart on Windows Server 2008 R2 with IIS 7.5.
Initially I had impression that I will need to enable Load User Profile setting on Application Pool but that doesn't make any difference. Any idea what I could be missing here?
Thanks