A collegue of mine had the following problem: he wanted to write a console application to test some SharePoint code, but whenever he opened a new SPSite, the following File Not Found Exception was thrown: after being triggered about a possible problem with the wrong Target Framework, as Visual Studio...
For a long time I didnt know how to retrieve a login name from a SPUser field in a SharePoint List. When a user doesn't have a userProfile, he is stored in the SPUser field as <number>;#<Domain\loginName>, and when he does have a profile, his name is stored as <number>;#<name...