Technology Toolbox

Your technology Sherpa for the Microsoft platform

Jeremy Jameson - Founder and Principal

Search

Search

MOSS 2007

There are 135 entries for the tag MOSS 2007.

Just say "no" to writing SharePoint CAML queries from scratch

Do you use the U2U CAML Query Builder instead of writing CAML queries from scratch? If not, then you must really know your SharePoint (or perhaps you just enjoy making things harder than they need to be).

Use PowerShell to alleviate the pain of code coverage analysis in Visual Studio 2010 and .NET 3.5 solutions (e.g. SharePoint 2010)

This PowerShell script makes it much easier to perform code coverage analysis in Visual Studio 2010 and .NET Framework 3.5 solutions (e.g. SharePoint 2010).

Code coverage analysis with Visual Studio 2010 and .NET 3.5 solutions (e.g. SharePoint 2010)

It takes a little more work than expected, but you actually can "have your cake and eat it too" when it comes to Visual Studio 2010 code coverage analysis and .NET Framework 3.5 solutions (e.g. SharePoint 2010).

HTML-to-PDF converters

Looking for a solution to convert from HTML to PDF? Here is a list of the products I discovered during my research as well as the results of the head-to-head competition.

Be careful when using the SharePoint PublishingPage.Url property

Intellisense isn't helpful when the underlying XML documentation in the code is wrong.

Using the SharePoint API to Configure an Expiration Policy on a Document Library

While it typically takes less than a minute or two to configure an expiration policy on a SharePoint document library, there may still be reasons why you want to do this using the SharePoint object model instead. For example, suppose I have a "Temporary...

Missing thumbnail images in SharePoint?...You probably forgot to specify the "ContentType" property

During the process of creating my previous post , I discovered the thumbnail images were not rendering as expected for the custom images that I added to the out-of-the-box SharePoint /PublishingImages picture library (via a feature). Here is the content...

Reusable Content in SharePoint Publishing HTML Fields, Part 3

In part 2 of this series , I explained how to programmatically add a new Reusable Content list item and subsequently add it to a Publishing HTML field on a page. I also provided a complete sample for SharePoint 2010 that demonstrates how this can be accomplished...

Reusable Content in SharePoint Publishing HTML Fields, Part 2

In my previous post , I introduced a scenario for using the "Reusable Content" feature in Microsoft Office SharePoint Server (MOSS) 2007 and SharePoint Server 2010. In this post, I show you how to programmatically add Reusable Content list items (which...

Reusable Content in SharePoint Publishing HTML Fields, Part 1

In one of the sprints last year for my current project, I built a custom "document publishing" system based on the Web Content Management (WCM) features in Microsoft Office SharePoint Server (MOSS) 2007. My client was looking to replace a legacy system...

Localization and SharePoint Solutions, Part 3 (a.k.a. use field IDs whenever possible)

In part 1 of this series , I mentioned that one of the options for creating SharePoint sites in multiple languages is to install the corresponding SharePoint language packs prior to creating the sites. This is the most common deployment scenario for localization...

Localization and SharePoint Solutions, Part 2 (a.k.a. the CurrentUICultureSwitcher class)

In part 1 of this series , I mentioned how I've been involved in several SharePoint projects for large, multinational corporations including Agilent Technologies and KPMG . I also mentioned how one of the sprints last year for my current project was dedicated...

Upgrading a Custom MOSS 2007 Solution to SharePoint Server 2010

In yesterday's post , I provided a custom SharePoint Server 2010 solution based on Dan Cederholm's sample site for the fictitious Tugboat Coffee company (from his book Handcrafted CSS : More Bulletproof Web Design ). Since I had originally "ported...

Virtual Machine Snapshots and SharePoint Development, Part 2

In part 1 of this post, I introduced the way I use VM snapshots to allow me to quickly rollback my SharePoint development VMs to key points in time. For example, I can quickly revert to a "baseline SharePoint Server 2010 configuration" in which no Web...

Virtual Machine Snapshots and SharePoint Development, Part 1

In a comment I made last week on one of my earlier posts , I mentioned how a few months ago I started using Hyper-V snapshots so I can quickly rollback my SharePoint development VMs to key points in time. The following screenshot shows the snapshots...

Using the Simple Recovery Model for SharePoint Development Environments

A little more than three years ago, I blogged about the default recovery model for various SharePoint databases . In that post, I described how I would often toggle the SQL Server databases in SharePoint development environments from the default Full...

Creating Small VHDs (< 1GB) for Hyper-V

In my previous post , I explained how I like to create separate VHDs for data and log files in my SharePoint development VMs. However, given the very small amount of content that I typically load into a SharePoint development environment, these VHDs certainly...

CDL for SharePoint (a.k.a. "You can never have too many spindles")

In the United States, "CDL" typically refers to a Commercial Driver's License -- but since I don't drive trucks for a living, I use the acronym for something entirely different. To me, these three letters correspond to the minimum number of drives I like...

"Build Bloat", Part 2 (a.k.a. Removing Extraneous Items from SharePoint Visual Studio Projects)

Last week I received a "Logical Disk Free Space is low" alert from Operations Manager for my TFS 2010 build server (DAZZLER). After a few minutes investigating the issue, I discovered that my "Builds" folder was consuming a little over 2 GB of storage...

Identifying Logon Failures on a Web Site

Several years ago, while working on the "Frontier" project at Agilent Technologies , I encountered a scenario where I needed to quickly identify logon failures on the site. The Agilent site was (and I believe still is) based on Microsoft Office SharePoint...

Web Standards Design with SharePoint, Part 3

Last week I received the following comment on a blog post I wrote last year regarding Web standards design with Microsoft Office SharePoint Server (MOSS) 2007: "The Media Guy" Great article.. was very helpful. I used 960.gs for my master page...

A Custom SqlRoleProvider for "Authenticated Users"

Prior to the recent "v2" release on my current project, we had been using the ASP.NET SqlRoleProvider to manage the various roles used by the Web site. Over a month ago, someone contacted me about an issue he was encountering with a specific user....

Web Standards Design with SharePoint, Part 2

In the first part of this series, I explained one approach for building Web sites in Microsoft Office SharePoint Server (MOSS) 2007 based on Web standards and the 960 Grid System . I had intended on following up with a sample solution based on a fictitious...

Avoid Issues with Caching by Using "Theme Versions"

In a previous post discussing Web standards design, I mentioned how I like to use "Theme" folders to organize CSS files and related images that define a specific look-and-feel for a site. For example, suppose we are tasked with building the Internet...

Always Enable Disk-Based Caching in SharePoint Server 2010

In March, 2009, I wrote a post that explains why I always recommend enabling disk-based caching in Microsoft Office SharePoint Server (MOSS) 2007. This morning a Microsoft PFE (Premier Field Engineer) reached out to me after he came across my blog...

Localization and SharePoint Solutions, Part 1

The primary goal for the current sprint on the project I'm working on is to localize the client portal previously developed for the United States so that it can be used by other regions around the world -- initially Spain, Mexico, Argentina, and a few...

Avoid Extraneous Database Roundtrips in SharePoint PublishingPageCollection.Item Property

In my previous post , I explained how I analyze database roundtrips using SQL Server Profiler in order to identify potential performance issues. While working on some proof-of-concept code for my current project, I found the PublishingPageCollection...

Avoid the Warning from Excel Services About Refreshing External Data

In my post earlier this month on upgrading to Team Foundation Server (TFS) 2010 and SharePoint Server 2010 , I forgot to include the steps to change the Warn on Refresh setting of the trusted file location for the Excel Services Application. If you...

Upgrading TFS 2005/2008 Project Sites to TFS 2010, Part 2 - Team Wiki

In part 1 of this series , I showed how you can add new Team Foundation Server (TFS) 2010 dashboard functionality to project sites originally created in TFS 2008 (or TFS 2005). Another feature that you might want to add to upgraded project sites is...

Upgrading TFS 2005/2008 Project Sites to TFS 2010, Part 1 - Agile Dashboard Features

In one of last week's posts , I provided details on upgrading from Team Foundation Server 2008 to TFS 2010, including some information about updating your TFS project sites. I also provided a reference to the following MSDN article for more information...

Building MOSS 2007 Solutions on a TFS 2010 Build Server

After upgrading my Team Foundation Server (TFS) 2008 environment to TFS 2010 , my next step was to upgrade various Visual Studio solutions to the 2010 version and ensure they built successfully after the upgrade. Note that during the upgrade, I chose...

Disable Pinging of Your Application Pool Worker Process in IIS

Yesterday I was doing another "Knowledge Transfer" session and before I started walking through some code in a debugging session, I took a brief detour to show the team how I recommend disabling the "ping" functionality in IIS for your application pool...

Narrowing Search Results to a Specific Site (e.g. My Blog)

A colleague asked me today if there was a way to search my blog for something specific. In my response, I pointed out that you can narrow your search results from Bing to a specific site. For example, suppose you were looking for a blog post that...

Waiting for SharePoint Web.config Modifications to Finish

This week I finally got around to fixing a bug that would occasionally occur when deploying our solution based on Microsoft Office SharePoint Server (MOSS) 2007. In the solution we use a variety of different features to configure different aspects...

SharePoint Features Activated by Default

Here's something interesting I discovered only recently about Microsoft Office SharePoint Server (MOSS) 2007 -- even though I've been working with the product for years... Any features that are scoped to the WebApplication level are automatically activated...

AJAX in MOSS 2007 -- The Easy Way, Part 2

In my previous post , I showed how you can quickly create an AJAX-enabled Web application in Microsoft Office SharePoint Server (MOSS) 2007. I also provided a sample AJAX Web Part, illustrated in the following screenshot: Figure 1: AJAX in SharePoint...

AJAX in MOSS 2007 -- The Easy Way, Part 1

In my previous post , I showed how you can quickly create a Web application in Microsoft Office SharePoint Server (MOSS) 2007 and configure it for anonymous access and Forms-Based Authentication. Let's suppose that instead of configuring FBA and anonymous...

Forms-Based Authentication in MOSS 2007 -- The Easy Way

In one of Saturday's posts , I demonstrated how to implement a custom error page on an Internet site powered by Microsoft Office SharePoint Server (MOSS) 2007. For that post I captured various screenshots and sample code from one of my local development...

Introducing the SharePointWebConfigHelper Class

Here is another helper class that I developed that you may find useful when building solutions for Windows SharePoint Services (WSS) v3 and Microsoft Office SharePoint Server (MOSS) 2007. If you use the SPWebConfigModification class to add or modify...

Error Handling in MOSS 2007 Applications

In my previous post , I described the enhancements to my original Logger class for logging exceptions in a consistent fashion. While error handling in .NET console applications and ASP.NET Web applications is fairly straightforward, things get quite...

Logging Exceptions in .NET Applications

Last summer I wrote a post introducing my simple, but highly effective approach to logging -- including a Logger class that is really just a thin wrapper around the System.Diagnostics.TraceSource class. A few months ago, I enhanced the Logger class...

Web Standards Design with MOSS 2007, Part 1

I've mentioned before that I became somewhat of a Web standards zealot several years ago. Consequently, regardless of whether I'm building Web sites using the core ASP.NET platform or Microsoft Office SharePoint Server (MOSS) 2007, I strive to ensure...

Lessons Learned Integrating Silverlight in MOSS 2007, Part 3

Yesterday I continued building upon part 1 in a series of posts regarding the use of Silverlight in an Internet-facing customer portal built on Microsoft Office SharePoint Server (MOSS) 2007. As I mentioned in the previous posts, the Silverlight application...

Lessons Learned Integrating Silverlight in MOSS 2007, Part 2

This is a continuation of yesterday's post detailing some lessons learned while integrating a Silverlight application into an Internet-facing customer service portal built on Microsoft Office SharePoint Server (MOSS) 2007. As I mentioned in the previous...

Lessons Learned Integrating Silverlight in MOSS 2007, Part 1

The November 2008 edition of MSDN magazine contained the following article: Light Up SharePoint With Silverlight 2 Web Parts http://msdn.microsoft.com/en-us/magazine/dd148643.aspx While the article provides a good introduction to integrating...

Deploying SharePoint Solutions with the "-force" Option

In a previous post , I provided sample "DR.DADA" scripts that I use for deploying solutions based on Microsoft Office SharePoint Server (MOSS) 2007. If you've read that post, you might recall seeing the following lines in, for example, the Deploy Solutions...

"Build Bloat" and Removing Extraneous Items from TFS Builds

This week I am wrapping up the third sprint (a.k.a. iteration or milestone ) on my current Microsoft Office SharePoint Server (MOSS) 2007 project. Although, honestly, I wasn't involved all that much in Sprint-3, since I was on vacation for the vast majority...

Bug: HTTP 403 (Forbidden) with FBA SharePoint Site

We recently encountered a bug when trying to access a SharePoint site configured with Forms-Based Authentication from Internet Explorer. The root site is restricted to authenticated users, whereas the /Public site is configured to allow anonymous users...

Database Default Locations in SQL Server

I've mentioned before the importance of using multiple "spindles" when working with large SQL Server databases. Generally speaking, the recommendation is to use different RAID 1+0 arrays for data and log files -- and depending on the size and load...

Bug with Duplicate Field Names in MOSS 2007

I encountered a rather nasty bug in Microsoft Office SharePoint Server (MOSS) 2007 yesterday that occurs when a custom field (i.e. site column) has the same name as an existing field. Note that this issue will also occur in Windows SharePoint Services...

Building SharePoint WSPs with Team Foundation Build

As I noted in my previous post , I recently discovered that my approach for building Web Solution Packages (WSPs) in Microsoft Office SharePoint Server (MOSS) 2007 isn't compatible with Team Foundation Build. I'm actually a little embarrassed to say...

The "Copy Local" Bug in Visual Studio

If you've ever worked with me on a Microsoft Office SharePoint Server (MOSS) 2007 project -- or if you've read my Sample Walkthrough of the DR.DADA Approach to SharePoint -- then you've probably seen the following comment: Note: Referenced assemblies...

SharePoint Web Part to Redirect from HTTP to HTTPS

Yesterday, I detailed the steps I recommend for configuring SSL on sites built on Microsoft Office SharePoint Server (MOSS) 2007. I also mentioned that users won't automatically be redirected from HTTP to HTTPS, and how I've previously used a little bit...

Configuring SSL on SharePoint Sites

If you are using Basic Authentication or Forms-Based Authentication (FBA) with Microsoft Office SharePoint Server (MOSS) 2007 -- or any Web site, for that matter -- then you must configure secure communication (HTTPS) using SSL certificates. However...

AutoEventWireup Issue in MOSS 2007

I recently promised to finish this blog post that has been sitting in "unpublished" status since June 2008, so here it is... Have you ever encountered the following error in Microsoft Office SharePoint Server (MOSS) 2007? An error occurred during...

Supportability Concerns with Custom HTTP Modules in SharePoint

I am sure that I'm not the first one to tell you this, but you can't believe everything you read on the Internet these days ;-) Case in point...I've seen a number of sources claim that custom HTTP modules are not supported in Microsoft Office SharePoint...

Introducing the SharePointSmtpHelper Class

Continuing in the spirit of my previous posts for the SharePointPublishingHelper class and SharePointWebPartHelper class, I'd like to introduce another helper class that you may find useful when building solutions for Windows SharePoint Services (WSS...

Introducing the SharePointWebPartHelper Class

In a previous post, I introduced the DR.DADA approach to SharePoint development and how I typically use the concept of a FeatureConfigurator to automatically configure one or more aspects of a SharePoint site when activating my feature. For example...

Event ID 10016, KB 920783, and the WSS_WPG Group

If you've ever deployed Windows SharePoint Services (WSS) v3 or Microsoft Office SharePoint Server (MOSS) 2007 in a least privilege configuration, you have undoubtedly encountered errors similar to the following in your Windows event log: The application...

KB 896861 and "Microsoft Fix it"

A couple of days ago, I rebuilt one of my development VMs for Microsoft Office SharePoint Server (MOSS) 2007. As I've noted in a previous post , I've found that I need to apply one of the registry hacks described in the following KnowledgeBase article...

Bug in MOSS 2007 FBA with Insufficient Permissions in SQL Server

A couple of weeks ago I was setting up Forms-Based Authentication (FBA) on my new development VM for Microsoft Office SharePoint Server (MOSS) 2007, and I spent a few hours troubleshooting why I couldn't add a custom role ("Authenticated Users") to a...

Introducing the SharePointPublishingHelper Class

In my previous post , I described a utility to import pages into Microsoft Office SharePoint Server (MOSS) 2007 from an Excel input file. Aside from the code to read data from the input file into a DataSet, the main work is performed by the SharePointPublishingHelper...

Importing Pages into MOSS 2007 from an Excel File

In my previous post , I briefly introduced the concept of a utility to import pages into Microsoft Office SharePoint Server (MOSS) 2007 from an Excel input file. This can be very useful for Development and Test environments (where you frequently rebuild...

"Web application at ... could not be found" Error on MOSS 2007 x64

I encountered a rather nasty bug last week with Microsoft Office SharePoint Server (MOSS) 2007 when trying to run an x86 process (that utilizes the SharePoint API) on an x64 server. To provide the simplest repro possible, I created a sample console...

Enter Key Does Not Submit Search in MOSS 2007 from Firefox

One issue that has "bitten" me on more than one occasion is the fact that the SearchBoxEx control in Microsoft Office SharePoint Server (MOSS) 2007 does not work consistently across different browsers. Specifically, I am referring to the issue where pressing...

Finding the Content Type ID in MOSS 2007

Yesterday I received the following question from someone regarding Microsoft Office SharePoint Server (MOSS) 2007 content type IDs: I need to add another page type [that] inherits from the article page. How do you find the GUID of the article page...

"Web-Enabled" Projects and F5 Debugging with SharePoint

In yesterday's post , I provided a sample walkthrough of the "DR.DADA" approach to developing solutions for Microsoft Office SharePoint Server (MOSS) 2007. However, I intentionally left out a few things because a) that post was already getting ridiculously...

Sample Walkthrough of the DR.DADA Approach to SharePoint

Update 2009-11-18 I discovered that using relative paths in the DDF file is not compatible with Team Foundation Build. Refer to the following post for the updated DDF file and corresponding modifications to the project file: Building SharePoint...

No HTML Markup in MOSS 2007 Managed Properties

In my previous post , I showed how to automatically configure managed properties in Microsoft Office SharePoint Server (MOSS) 2007 when activating a custom "Search" feature. In this post, I want to cover a subtle, yet very important, limitation in managed...

Configuring Managed Properties in MOSS 2007

As I've noted in a previous post , I typically use feature receivers in Microsoft Office SharePoint Server (MOSS) 2007 to automatically configure a "bunch of stuff" that would otherwise be very tedious to perform repeatedly for different environments...

"Inheriting" the Master Page from the Current Site Context in MOSS 2007

In my previous post , I showed how you can override the hard-coded "application.master" in Microsoft Office SharePoint Server (MOSS) 2007 application pages (e.g. /Library/_layouts/viewlsts.aspx). Note that for custom application pages (i.e. those ASP...

Overriding Application.master in MOSS 2007

Microsoft Office SharePoint Server (MOSS) 2007 includes a variety of out-of-the-box master pages. Many are provided primarily as samples (e.g. BlueBand.master) and serve as a starting point for creating your own master page. There's also default.master...

MOSS 2007 Master Page Comparison

This morning I came across an old (June 2007) Excel spreadsheet that I created back when I was working on the Agilent Technologies project. The spreadsheet lists the various placeholder elements in both application.master and default.master for Microsoft...

Faceted Search in MOSS 2007 and the MSSDocProps Issue

Many customers deploying Microsoft Office SharePoint Server (MOSS) 2007 often have a requirement to provide some kind of "faceted search" feature that allows users to quickly and easily narrow their search results. Before I ever knew the commonly accepted...

SharePoint 2010 Sneak Peek

SharePoint 2010 is coming! Last week, I spent 7 days in "alpha" training for SharePoint 2010 up in Redmond. Needless to say, it was a very long week packed full of great information on what's new in the next version. Note that we have been explicitly...

Creating Wireframes for Page Layouts

When helping customers migrate their Internet sites to Microsoft Office SharePoint Server (MOSS) 2007, I've found it very helpful to create wireframes showing the various fields, Web Parts, and master page content. For the last several years, I've been...

Configuring Logging in SharePoint Application Pages

In my previous post I showed how my simple, but highly effective approach to logging can be used with ASP.NET Web applications -- including Microsoft Office SharePoint Server (MOSS) and Windows SharePoint Services (WSS). Note that SharePoint application...

Configuring Logging in ASP.NET Applications (and SharePoint)

This post continues on the original post for my simple, but highly effective approach to logging and the follow-up post which introduced configuring logging for console applications . Obviously not all solutions are simple console-based applications...

A Simple, but Highly Effective Approach to Logging

A common question that frequently arises both with customers and fellow consultants is what do I recommend for logging? As experienced software developers, we know that there are going to be errors in our solution -- as well as other important events...

Environment Naming Conventions

One of the challenges I see in organizations that I work with is the lack of naming conventions for various environments -- or sometimes naming conventions that provide little or no value. For about the last ten years, I've been a strong proponent...

SPLimitedWebPartManager.AddWebPart Mysteriously Increments zoneIndex

One of the common tasks when using the "DR.DADA" approach to SharePoint development is programmatically creating and configuring pages on a site. This often requires adding numerous Web Parts to various zones on a page -- for example, to configure search...

Be Careful Using PublishingWeb.GetPagesListName()

A couple of years ago when we began evaluating Language Packs for Microsoft Office SharePoint Server (MOSS) 2007, we discovered that after installing certain Language Packs, the "Pages" library may be localized -- including both the list name as well...

Always Include "Path" In Search Core Results Web Part

Here is a bug in Microsoft Office SharePoint Server (MOSS) 2007 that I've stumbled across at least twice in the last couple of years...I'm hoping that if I take the time to blog about it, I won't forget it again. If you don't include Path in the SelectColumns...

Temporary ASP.NET Files Are Not Deleted

Yesterday afternoon, I discovered that there were 64,725 items (consuming 2.41 GB) in the C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root folder of my development VM for Microsoft Office SharePoint Server (MOSS) 2007. Apparently...

Introducing the "DR.DADA" Approach to SharePoint Development

At times, it seems like developing SharePoint solutions is all I've been doing since I joined Microsoft in 2000. While many things have certainly changed since the old "Tahoe" days, at least one thing remains relatively the same: my recommendation to...

Updated Thoughts on WSPBuilder

Several weeks ago, I wrote a post titled " Why I'm Not a Fan of WSPBuilder ." Shortly thereafter, I received a message from Carsten Keutmann, the creator of WSPBuilder. Here is the "almost" unabridged version of the email exchange (headers and signatures...

Extraneous SharePoint Assemblies

If you develop solutions for Microsoft Office SharePoint Server (MOSS) 2007, you may notice that certain SharePoint assemblies always get copied to your Visual Studio project output folder even though these referenced assemblies are configured with Copy...

Always Enable Disk-Based Caching in MOSS 2007

For reasons completely unknown to me, the SharePoint team decided to ship Microsoft Office SharePoint Server (MOSS) 2007 with disk-based caching (a.k.a. blob caching ) disabled. If you are not familiar with disk-based caching, here is a blurb from Microsoft...

Script to Restart SharePoint Services

Since my previous post introduced one of my SharePoint Toolbox scripts, I thought I should share another one that is more applicable to a broader audience. As I've noted in the past , memory leaks are certainly not uncommon in the world of SharePoint...

SharePoint ULS Logs Flooded with "Preserving template record with size..."

I was digging through my blog dashboard this morning and I came across this post that I started back in January but apparently never got it past "draft mode." I figured it was time to finish it off. If you've been using Windows SharePoint Services...

XSLT "Identity Transform"

Last week, I was explaining to a teammate that it is often helpful to use the XSLT "Identity Transform" in order to view the raw XML -- in other words, without any "real" transformation by the XSL stylesheet. For example, suppose you need to customize...

The Simplest Way to Show Page Descriptions in SharePoint Search Results

As I mentioned in a previous post , some customers prefer to show page descriptions in search results instead of the HitHighlightedSummary rendered by default in Microsoft Office SharePoint Server (MOSS) 2007. After all, if content authors diligently...

To Dispose or not to Dispose -- that is the question

Last Saturday, another team member sent an email out to the team inquiring about the "MOSS object disposal problem" (as he termed it). Essentially, he was asking if anytime he referenced the ParentWeb property on an object, whether or not he needed...

ArgumentNullException with Optional PublishingPage.Description Property (with some thoughts on breaking the build, too)

Yesterday morning I broke the build. Ouch. Technically speaking, the changes that I checked in did not break the build, per se, but rather my changes caused a nasty ArgumentNullException while redeploying our SharePoint site. In "Developerspeak...

Large Visual Studio Solutions and Loading/Unloading Projects

As I noted in my previous post , I typically work with "large" Visual Studio solutions. Note that I put this in quotes, because the definition of "large" will likely vary widely based on your individual experience. Note that I'm not referring to "large...

Why I'm Not a Fan of WspBuilder

After 3 years, 2 months, and 30 days, my involvement with migrating a large customer from a legacy Web platform to Microsoft Office SharePoint Server (MOSS) 2007 came to an end a few weeks ago. Since then, I have joined another team helping a different...

Bug: Visual Studio 2008 Code Metrics and Referenced Assemblies

Since I seem to be on a roll this morning with blogging, I figured I might as well get one more post in before moving on to my "day job." During the process of authoring a different post earlier today, I stumbled across a bug while using the Code Metrics...

Excluding Various SharePoint Items from Search Results on Internet-Facing MOSS Sites

When using Microsoft Office SharePoint Server (MOSS) 2007 on an Internet-facing site, you almost certainly don't want to include items like announcements, contacts, etc. in search results. Consequently, I recommend customers create additional search...

Bug: MOSS 2007 Search Scope with Property Query Rules Only Is Considered Empty

In Microsoft Office SharePoint Server (MOSS) 2007 version 12.0.0.6335 (i.e. the December 2008 CU), there appears to be a bug where a scope that only contains Property Query rules is not recognized as having any rules at all (i.e. empty) and therefore...

Issues with Running MOSS 2007 on Windows Server 2008

In a previous post , I hinted at some issues that I recently encountered after switching from Windows Server 2003 to Windows Server 2008 on my primary development VM for Microsoft Office SharePoint Server (MOSS) 2007. To make this a little more fun...

Error Installing MOSS 2007 December Cumulative Update

Earlier this week I built a new Microsoft Office SharePoint Server (MOSS) 2007 development VM using a fresh install of Windows Server 2008, SQL Server 2008, and Visual Studio 2008. The process wasn't quite as smooth as I had hoped. One of the issues...

SharePoint Configuration Wizard Hangs with IPv6 Address

I came back from a nice long vacation only to find that my local development VM for Microsoft Office SharePoint Server (MOSS) 2007 was corrupted. By "corrupted", I mean to say there were lots of errors in the event log about the SharePoint_Config database...

Additional Restrictions on File and Folder Names in SharePoint

Up until this morning, I thought I knew what the restrictions were for file and folder names in Windows SharePoint Services 3.0 (WSS v3) and Microsoft Office SharePoint Server 2007 (MOSS 2007). However, I learned the hard way (i.e. during the process...

Browser Button (a.k.a. Favelet or Bookmarklet) for Parsing SharePoint List Item IDs

This morning I received an email from a customer inquiring about making it easier for users to determine the unique identifier for each document in a library. Typically, users don't really care about this "List Item ID" for a document, but there are scenarios...

Shrinking All Database Files in SQL Server

Here is another SQL script that I keep handy in my toolbox: Shrink All Database Files.sql . Unlike the script that I shared in my previous post that simply truncated all transaction logs to free up disk space, this script is suitable for running in a...

Versioning Blog Posts in WSS v3 and MOSS 2007

Complementing the Work Items list that I described in a previous post , we use a blog site (creatively called the "DevBlog") in Microsoft Office SharePoint Server (MOSS) 2007 to track the work items that each member of the Development team has committed...

A Better Way to Build SharePoint Solution Packages (and CAB Files)

Up until about an hour ago, I'd been using post-build events on my Visual Studio projects to create SharePoint solution packages (WSPs). However, while this worked reasonably well, this method always bothered me a little because the post-build events...

Memory Leak in SPLimitedWebPartManager (a.k.a. IDisposables Containing IDisposables)

Back in February, Roger Lamb kicked off his MSDN blog with a great post ( SharePoint 2007 and WSS 3.0 Dispose Patterns by Example ). It provides numerous code samples that demonstrate memory leaks commonly produced when working with the SharePoint object...

Creating a Site Template in MOSS 2007 that Works in WSS v3

Shortly after publishing my previous post covering "TFS Lite" for WSS v3 , Dragan Panjkov noted that attempting to create a new site in WSS v3 using the site template that I originally provided resulted in the following error: The template you have...

Enumerating Feature Definitions in WSS v3 and MOSS 2007

There might be occasions where you need to "decode" the feature GUID in Windows SharePoint Services (WSS) v3 or Microsoft Office SharePoint Server (MOSS) 2007. For these (admittedly rare) situations, I have attached an Excel spreadsheet containing the...

"TFS Lite" for WSS v3

In my previous post , I introduced my "TFS Lite" SharePoint site template that I've been using for years as a simple scenario/task/bug/risk/milestone tracking "application" with various projects and customers. In today's post, I'll discuss some of the...

Default Recovery Models for SharePoint Databases

Okay, I haven't blogged in over 7 weeks -- but hey, I was on vacation for 3 of them -- and I must warn you upfront that this post isn't exactly a "zinger" filled with juicy tidbits, recommendations, or workarounds. Rather, I simply can't seem to remember...

Deleting Variation Labels Does Not Delete Underlying Sites

I've received a number of responses to my series on the problems we encountered with Microsoft Office SharePoint Server (MOSS) 2007 variations. Several people have inquired about how to disable variations without losing their content. It's actually quite...

Dumping MOSS 2007 Variations - Part 3

In part 1 and part 2 of this series, I talked about some major issues with the variations feature in Microsoft Office SharePoint Server (MOSS) 2007 that caused my current customer to abandon using them on their new Internet site. Here is a brief summary...

Dumping MOSS 2007 Variations - Part 2

In part 1 of this series, I talked about my current customer's decision to abandon the use of the variations feature in Microsoft Office SharePoint Server (MOSS) 2007 after we encountered several major issues prior to deployment. The first issue that...

Dumping MOSS 2007 Variations - Part 1

Shortly before I headed out to the airport last Wednesday, I received the fateful email from my customer notifying us that they have decided to abandon using the variations feature in Microsoft Office SharePoint Server (MOSS) 2007. Note that the original...

Copying a SQL Server Database to Another Environment

A couple of weeks ago I was troubleshooting a performance problem with the variations feature in Microsoft Office SharePoint Server (MOSS) 2007 and I needed to copy the content database to another environment for further analysis and testing. An easy...

Variation Logs Paging Bug

It's embarrassing how my blog posts rapidly died off after this past June. However it's even more embarrassing to disclose the paging bug when viewing the Variation Logs page in Microsoft Office SharePoint Server (MOSS) 2007. [By the way, my intent...

"Incorrect syntax near 'COLLATE'." Error When Trying to Join a SharePoint Farm

I encountered another nasty bug this morning while rebuilding our Microsoft Office SharePoint Server (MOSS) 2007 Development environment (DEV). Since the time I originally created DEV, I installed SQL Server SP2 and also restored several legacy databases...

"Failed to configure propagation share." Error Configuring Office SharePoint Server Search

Last weekend I had to rebuild our Test environment for Microsoft Office SharePoint Server (MOSS) 2007 to replace a VM with a physical server (for performance reasons ). During the rebuild, I encountered the following error when starting Office SharePoint...

Save HUGE Amounts of Disk Space by Slipstreaming Service Packs

This is a little embarrassing, but I captured numerous screenshots back in April while rebuilding my SharePoint development VM, but I never got around to writing a blog post to actually share this information with anyone. Well, it's long overdue, but...

Issues Deploying SharePoint Solution Packages

Several weeks ago, I converted our deployment process to use SharePoint solution packages instead of the batch scripts that we had been using in our Development environment. One of the issues that I discovered along the way is that SharePoint is rather...

MOSS Development Environment and a Windows Update Bug

In my previous post , I talked about splitting our Microsoft Office SharePoint Server (MOSS) 2007 Development environment (DEV) into multiple VMs. What I did not mention, however, is the nasty bug in Windows Update that I encountered along the way. ...

Virtual Server Issues and Recommendations for MOSS Virtual Environments

One of the tasks that I completed this week was splitting our Development environment (DEV) into multiple VMs -- one SQL Server VM, one Microsoft Office SharePoint Server (MOSS) 2007 VM for the SSP, and another MOSS 2007 VM for the front-end Web server...

Deleting Large Sites and Recovering from the Failed Deletion of a Site

Apparently you cannot delete a site containing a large amount of content in Microsoft Office SharePoint Server (MOSS) 2007. Last week I deleted -- or rather, attempted to delete – a Document Center site in our Test environment in order to recreate it...

No Error Displayed When Database Update Fails

Here’s a nasty bug that I ran into about three weeks ago... If you attempt to modify a view on a list in Microsoft Office SharePoint Server (MOSS) 2007, but SharePoint is unable to save your changes to the database, no error is displayed in the UI...

Creating Document Center Sites on a Publishing Portal

Here is another issue I discovered long ago, but haven't blogged about yet. Shame on me. When kicking off my current project back in December, I was convinced that a Document Center site in Microsoft Office SharePoint Server (MOSS) 2007 was the best...

Master Page Not Inherited by Document Center Sites

This isn't a recent discovery -- I first encountered this in late Februrary -- but I realized that I had not yet covered this issue in my blog. If you happen to be using the Document Center template in Microsoft Office SharePoint Server (MOSS) 2007...

Always Specify Element with Custom Content Types

I came across a nasty bug earlier this week in Microsoft Office SharePoint Server (MOSS) 2007 -- especially nasty because troubleshooting it primarily involved trial and error since there were no error messages displayed on the page, in the SharePoint...

The Case of the Disappearing Hosts File

Hmmm...how should I phrase this? It has been a very educational couple of weeks on my current SharePoint project. During the rebuild of our Test environment, the SharePoint Products and Technologies Configuration Wizard failed when it was unable...

Team-Based Development in Microsoft Office SharePoint Server 2007

Eric Charran has posted an article on MSDN with some great pointers on developing SharePoint solutions in a team environment: http://msdn2.microsoft.com/en-us/library/bb428899.aspx This is an interesting read and well worth the time spent. Overall...

Out-of-the-Box Permission (Policy) Levels

For a couple of months now, I have been using the following command to add myself to a Microsoft Office SharePoint Server (MOSS) 2007 site restored from a different server: stsadm.exe –o addpermissionpolicy –url http://foobar/sites/Migration -userlogin...

What's in a name? "DefaultFeatureReceiver" vs. "FeatureConfigurator"

In my previous post ( Scope Dependencies for SharePoint Features ) you may have noticed that in the Feature.xml file, I specified the feature receiver class as DefaultFeatureReceiver but the code sample is actually from FeatureConfigurator . This warrants...

Scope Dependencies for SharePoint Features

While integrating various SharePoint features last week, I discovered some of the details around the dependency rules when trying to associate one feature to another. In our solution, we have created a feature for specifying custom fields (i.e. columns...

"Error Creating Control" when using Microsoft Office SharePoint Designer 2007

If, like me, you happen to encounter the following user experience when attempting to edit a master page... Figure 1: SharePoint Designer - "Error Creating Control" See full-sized image. ...then follow these steps to resolve the issue: ...