<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>SharePoint on Bits and Pieces</title>
		<link>https://bits.strawjackal.org/tags/sharepoint/</link>
		<description>Recent content in SharePoint on Bits and Pieces</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Wed, 16 Apr 2008 15:13:16 +0200</lastBuildDate>
		
			<atom:link href="https://bits.strawjackal.org/tags/sharepoint/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Sneaking past the SharePoint Usage Log</title>
				<link>https://bits.strawjackal.org/119/</link>
				<pubDate>Wed, 16 Apr 2008 15:13:16 +0200</pubDate>
				<guid>https://bits.strawjackal.org/119/</guid>
				<description>&lt;p&gt;I&#39;m writing a piece of code that regularly polls a MOSS server and checks several files. This can happen quite a few times a day, and this totally skews my Usage Reports for my sites. &lt;/p&gt;  &lt;p&gt;Does anyone know of a way to tell MOSS to ignore calls made by a specific user, a specific IP (my code runs on a dedicated server), a specific UserAgent or whatever?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Any signs of life for the SharePoint Extensions for Visual Studio?</title>
				<link>https://bits.strawjackal.org/120/</link>
				<pubDate>Wed, 23 Jan 2008 19:57:31 +0200</pubDate>
				<guid>https://bits.strawjackal.org/120/</guid>
				<description>&lt;p&gt;Has anything been released - or, in fact, talked about - since August&#39;s release of the &lt;a href=&#34;http://www.microsoft.com/downloads/details.aspx?FamilyID=3e1dcccd-1cca-433a-bb4d-97b96bf7ab63&amp;displaylang=en&#34;&gt;v1.1 CTP&lt;/a&gt;?&lt;/p&gt;  &lt;p&gt;Haven&#39;t done any web-part development in a while and wanted to get back in the game. I last used the v1.0 extensions, and was surprised that nothing much has changed in that field except for the CTP release, and even that can&#39;t be downloaded - I just get a broken link.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Dynamically creating a Sharepoint Web-Service proxy instance</title>
				<link>https://bits.strawjackal.org/128/</link>
				<pubDate>Mon, 03 Sep 2007 16:55:35 +0200</pubDate>
				<guid>https://bits.strawjackal.org/128/</guid>
				<description>&lt;p&gt;In my current code, I find myself accessing many Sharepoint web services. In one run of code I can access 5-6 different web services on dozens of different sites, not necessarily even on the same server. Given that I find myself writing a lot of boilerplate code looking like this:&lt;/p&gt; &lt;p&gt;&lt;font face=&#34;Courier New&#34;&gt;using (SiteData siteDataWS = new SiteData())&lt;br&gt;{&lt;br&gt;   siteDataWS.Credentials = CredentialsCache.DefaultNetworkCredentials;&lt;br&gt;   siteDataWS.Url = currentSite.ToString() + &#34;/_vti_bin/SiteData.asmx&#34;;&lt;br&gt;&lt;br&gt;   // Do something with the WS.&lt;br&gt;}&lt;/font&gt;&lt;/p&gt;</description>
			</item>
			<item>
				<title>Some more glaring omissions in the Sharepoint 2007 SDK and Web Services</title>
				<link>https://bits.strawjackal.org/136/</link>
				<pubDate>Wed, 18 Jul 2007 08:57:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/136/</guid>
				<description>&lt;p&gt;I downloaded the &lt;a href=&#34;http://www.microsoft.com/downloads/details.aspx?familyid=6d94e307-67d9-41ac-b2d6-0074d6286fa9&amp;displaylang=en&#34;&gt;new Sharepoint 2007 SDK&lt;/a&gt; today, published last week though it&#39;s dated from April 2007. There appears to be no change history for this version of the SDK.&lt;/p&gt; &lt;p&gt;I was hoping for more information on new Web Service methods available in 2007 - hoping that the lack of 2007-specific functionality was more of a documentation error than an actual oversight. It seems this is not the case.&lt;/p&gt; &lt;p&gt;I&#39;ve &lt;a href=&#34;http://weblogs.asp.net/avnerk/archive/2007/07/02/no-per-item-permissions-in-wssv3-s-web-services.aspx&#34;&gt;written about&lt;/a&gt; the lack of item-level permissions in the WSSv3 web services before, but I&#39;ve found some other serious problems. &lt;/p&gt;</description>
			</item>
			<item>
				<title>No Per-item permissions in WSSv3&#39;s Web Services?!</title>
				<link>https://bits.strawjackal.org/137/</link>
				<pubDate>Mon, 02 Jul 2007 14:52:59 +0200</pubDate>
				<guid>https://bits.strawjackal.org/137/</guid>
				<description>&lt;p&gt;How did I miss this until now? It&#39;s great that WSSv3 and MOSS give us granular permissions, and it&#39;s great that I can access those permissions via an SPListItem&#39;s RoleAssignments collection - but is there really no way of getting this information in a web service?&lt;/p&gt; &lt;p&gt;The Permissions web service remains unchanged from WSSv2, GetPermissionCollection() receiving a List GUID and returning permissions for that list. Nothing for specific documents. Interestingly enough, the method also receives an &lt;em&gt;objectType&lt;/em&gt; string, which could ostensibly allow us to pass other types of objects and get permissions data for them - but this apparently never made the cut for WSSv3 RTM. &lt;/p&gt;</description>
			</item>
			<item>
				<title>Retrieving all properties for a Sharepoint list</title>
				<link>https://bits.strawjackal.org/138/</link>
				<pubDate>Sun, 03 Jun 2007 19:33:30 +0200</pubDate>
				<guid>https://bits.strawjackal.org/138/</guid>
				<description>&lt;p&gt;When we call the GetListItems or GetListItemChanges methods in Sharepoint&#39;s Lists Web Service, we pass an XmlNode parameter specifying which fields we want to return, in this format:&lt;/p&gt; &lt;p&gt;&lt;ViewFields&gt;&lt;br&gt;   &lt;FieldRef Name=&#34;ows_ID&#34;/&gt;&lt;br&gt;&lt;/ViewFields&gt;&lt;/p&gt; &lt;p&gt;Now, if we leave this field as &lt;em&gt;null&lt;/em&gt;, we get a certain set of properties back - Name, Last Modified and so forth. Basic, commonly used properties. However, if we want to return ALL properties, and we don&#39;t want to explicitly state them, we need to pass an XmlNode with an empty-but-valid ViewFields XML:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Customizing MOSS Page Title</title>
				<link>https://bits.strawjackal.org/146/</link>
				<pubDate>Wed, 11 Apr 2007 10:00:33 +0200</pubDate>
				<guid>https://bits.strawjackal.org/146/</guid>
				<description>&lt;p&gt;Another odd client request that came in a while ago. &lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;When we browse our Sharepoint site, IE&#39;s title reads &#34;Home - My Site Name - Windows Internet Explorer&#34;. We can&#39;t find any way to remove the &#34;Home&#34; string, regardless of how we change the site&#39;s name. This is critical for our ISO review tomorrow!&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Now, I&#39;m no ISO reviewer, but it seems a bit excessive even for the strictest ISO test. But hey, I&#39;m just your friendly neighborhood technical solutions provider. &lt;/p&gt;</description>
			</item>
			<item>
				<title>Sharepoint Extensions for Visual Studio - released!</title>
				<link>https://bits.strawjackal.org/149/</link>
				<pubDate>Wed, 28 Mar 2007 20:04:05 +0200</pubDate>
				<guid>https://bits.strawjackal.org/149/</guid>
				<description>&lt;p&gt;Finally, we have a full, RTM version of the Visual Studio extensions! &lt;br&gt;The download page says March 15th, but I haven&#39;t seen anyone mention it around yet - could it be just me that missed the boat? &lt;br&gt;I got it from Mark Bower&#39;s &lt;a href=&#34;http://blogs.msdn.com/bowerm/archive/2007/03/28/last-piece-in-the-jigsaw.aspx&#34;&gt;blog&lt;/a&gt;, but haven&#39;t seen it mentioned anywhere else.&lt;/p&gt; &lt;p&gt;On one hand, this is great – the last version was from November ’06, and crashed &lt;a href=&#34;http://weblogs.asp.net/avnerk/archive/2007/02/21/sharepoint-extensions-for-visual-studio-2005.aspx&#34;&gt;often&lt;/a&gt;. Deployment seemed to work only for empty web-part projects and the Solution Generator crashed when trying to dump a whole site.  &lt;p&gt;On the other hand, there are still many basic scenarios not covered by the tools – we can’t export a Publishing site into a site definition, or any list with a Lookup field. This is a &lt;i&gt;huge&lt;/i&gt; drawback.  I hope they release a newer version soon, or perhaps a set of MOSS extensions (rather than WSS) that supports these scenarios.  &lt;p&gt;Regardless, congrats to the team for releasing it for us, and keep up the good work.  &lt;p&gt;Get it here:  &lt;p&gt;&lt;a href=&#34;http://www.microsoft.com/downloads/details.aspx?FamilyID=19f21e5e-b715-4f0c-b959-8c6dcbdc1057&amp;DisplayLang=en&#34;&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=19f21e5e-b715-4f0c-b959-8c6dcbdc1057&amp;DisplayLang=en&lt;/a&gt;&lt;/p&gt;</description>
			</item>
			<item>
				<title>Session Error with Reports Center under MOSS 2007 - Not what you expect</title>
				<link>https://bits.strawjackal.org/150/</link>
				<pubDate>Sun, 18 Mar 2007 10:37:15 +0200</pubDate>
				<guid>https://bits.strawjackal.org/150/</guid>
				<description>&lt;p&gt; Ran into a problem with a client today. They installed MOSS 2007 and created a publishing portal, but then decided to erase the Reports Center, since they had no use for it. A few days later, of course, they figured they DID want it after all, and recreated a new site, called Reports, using the Reporting Center template. &lt;/p&gt; &lt;p&gt;However, when trying to access it, they received this error: (click for full-sized image).&lt;/p&gt;</description>
			</item>
			<item>
				<title>Sharepoint Extensions for Visual Studio 2005</title>
				<link>https://bits.strawjackal.org/151/</link>
				<pubDate>Wed, 21 Feb 2007 16:53:34 +0200</pubDate>
				<guid>https://bits.strawjackal.org/151/</guid>
				<description>&lt;p&gt;Any news on when a new release of the extensions are due? The state of the current tools is downright abyssmal. Even ignoring the requirement to run VS on the Sharepoint server machine, half the things don&#39;t work or are horribly slow. The Sharepoint Solution Generator doesn&#39;t support the most important sites I want to create a definition of (Portals, Publishing sites) and crashes randomly throughout, the WSP generator scripts take almost 5 minutes for a simple list definition, and the Sharepoint Workflow Designer is simply a mess, hard to understand what&#39;s going on and how to match a correlationToken between tasks and workflows.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Word 2007 and Sharepoint Workflows</title>
				<link>https://bits.strawjackal.org/152/</link>
				<pubDate>Tue, 20 Feb 2007 22:22:31 +0200</pubDate>
				<guid>https://bits.strawjackal.org/152/</guid>
				<description>&lt;p&gt;I&#39;ve got a couple of questions about Word 2007 integration with Sharepoint 2007, and several problems that occur because of it:&lt;/p&gt; &lt;p&gt;&lt;strong&gt;The Mysterious Checked-Out Error&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Let&#39;s say I have a workflow attached to a document library which creates a data collection task, and when that task is completed updates the document metadata with the task data (say, &#34;Ask for Comments&#34;). For some reason if I leave the document open in Word and complete the task, I get an error in the workflow claiming the document is checked out and can&#39;t be updated.&lt;/p&gt;</description>
			</item>
			<item>
				<title>&#34;Trial Expired&#34; errors in unexpected places.</title>
				<link>https://bits.strawjackal.org/153/</link>
				<pubDate>Tue, 20 Feb 2007 19:16:12 +0200</pubDate>
				<guid>https://bits.strawjackal.org/153/</guid>
				<description>&lt;p&gt;I&#39;ve installed MOSS 2007 RTM on a couple of test VPCs here, using the 180-day trial version. Everything worked fine until I tried to create a new page in my Publishing Portal - suddenly received a &#34;The trial period for this product has expired&#34; message and it won&#39;t let me create it. This is strange, since I got this key from Microsoft Downloads 3 days ago. Switching the server to an MSDN key didn&#39;t help either, so it wasn&#39;t a licensing issue.&lt;/p&gt;</description>
			</item>
			<item>
				<title>MOSS Workflows are versioned</title>
				<link>https://bits.strawjackal.org/154/</link>
				<pubDate>Tue, 20 Feb 2007 19:04:37 +0200</pubDate>
				<guid>https://bits.strawjackal.org/154/</guid>
				<description>&lt;p&gt;I was asked today about MOSS&#39;s behavior when workflows are changed midstream. Say I have a document library with a Workflow attached to it, start a few long-running (non-immediate) workflows, then change the workflow before they&#39;re completed - will they keep running? Will they use the new workflow or the old, from that point on?&lt;/p&gt; &lt;p&gt;I had hoped for the former, but expected the latter. You can&#39;t switch flow in midstream (if you&#39;ll pardon my mishmash of similar metaphors), since a newer activity might rely on a variable created by a previous action - one that never took place.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Screencasts vs. Whitepapers</title>
				<link>https://bits.strawjackal.org/155/</link>
				<pubDate>Thu, 15 Feb 2007 14:10:35 +0200</pubDate>
				<guid>https://bits.strawjackal.org/155/</guid>
				<description>&lt;p&gt;A few weeks ago, &lt;a href=&#34;http://blogs.technet.com/lliu/archive/2006/11/15/4-new-screencast-based-demos-for-moss-more-hints-about-sharepointpedia.aspx&#34;&gt;Lawrence Liu&lt;/a&gt; (a senior technical PM and community lead for Sharepoint at Microsoft) linked to a few screencasts for learning how to use various features in MOSS2007. In that entry, he mentioned how screecasts are more effective and efficient in training and learning to use a new piece of software. Me, I&#39;m a bit divided about them:&lt;/p&gt; &lt;p&gt;1) Screencasts are great for getting a hands-on view of the system, that&#39;s true. A picture is worth a thousand words, and a movie is worth about 30 frames per second. I know &lt;a href=&#34;http://tools.osherove.com/Default.aspx?tabid=182&#34;&gt;software authors&lt;/a&gt; that have replaced the help file completely with a small Camtasia screencast. This, of course, only works for simple programs with few use-cases.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Bad naming - Sharepoint Features</title>
				<link>https://bits.strawjackal.org/156/</link>
				<pubDate>Thu, 08 Feb 2007 07:51:39 +0200</pubDate>
				<guid>https://bits.strawjackal.org/156/</guid>
				<description>&lt;p&gt;Gaaah! Who, in the name of all that is holy, thought that naming a feature in Sharepoint &#34;Features&#34; would be a good idea? Sure, it describes it, but it also describes practically everything else. It&#39;s impossible to find on Google and makes conversation sound more like a Marx Brothers sketch then a technical conversation.&lt;/p&gt; &lt;p&gt;Why? Why? Why?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Some thoughts on uninstalling Sharepoint &#39;12&#39; Beta 1</title>
				<link>https://bits.strawjackal.org/180/</link>
				<pubDate>Mon, 19 Jun 2006 17:52:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/180/</guid>
				<description>&lt;P&gt;I&#39;m uninstalling an old beta of the Sharepoint servers from a VPC I have on my computer to make room for the newer Beta 2 servers, and I noticed several things:&lt;/P&gt;&#xD;&#xA;&lt;P&gt;1) The installation originally required a then-current build of Windows Workflow Foundation to install. However, it appears that it also requires it to UNINSTALL. I had to find the old installation of WWF Beta 1.2 and reinstall it. It is no longer available on Microsoft Downloads except as part of the 100MB package containing the Visual Studio extensions. Actual package size - 2.5Mb.&lt;/P&gt;&#xD;&#xA;&lt;P&gt;2) Uninstallation CRAWLS under VPC (512MB RAM, running on a USB2.0 external harddrive).&lt;/P&gt;&#xD;&#xA;&lt;P&gt;3) Is it my imagination? Does it... is it... &lt;BR&gt;No, it&#39;s true. The progress bar for the uninstallation actually does go BACK a few pixels every once in a while. You probably won&#39;t notice it if it isn&#39;t crawling on a background VPC, but it&#39;s true. It&#39;s rocking back and forth. Weird.&lt;/P&gt;</description>
			</item>
			<item>
				<title>CAML still has its humps.</title>
				<link>https://bits.strawjackal.org/228/</link>
				<pubDate>Tue, 31 May 2005 08:23:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/228/</guid>
				<description>&lt;p&gt;The last few days I found myself wrestling quite a bit with CAML. The basic idea was to replace the standard &#34;Create New Document&#34; button in a document library with some logic - if no document template is specified for the doclib, replace the button with three different buttons - Create Word Document, Create Excel Spreadsheet and Create Powerpoint Presentation.&lt;/p&gt; &lt;p&gt;This involved several operations to the SCHEMA.XML - wrapping the proper buttons in an &lt;IfEqual&gt; tag to check if the TemplateUrl property has been set, rendering the proper buttons, and adding a new createNewDocument javascript function to instantiate the Sharepoint.OpenDocuments class and open the new document in its proper editor.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Automatic population of web-parts in a New Web Part Page.</title>
				<link>https://bits.strawjackal.org/230/</link>
				<pubDate>Mon, 02 May 2005 09:05:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/230/</guid>
				<description>&lt;p&gt;When a new sharepoint is created, the default page is automatically populated with several default web-parts as described in the ONET.XML and the &lt;Modules&gt; section. This is (relatively) well documented and clear.&lt;/p&gt; &lt;p&gt;However, if I create a new Web Part Page in an existing site (from the Create -&gt; Web Part Page menu) based on one of the 9 templates in the DOCTEMPSMARTPGS directory, it is also populated with a web-part - the TitleBarWebPart, specifically. I don&#39;t want this web-part added to my new pages, and I want others to be auto-added. However, I am yet to find where this population is defined - couldn&#39;t find it in any XML file under the site definition, and the actual code that creates the webpage is in owssvr.dll, hence not managed code and not browsable with the &lt;a href=&#34;http://www.aisto.com/roeder/dotnet/&#34;&gt;Reflector&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>The Good, the Bad and the DataViewWebPart</title>
				<link>https://bits.strawjackal.org/231/</link>
				<pubDate>Sun, 01 May 2005 08:46:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/231/</guid>
				<description>&lt;p&gt;Been wrestling lately with Sharepoint&#39;s DataViewWebPart (DVWP, from now on). I&#39;m still pretty ambivalent about it.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Easy to set up  - just add a list as a web-part, open it in Frontpage, right-click and Convert to XSLT.&lt;/li&gt; &lt;li&gt;Very customizable. I like XSLT. I can tweak it any way I want, generating custom rendering for my fields that would otherwise require me to write a custom web-part or a custom FieldType, which is too much hassle.&lt;/li&gt; &lt;li&gt;Presentation only. All the data-access logic is taken care of behind the scenes, and I have all the properties of my list items as XSLT parameters to play with as I choose.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt;&lt;/p&gt;</description>
			</item>
			<item>
				<title>Quick Tip: Erasing many Portal Areas.</title>
				<link>https://bits.strawjackal.org/236/</link>
				<pubDate>Wed, 08 Dec 2004 20:32:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/236/</guid>
				<description>&lt;p&gt;Erasing a Portal Area via the interface is a bit annoying - you go to the Manage Portal Site to get the Area Tree, right-click and Delete, then you have to confirm again, wait 10-15 seconds, then press another button to get back to the tree. If you&#39;re erasing a whole bunch of areas (on a development server, for instance, when you want to start a new batch of tests), it can take quite a bit of time and patience.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Creating or customizing Field Types</title>
				<link>https://bits.strawjackal.org/237/</link>
				<pubDate>Tue, 07 Dec 2004 18:02:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/237/</guid>
				<description>&lt;p class=&#34;MsoNormal&#34; dir=&#34;ltr&#34; style=&#34;MARGIN: 0cm 0cm 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto&#34;&gt;Customizing SPS is sometimes a hassle. I&#39;m not talking about customizing graphics or Frontpaging the pages into submission - I&#39;m talking about extending the object model. Creating new templates for sites and lists, and so on. It&#39;s a hassle, which is why I&#39;m always happy when things work out the way I expect them to. :)&lt;/p&gt; &lt;p class=&#34;MsoNormal&#34; dir=&#34;ltr&#34; style=&#34;MARGIN: 0cm 0cm 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto&#34;&gt;On today&#39;s menu - adding a new Custom Field Type to the Sharepoint list repertoire.&lt;br /&gt;This came out a bit longer than I expected, but I&#39;m sure you&#39;ll pull through.&lt;/p&gt;</description>
			</item>
			<item>
				<title>SPS and Renaming AD Accounts</title>
				<link>https://bits.strawjackal.org/238/</link>
				<pubDate>Mon, 06 Dec 2004 21:50:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/238/</guid>
				<description>&lt;div&gt;&lt;font face=&#34;Arial&#34; color=&#34;#000000&#34; size=&#34;2&#34;&gt;We&#39;ve been seeing some strange behaviour after we rename a group or user in the Active Directory:&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font face=&#34;Arial&#34; size=&#34;2&#34;&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font face=&#34;Arial&#34; size=&#34;2&#34;&gt;When we go to the Site Settings to define site-wide permissions, the old username is still displayed. If we remove it and then add it again, we see the new name in the Choose Group list - but after we add it, it&#39;s shown as the old group. Humorous, but harmless.&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font face=&#34;Arial&#34; size=&#34;2&#34;&gt;The bigger problem is when you give such a group permissions on a specific area or list. If we try to remove the old name from the permissions list, we get an ID Not Found error . When we try to add the new group to the permissions list, we get a Group Not Found error.&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font face=&#34;Arial&#34; size=&#34;2&#34;&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font face=&#34;Arial&#34; size=&#34;2&#34;&gt;All this is caused by SPS storing user data in the UserInfo table in the DB - it caches the old usernames, and for some reason uses that as the key when trying to add/remove groups to Areas, rather than the SID (which is also saved for every entry).&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font face=&#34;Arial&#34; size=&#34;2&#34;&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font face=&#34;Arial&#34; size=&#34;2&#34;&gt;The solution we found for this was to manually change the UserInfo entry, or better yet - erase it and let SPS recreate it when we add the group again. Naturally, it&#39;s not something we want to be doing in a production DB. Another minus is that the ACLs for various areas and lists point to the UserInfo row, not directly to the AD. This is a good thing generally, but means that once we erase the old entry, it&#39;s erased from all ACLs - we have to go and give that group/user permissions again. If this is a working server, we probably don&#39;t want to do that, and we&#39;ll just change the tp_Login field - leaving room for typos and human error. &lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font face=&#34;Arial&#34; size=&#34;2&#34;&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font face=&#34;Arial&#34; size=&#34;2&#34;&gt;Anyone know why SPS doesn&#39;t re-cache the Username from the AD when it changes? It DOES keep the SID for each entry, so it does have the AD entity&#39;s unique key - it should use this, and keep the Login name purely as a cache.&lt;/font&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt;</description>
			</item>
			<item>
				<title>Web Part Versioning</title>
				<link>https://bits.strawjackal.org/239/</link>
				<pubDate>Sat, 04 Dec 2004 09:35:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/239/</guid>
				<description>&lt;p&gt;If you have a web-part on your development machine that occasionaly decides to die - give you Not Marked As Safe errors even though it is, and requires removal and readding for it to work (with no other steps necessary), you may have a version mismatch.&lt;/p&gt; &lt;p&gt;Even if you register your web-part in the SafeControl section without any version information and without strong-naming it, somewhere along the way the version number DOES matter. &lt;br /&gt;Projects created from the Web Part Library template have the version number in the AssemblyInfo.cs file automatically set to a static 1.0.0.0, but if you have an assembly that was made using the Class Library template, it will be auto-set to 1.0.*, causing builds to generate different, psuedo-random build numbers, causing your Web Part to break.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Some thoughts on SPS Content Indexing [3/3]</title>
				<link>https://bits.strawjackal.org/240/</link>
				<pubDate>Mon, 29 Nov 2004 19:55:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/240/</guid>
				<description>&lt;p&gt;...and just one more.&lt;/p&gt; &lt;p&gt;Various indexing problems I&#39;ve encountered.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&#34;Cannot create the file because it already exists - 0x800700B7&#34;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;This error was reported in the gatherer log for my Portal_Content index. It occured several times - once for each Portal Area I had that was derived from a certain Site Definition I had customized. No content in these areas was indexed. This had me stumped for a while, since I couldn&#39;t understand what file the message referred to.&lt;br /&gt;The problem, it turned out, was in the Site Definition&#39;s XML files.&lt;br /&gt;The sitedef contained a custom list definition, which contained its own SCHEMA.XML file with the list&#39;s configuration. When customizing this file, I accidently left the &#34;DefaultView=TRUE&#34; attribute set for two different Views of the list. This apparently caused SPS to choke when trying to index sites based on the definition and leave them unindexed.&lt;br /&gt;A good way to tell if this has happened (and which should have alerted me sooner) was that when viewing the list of Lists in an area, instances of that custom list were shown twice - with links leading to both default views.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Some thoughts on SPS Content Indexing [2/3]</title>
				<link>https://bits.strawjackal.org/241/</link>
				<pubDate>Mon, 29 Nov 2004 19:41:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/241/</guid>
				<description>&lt;p&gt;..and we&#39;re back.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Enabling multiple Site Directories&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;By default, a Sharepoint installation comes with a Site Directory where WSS sites are listed and found. Each Site Directory holds a custom list called Sites which contains metadata about the site - Owner, Division and Region are among the default properties. We will often wish to add custom fields to the site metadata (which is easy, same as any WSS list), but sometimes we will wish to have differents sets of metadata - internal company sites might have a Department or TargetAudience property, while external sites have a Rating property. Maybe we just want to have logical, visual seperation of the two types of site. Whatever.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Some thoughts on SPS Content Indexing [1/3]</title>
				<link>https://bits.strawjackal.org/242/</link>
				<pubDate>Mon, 29 Nov 2004 19:29:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/242/</guid>
				<description>&lt;p align=&#34;left&#34;&gt;&lt;em&gt;[Warning: I only have Hebrew SPS installations around, so if I make some mistakes when translating the menu options, try to guess what I meant :]&lt;/em&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt; &lt;div align=&#34;left&#34;&gt;Advanced Search Mode&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p align=&#34;left&#34;&gt;Most of the features mentioned require Sharepoint to be in Advanced Search mode - this is enabled in the Site Settings -&gt; Search Settings page.&lt;br /&gt;SPS will ominously warn about the change being irreversible, but it is harmless - simply adds some more complexity to the Search administration screens.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Object Model Security</title>
				<link>https://bits.strawjackal.org/244/</link>
				<pubDate>Sat, 23 Oct 2004 23:09:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/244/</guid>
				<description>&lt;p&gt;In a comment to my post &lt;A href=&#34;http://weblogs.asp.net/avnerk/archive/2004/09/22/232940.aspx&#34;&gt;here&lt;/a&gt;, Jim asked why he can&#39;t access the WSS object model in his code, even though it&#39;s running under the Sharepoint context. Since a month has passed and I can&#39;t re-enable comments on that post, I&#39;ll just answer here:&lt;/p&gt; &lt;p&gt;By default, the security settings for a Sharepoint site is set to WS_Minimal - a predefined set of security policies that can be found in C:Program FilesCommon FilesMicrosoft Sharedweb server extensions60CONFIGwss_minimaltrust.config. You can change this to WSS_Medium to get a slightly higher security policy (that allows Object Model access, for one thing) or create your own set of security policies for exact customization. Check out the web.config settings in the SPS root directory to see how to define another ruleset, and use the existing .config files as a base.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Binding to Sharepoint List Items (Part 2 of 2)</title>
				<link>https://bits.strawjackal.org/246/</link>
				<pubDate>Wed, 22 Sep 2004 18:00:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/246/</guid>
				<description>&lt;p&gt;In the&lt;A href=&#34;http://weblogs.asp.net/avnerk/archive/2004/09/22/232940.aspx&#34;&gt; first part &lt;/a&gt;of the post we went over binding an SPListItemCollection to a DataGrid for quick&#39;n&#39;dirty binding of Sharepoint list data. The problem with this approach is that extensibility is a problem. To paraphrase the specific request I got: &#34;Remember that webpart where you put the List items in a grid? Now I want you to have the grid show the items from two other sites too&#34;.&lt;/p&gt; &lt;p&gt;In our first approach, we would be somewhat screwed - the SPListItemCollection represents items in a single list, and I can&#39;t merge several of those to one object. I would have to start writing code to take the data out of my SPListItems and putting them into DataRows and do a lot of dirty work - but luckily Sharepoint does that dirty work for us already:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Binding to Sharepoint List Items (Part 1 of 2)</title>
				<link>https://bits.strawjackal.org/247/</link>
				<pubDate>Wed, 22 Sep 2004 17:42:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/247/</guid>
				<description>&lt;p&gt;Databinding is cool. It lets us connect our front-end GUI elements (say, a DataGrid) to our back-end data elements (a DataSet, for instance) without the drudgery of synchronizing the two all the time. True, ASP.NET Datagrids are one-directional, but it&#39;s still cool.&lt;/p&gt; &lt;p&gt;The nice thing about databinding is that it can be done with custom objects, not only DataSets and such. Specifically, a DataSet&#39;s DataSource can be any object that implements ICollection. Let&#39;s see two ways to use this to bind a datagrid to a group of SPListItems:&lt;/p&gt;</description>
			</item>
			<item>
				<title>How to get the current SPS Area in a Web-Part</title>
				<link>https://bits.strawjackal.org/249/</link>
				<pubDate>Mon, 13 Sep 2004 21:49:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/249/</guid>
				<description>&lt;p&gt;When we write a WebPart or WebControl that resides in a SPS Area, we will want to know at runtime which area we reside in.&lt;br /&gt;This, surprisingly enough, is not trivial. It&#39;s not even easy. In fact, it&#39;s downright obscure&lt;/p&gt; &lt;p&gt;You can easily get the current SPWeb you&#39;re in using the SPControl object, but while the Area class can expose the underlying SPWeb, an SPWeb can&#39;t give you the equivalent Area - which makes sense, since SPS&#39;s Areas are built on top of WSS&#39;s SPWebs.&lt;/p&gt;</description>
			</item>
			<item>
				<title>PortalRight - all wrong.</title>
				<link>https://bits.strawjackal.org/251/</link>
				<pubDate>Mon, 23 Aug 2004 21:01:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/251/</guid>
				<description>&lt;p&gt;A followup to &lt;A href=&#34;http://weblogs.asp.net/avnerk/archive/2004/08/19/217174.aspx&#34;&gt;this post&lt;/a&gt;:&lt;/p&gt; &lt;p&gt;The PortalRight enumeration defined in Microsoft.Sharepoint.Portal.Security is, for some reason, derived from UInt32 rather than Int32. You can see this in the Object Browser when in a VB.NET project. &lt;br /&gt;This anomaly - nothing more than a raised eyebrow in a C# project - seems to be crippling in a VB.NET project.&lt;br /&gt;Whenever I try to use this enum in code, the compiler claims that it can&#39;t cast from Integer to PortalRight - even I always use the enum:&lt;/p&gt;</description>
			</item>
			<item>
				<title>SPS Area Templates</title>
				<link>https://bits.strawjackal.org/252/</link>
				<pubDate>Thu, 19 Aug 2004 16:56:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/252/</guid>
				<description>&lt;p&gt;And, to close of the day&#39;s rants - an instructive post.&lt;/p&gt; &lt;p&gt;Today: How to create a template of a Sharepoint Area that can be moved or taken to different servers.&lt;/p&gt; &lt;p&gt;Unfortunately, SPS Areas can&#39;t be bundled into STP templates like WSS sites or lists, and there&#39;s no built-in method of exporting an area into a convenient format so out Frontpage customizations and painstakingly defined layout can be copied to a different site.&lt;/p&gt;</description>
			</item>
			<item>
				<title>LoadControl and HTML Comments</title>
				<link>https://bits.strawjackal.org/253/</link>
				<pubDate>Thu, 19 Aug 2004 16:45:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/253/</guid>
				<description>&lt;p&gt;Developin webparts with many UI elements can be a hassle - which is why I&#39;m fond of the UserControl shortcut - I build my web UI as a WebUserControl, then simply have my webpart call Page.LoadControl to dynamically load that usercontrol.&lt;/p&gt; &lt;p&gt;A problem I&#39;ve encountered with it today is that LoadControl, strangly enough, ignores HTML comment in the ASCX file.&lt;/p&gt; &lt;p&gt;Let&#39;s say I have the following code in the ASCX:&lt;/p&gt;</description>
			</item>
			<item>
				<title>To CLS or not to CLS.</title>
				<link>https://bits.strawjackal.org/254/</link>
				<pubDate>Thu, 19 Aug 2004 16:40:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/254/</guid>
				<description>&lt;p&gt;For some reason, Sharepoint&#39;s object &lt;font face=&#34;&#34;&gt;model doesnt adher to Microsoft&#39;s recommended practices - namely, trying to keep your external interfaces CLS-compliant. &lt;/font&gt;&lt;/p&gt; &lt;p&gt;It seems the object model itself exposes several methods and properties that use the UInt32 data-type, even if the &lt;a href=&#34;http://msdn.microsoft.com/library/en-us/spptsdk/html/pAreaCollectionCount.asp&#34;&gt;SDK &lt;/a&gt;claims otherwise.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Be Vewy Vewy Caweful - We&#39;we Instawwing Shawepoint!</title>
				<link>https://bits.strawjackal.org/255/</link>
				<pubDate>Sun, 15 Aug 2004 22:28:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/255/</guid>
				<description>&lt;p&gt;Sharepoint 2003&#39;s installation process is one of the most delicate and uncooperative I&#39;ve seen in while. Quite a surprise in this day and age - responsive, coherent installations is something we&#39;ve grown to expect from Microsoft&#39;s server systems in recent versions - or maybe it&#39;s just me. :)&lt;/p&gt; &lt;p&gt;Sharepoint&#39;s installation can be baffled by any number of reasons - lack of harddisk space on drive C:, remains of previous installations, even something as simple as a wrong password entered for the applicative user to run the services. All of these errors share one thing between them - the installer won&#39;t pop up a messagebox to let you know what happened. It won&#39;t even give you an error warning and let you try again (to a different path perhaps, or to retype the username). It will simply continue on UNINSTALLING SPS (and WSS, if it was part of the process) and direct you to a folder full of log files out of which you&#39;re suppose to dig the actual reason for the failure and presumably try again - yes, a 10-minute process just to find out I forgot to put the domain name before the username for the service account.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Lookup Hijinx</title>
				<link>https://bits.strawjackal.org/256/</link>
				<pubDate>Tue, 27 Jul 2004 18:59:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/256/</guid>
				<description>&lt;P class=MsoNormal dir=ltr style=&#34;MARGIN: 0cm 0cm 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left&#34;&gt;Here&#39;s something that mired me down for several hours, so may it be Googled and seen and used by Sharepoint developers:&lt;/P&gt;&#xD;&#xA;&lt;P class=MsoNormal dir=ltr style=&#34;MARGIN: 0cm 0cm 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left&#34;&gt;&lt;?xml:namespace prefix = o ns = &#34;urn:schemas-microsoft-com:office:office&#34; /&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/P&gt;&#xD;&#xA;&lt;P class=MsoNormal dir=ltr style=&#34;MARGIN: 0cm 0cm 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left&#34;&gt;We&#39;re developing a solution right now based on SPS and WSS sites, under several different Site Collections, that involves copying files between sites.&lt;/P&gt;&#xD;&#xA;&lt;P class=MsoNormal dir=ltr style=&#34;MARGIN: 0cm 0cm 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left&#34;&gt;The copying itself is done the same as the MSDN samples show - adding the byte stream to the FileCollection of the destination library - but since we&#39;re just passing the bits, the file&#39;s metadata isn&#39;t automatically copied from one List to the other.&lt;/P&gt;&#xD;&#xA;&lt;P class=MsoNormal dir=ltr style=&#34;MARGIN: 0cm 0cm 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left&#34;&gt;If we&#39;re copying Office documents, we have automatic demotion and promotion of metadata properties from the Sharepoint List into the document, which then goes back into the new list. But if we&#39;re copying non-Office documents, the metadata is simply lost.&lt;/P&gt;&#xD;&#xA;&lt;P class=MsoNormal dir=ltr style=&#34;MARGIN: 0cm 0cm 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left&#34;&gt;This was bypassed with a simple function after copying that also synchronizes the metadata - but that&#39;s where I ran into a strange anomaly having to do with SPFieldLookups - fields that derive their list of possible values from a list in the site.&lt;/P&gt;&#xD;&#xA;&lt;P class=MsoNormal dir=ltr style=&#34;MARGIN: 0cm 0cm 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left&#34;&gt;The format that is saved in the metadata for these kind of fields contains both the identifier of the item in the lookup-list, and the actual string to be displayed, in this format:&lt;/P&gt;&#xD;&#xA;&lt;P class=MsoNormal dir=ltr style=&#34;MARGIN: 0cm 0cm 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left&#34;&gt;“1;#myValue” - with myValue being shown in the list.&lt;/P&gt;&#xD;&#xA;&lt;P class=MsoNormal dir=ltr style=&#34;MARGIN: 0cm 0cm 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left&#34;&gt;Now I want to copy this string from one SPListItem to another - but keep getting strange SPExceptions saying that the data is in an invalid format and suggesting that it is, perhaps, read-only. Preposterous, of course.&lt;/P&gt;&#xD;&#xA;&lt;P class=MsoNormal dir=ltr style=&#34;MARGIN: 0cm 0cm 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left&#34;&gt; &lt;/P&gt;&#xD;&#xA;&lt;P class=MsoNormal dir=ltr style=&#34;MARGIN: 0cm 0cm 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left&#34;&gt;More digging and hacking showed that in order to copy the value, we only have to copy the number, not the value.&lt;/P&gt;&#xD;&#xA;&lt;P class=MsoNormal dir=ltr style=&#34;MARGIN: 0cm 0cm 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left&#34;&gt;It DOES make sense, now that I understand it - I only want to pass the ID, after all, not the whole string value - that&#39;s why it&#39;s a lookup field. I assume that it&#39;s stored inside the list for caching, so we won&#39;t have to go to the lookup list every time, but still - an explanation, a sample or a meaningful error message would have been appreciated.&lt;/P&gt;&#xD;&#xA;&lt;P class=MsoNormal dir=ltr style=&#34;MARGIN: 0cm 0cm 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left&#34;&gt; &lt;/P&gt;</description>
			</item>
			<item>
				<title>Ghost Files</title>
				<link>https://bits.strawjackal.org/264/</link>
				<pubDate>Wed, 09 Jun 2004 22:31:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/264/</guid>
				<description>&lt;FONT size=2&gt;&#xD;&#xA;&lt;P&gt;For some obscure reason, Windows Sharepoint Services allows me to fetch a non-existent file.&lt;/P&gt;&#xD;&#xA;&lt;P&gt;Consider this code:&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face=&#34;Courier New&#34; size=2&gt;SPSite site = new SPSite(&lt;I&gt;site_url)&lt;/I&gt;;&lt;BR&gt;SPFile file = site.RootWeb.GetFile(&lt;I&gt;file_url)&lt;/I&gt;;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&#xD;&#xA;&lt;P&gt;This code will return an SPFile object regardless of whether &lt;I&gt;file_url &lt;/I&gt;points to an existing file or not. &lt;BR&gt;To find out if the file exists, you need to call the file.Exists() method.&lt;BR&gt;Even if we ignore the fact that it&#39;s against the common practice of throwing exceptions for these situations, it still behaves oddly.&lt;/P&gt;&#xD;&#xA;&lt;P&gt;You would expect that the properties for a non-existent file would be null, or at least throw exceptions - and indeed, most of them do throw (more on that later), but some of them DON&#39;T - properties like the Name and URL of the file return values that are derived from the original URL I passed it, even though they do not, in fact, point to an existing file. &lt;/P&gt;&#xD;&#xA;&lt;P&gt;And the other properties DO throw, but they either throw a System.ArgumentOutOfRangeException, which makes absolutely no sense, or else a SPException specifying that the document library doesn&#39;t exist. The same property can throw a different one of the above exceptions, depending on whether the URL we gave it points to a non-existing file in an existing doc library, or to a doc library that doesn&#39;t exist at all.&lt;/P&gt;&#xD;&#xA;&lt;P&gt;It&#39;s a mess, I tell you - a mess.&lt;/P&gt;&lt;/FONT&gt;</description>
			</item>
	</channel>
</rss>
