While working on a project with some existing code I noticed the developer did write large portions of code to get from an URL to a SPList. He probably didn’t know some of the hidden gems in SharePoint.
“CS0122: ‘x’ is inaccessible due to its protection level” but you don’t want to go public
Sometimes you have to split your code into different assemblies.
For example, when I created a custom Admin Page
which inherits from WebAdminPageBase
(Microsoft.SharePoint.ApplicationPages
).
The problem with Microsoft.SharePoint.ApplicationPages
is that it is not deployed to the GAC.
Using LINQ with the MOSS UserProfileManager
Lately I am working a lot with LINQ and all flavors like LINQ to XML, LINQ to XSD, LINQ to objects, etc.
Today I had to build some functionality in SharePoint where I had to split users in two groups based on a profile property in their User Profile.
In this article I will show you how I did this.
Project Conference 2007
It has been a while having time and content to post on this blog but I am back again. 🙂
I am currently at the Project Conference 2007 in Seattle and by visiting the sessions and talking to the people
at Microsoft developing the solution I got a lot of answers for things I could not find on the web or in the SDK.
The next couple of weeks I will try to post the things I found out.
Pitfall: Using the SiteData Web Service to get the Site GUID
When you want to use the PSI interface you need to have a PSContextInfo
class.
Inside a Project Server Event this will be provided automatically,
so you don’t need to worry about its contents (except when you want to impersonate as a different user).
But outside the Event you will need to create one from scratch.