Have you tried running on actual device or Phone emulator and see what it says?
When I build for win32 and run it, I don't get any error in the log, it just skips over my alert statements. It gives me my first alert and nothing else. If I build for windows mobile and run it on a device, then it works fine. To me, it appears that for XPE and Win32 devices, this isn't supported. Just wondering how else to get information from the registry.
var x = generic.GetRegistrySetting(1, "Volatile Environment", "USERNAME");