a wss3 development environment on a 2003 R2 server
then a production 2008 r2 server.
For some reason on the 2008 server the SPContext.Current.Web.CurrentUser object is null for users who are site collection administrators but may not have permission to log into the server itself; however, on the 2003 R2 server the code works fine for those users.
When googling around, I had seen something about nt permissions on the bin folder sometimes being and issue until asp.net cache picks up the dll but this is a page in the _layouts directory and the code is in the .aspx page itself. It works fine for me as a system administrator on either machine.
Any suggestions? Thanks.
- Moved by Wayne Fan Thursday, October 14, 2010 7:29 AM It's SharePoint 2010 issue, thanks. (From:SharePoint 2010 - Using Visual Studio with SharePoint and other programming)