Once again, Ted Pattison’s writings provided me some critical guidance just when I needed it. I’ve been developing a SharePoint Application Pages application and have run into two things that Ted has helped me with. Early on in the project was “how do I get started?” and Ted’s “CustomApplicationPages.zip” on
http://www.tedpattison.net/downloads.aspx
along with his blog post
http://blog.tedpattison.net/Lists/Posts/Post.aspx?ID=3 . Yesterday, I ran into a problem where my application needed to execute the SPWeb.EnsureUser(login) method so that I could assign a user in AD to a “user or group” field in a SPList, and it turns out that you need to be a privileged user to do that. His article in MSDN (http://msdn2.microsoft.com/en-us/library/bb466220.aspx ) about running with elevated privileges was just what I needed.
Thanks!
–Michael