Using Session State in SharePoint 2010

SharePoint 2010 uses two services related to session state that have similar names but are separate and have different purposes. ASP.NET session state may be used on SharePoint 2010 pages. This service is automatically disabled in normal installations of SharePoint 2010; it may be enabled using the instructions below. Once enabled, it appears on the…

10

Debugging web parts and other SharePoint custom code

This blog posting applies to Microsoft Office SharePoint Server 2007. Here are some tips for debugging your SharePoint web parts and other custom code. 1. How do you debug assemblies that are in the GAC? 2. Is there an easy way of attaching the debugger to the right process? Debugging assemblies that live in the…

2

Modifying My Site Owner Security

This blog posting applies to Microsoft Office SharePoint Server 2007. When someone creates a MySite, they are automatically given full control of that site.  More accurately: a MySite is a site collection; the creator becomes the first & only Site Collection Administrator; the creator is made a member of the Owners group.  Some people feel…

14

New Design and Build Guide for MOSS 2007

This blog posting applies to Microsoft Office SharePoint Server 2007. This is a topic near and dear to my heart.  I’ve spent many hours helping customers plan and execute a wide range of customizations for MOSS 2007.  Now, the ECM Team (Enterprise Content Management) has published an exhaustive paper on these topics.  At least, I…

1

Test With Correct Privileges

When developing web parts and other components with code, it’s important to remember that operations performed by code may require certain privileges.  During development, the code runs in the security context of the developer, who is usually a server administrator.  This means all operations are permitted, so access problems don’t arise.  During testing and production,…

1

Using Reflector to See SharePoint’s "Source" Code

Important Note: Customers are advised to review the end user license agreement (EULA) for the relevant Microsoft products before using this tool.  This blog entry does not authorize or endorse any use of Microsoft products that is not addressed specifically by the product’s EULA. Do you sometimes use a “reflector” program to examine SharePoint source code?…

1

SharePoint Lists as DataTables

This blog posting applies to Microsoft Office SharePoint Server 2007. You may know that SPList can return a DataTable type: SPList.Items.GetDataTable().  And if you’ve worked with this, you may know that the DataTable you get is not databound to the list.  This means you can’t update the List from changes you make to the DataTable. …

1

Scripting STSADM commands

This posting contains tips ‘n tricks for using STSADM commands within batch files.   Note, the primary Microsoft reference for STSADM: TechNet article Stsadm command-line tool (Office SharePoint Server).   Testing results STSADM returns 0 as ERRORLEVEL in DOS when it succeeds, or -1 when it fails.  To test for success, IF %ERRORLEVEL% EQU 0 can…

2

XSL Tips

When writing XSL, it is often desirable to be able to see the raw XML that you’re trying to transform.  This is especially helpful when customizing XSL for web parts such as content query.  The red text below show how to modify the ContentQueryMain.xsl file to do this for a Content Query web part.  This can…

0

MOSS as front end to other storage systems

This blog posting applies to Microsoft Office SharePoint Server 2007. I’ve been asked several times if MOSS can be used to front-end other storage systems, and wanted to post a few pointers here.  I was prompted to post this when I came across notice of the recent WSS 3.0 hotfix package, and was very surprised…

3