I have the same project, same exact code on both VS2010 and VS2012, both targeting .NET 3.5. Running in my local machine, the following works in VS2010 but returns "" in VS2012.
requestor = User.Identity.Name;
Same web.config as well. Both running in Debug mode in IE8. What did VS2012 do to the development server?