I believe IIS use other account like ASP.NET account.
from your code what I see is the it query on the current user.
so basically the current user will be the ASP.NET account.
RegistryKey regKey = Registry.CurrentUser.OpenSubKey("Software\\Yahoo\\Pager");
will always return null.
try to use the
Impersonation feature of ASP.NET.