October 2008 Entries

401.1 Error When Accessing SharePoint From Server

I ran into this issue several times in the past in setting up SharePoint environments (for both internal development use and customers) so I figured it was time to write a blog post about it.  If you are running SharePoint Server 2007 or WSS 3.0 on  Windows Server 2003 SP1 or later you will run into authentication issues if you are trying to access a SharePoint site using host headers from the server itself (i.e. host file has portal.mydomain.com pointed to 127.0.0.1).  This issue manifests itself as the result of a loop back security check that Microsoft built in to Windows...

SPQuery Doesn't Search Sub Folders

If you are using the SharePoint object model to query a SharePoint list you will find out that SPQuery doesn't retrun items in the subfolders. In  order to execute a search query against a list and return results regardless of subfolder location you need to add "Scope='RecursiveAll'" attribute to the SPQuery object's ViewAttributes property.  Since the ViewAttributes property is a string you need to make sure that this attribute doesn't already exist.  If it exists you must remove it and then add it back to the ViewAttributes property.      SPListItemCollection foreach (SPListItem item in itemCollection){      //do something }SPQuery query = new SPQuery(); query.ViewAttributes += " Scope='RecursiveAll'"; itemCollection = list.GetItems(query); ...

When Not To Crawl Content

It is generally accepted that searching for content in MOSS or WSS 3.0 requires the content to first be crawled by the SharePoint Search Service.  However in traditional Enterprise Content Management (ECM) scenarios this typically doesn't make a lot of sense.  If evaluate how most organizations manage content for the purposes of managing that content, you will quickly see why crawling content doesn't make a whole lot of sense.  A typical ECM related business process involves the capture (data stream or scanning of content), categorization, processing, and archival of content.  In many cases significant time, money, and effort is expended in these...

Configuring Live Writer for SubText

Microsoft Live Writer can be configured to use with SubText.  Here are the steps.  1). Navigate to the Weblog > Add Weblog Account menu 2). Select Another weblog service  3). Enter the URL of your weblog (http://myblog.com/blogname) 4). Enter a username and password. 5). Under the type of weblog select Metaweblog API and enter the Remote Posting Url in the following format:  http://<someblogsite.com>/<username>/services/MetaBlogAPI.aspx 6). Click Next.  Enter a name for this blog setting and click Finish.    

«October»
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678