Skip to content
/

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's not deployed to the GAC.
When compiling you will get the following message: “CS0122: 'foo.bar.x' is inaccessible due to its protection level”

Now you have only one choice: make x public. Or maybe not?

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’s not deployed to the GAC.

read more...
/

It's been a while having time and content to post on this blog but I'm back again. 🙂 I'm currently at the Project Conference 2007 in Seattle and by visiting the sessions and talking to the guys at Microsoft developing the solution I got a lot of answers for things I couldn't find on the […]

It's been a while having time and content to post on this blog but I'm back again. 🙂

I'm currently at the Project Conference 2007 in Seattle and by visiting the sessions and talking to the guys at Microsoft developing the solution I got a lot of answers for things I couldn't find on the web or in the SDK.
The next couple of weeks I will try to post the things I found out.

read more...
/

When you want to use the PSI interface you need to have a PSContextInfo Class. Inside a Project Server Event this will be provided so you don’t need to worry about it’s contents. But outside the Event you will need to create one from scratch.
One of the properties you need is the Site GUID. According to the SDK you can get this value in your code using three different methods.
I use the third option in my application, but it returned the wrong GUID. After some debugging I finally found the problem.

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.

read more...