Technology Toolbox

Your technology Sherpa for the Microsoft platform

Jeremy Jameson - Founder and Principal

Search

Search

WSS v3

There are 64 entries for the tag WSS v3.

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).

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...

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...

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...

Lessons Learned Moving TFS to Windows Server 2008 and SQL Server 2008

I've been a bad blogger this month. Almost a month ago, I wrote a post about using Web standards with Microsoft Office SharePoint Server (MOSS) 2007 , but I noted that there would be more to come on that subject in the near future. Well, almost a full...

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...

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...

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...

"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...

"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...

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...

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...

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...

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...

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...

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...

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...

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...

"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...

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...

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...

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...

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: ...