<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Lars Nielsen&#039;s Discoveries</title>
	<atom:link href="http://discoverlars.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://discoverlars.wordpress.com</link>
	<description>Notes from the field of .NET and SharePoint</description>
	<lastBuildDate>Tue, 24 Jan 2012 20:55:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='discoverlars.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Lars Nielsen&#039;s Discoveries</title>
		<link>http://discoverlars.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://discoverlars.wordpress.com/osd.xml" title="Lars Nielsen&#039;s Discoveries" />
	<atom:link rel='hub' href='http://discoverlars.wordpress.com/?pushpress=hub'/>
		<item>
		<title>ArgumentException &#8220;Value does not fall within the expected range&#8221; error using fields on SPListItem</title>
		<link>http://discoverlars.wordpress.com/2012/01/24/argumentexception-value-does-not-fall-within-the-expected-range-error-using-fields-on-splistitem/</link>
		<comments>http://discoverlars.wordpress.com/2012/01/24/argumentexception-value-does-not-fall-within-the-expected-range-error-using-fields-on-splistitem/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 19:56:21 +0000</pubDate>
		<dc:creator>Lars Nielsen</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[SPList]]></category>

		<guid isPermaLink="false">http://discoverlars.wordpress.com/?p=861</guid>
		<description><![CDATA[When you see ArgumentException "Value does not fall within the expected range errors trying to access the fields in an SPListItem, the cause might be a problem with a list query<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=861&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a pointer that might save a few minutes (or hours!) of frustration if you hit the same problem as me.  I was trying to extract the column (field) values from an SPListItem.  Easy enough, you just use code like this:</p>
<p><pre class="brush: csharp; gutter: false;">

public void ProcessItem(SPListItem item)
{
    string name = item.Name;
    string title = item.Title;
    int id = item.ID;
    // Do something else here
}

</pre></p>
<p>OK so far so good. I had this code within my project and ran it. As soon as it got the line where it assigns the <strong>name </strong>variable it threw an exception:</p>
<blockquote><p>System.ArgumentException: Value does not fall within the expected range</p></blockquote>
<p>I put a breakpoint in the function and ran it with the VS debugger attached to the W3WP process to hit the breakpoint.  I began to check the <strong>item</strong> object in Visual Studio, and tried out a few expressions:</p>
<ul>
<li><strong>item.Name</strong> and <strong>item.Title </strong>both threw the exception</li>
<li><strong>item["Name"]</strong> and <strong>item["Title"]</strong> both threw the exception as well</li>
<li><strong>item.ID</strong> and <strong>item["ID"]</strong> returned the correct values</li>
<li><strong>item.Fields.ContainsField(&#8220;Name&#8221;), item.Fields.ContainsField(&#8220;Title&#8221;)</strong> and <strong>item.Fields.ContainsField(&#8220;ID&#8221;) </strong>returned <strong>true</strong></li>
</ul>
<div>How weird.  The ID column was behaving like I expected, but Title and Name were not.  All three  fields were in the <strong>Fields </strong>property on the item, but I couldn&#8217;t extract their column values without getting the ArgumentException.  It took a while and a fair bit of chasing around on forums to figure this out.  What was happening is that my <strong>SPListItem</strong> objects were coming out of the results of a query in SharePoint, using an <strong>SPQuery</strong> object.  It turns out that this is the behaviour you see if you forget to include the columns that you want in the <strong>ViewFields</strong> property of SPQuery.  This property should have a list of <strong>FieldRef</strong> XML elements so I had to add elements like this:</div>
<blockquote>
<div>&lt;FieldRef Name=&#8217;Name&#8217;&gt;&lt;FieldRef Name=&#8217;Title&#8217;&gt;</div>
</blockquote>
<div>Check the <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spquery.viewfields.aspx">MSDN documentation</a> for more information about using SPQuery and ViewFields.</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/discoverlars.wordpress.com/861/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/discoverlars.wordpress.com/861/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/discoverlars.wordpress.com/861/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/discoverlars.wordpress.com/861/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/discoverlars.wordpress.com/861/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/discoverlars.wordpress.com/861/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/discoverlars.wordpress.com/861/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/discoverlars.wordpress.com/861/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/discoverlars.wordpress.com/861/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/discoverlars.wordpress.com/861/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/discoverlars.wordpress.com/861/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/discoverlars.wordpress.com/861/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/discoverlars.wordpress.com/861/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/discoverlars.wordpress.com/861/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=861&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://discoverlars.wordpress.com/2012/01/24/argumentexception-value-does-not-fall-within-the-expected-range-error-using-fields-on-splistitem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>52.453480 -2.157326</georss:point>
		<geo:lat>52.453480</geo:lat>
		<geo:long>-2.157326</geo:long>
		<media:content url="" medium="image">
			<media:title type="html">discoverlars</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Transaction Logs filling up</title>
		<link>http://discoverlars.wordpress.com/2011/09/17/sql-transaction-logs-filling-up/</link>
		<comments>http://discoverlars.wordpress.com/2011/09/17/sql-transaction-logs-filling-up/#comments</comments>
		<pubDate>Sat, 17 Sep 2011 19:31:45 +0000</pubDate>
		<dc:creator>Lars Nielsen</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://discoverlars.wordpress.com/?p=846</guid>
		<description><![CDATA[When it's impossible to update documents on a site and you see errors "Unable to complete this operation" or "Exception from HRESULT: 0x80040E14"<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=846&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This issue started with someone telling me that they couldn&#8217;t update a document in their team site &#8211; they got an error saying that they might be a problem with the library or the server might be busy.</p>
<p>I then tried uploading a file to the document library and got an error:</p>
<blockquote><p>Unable to complete this operation. Please contact your administrator. at Microsoft.SharePoint.Library.SPRequestInternalClass.PutFile(String bstrUrl, String bstrWebRelativeUrl, Object varFile, PutFileOpt PutFileOpt, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String bstrCheckinComment, UInt32&amp; pdwVirusCheckStatus, String&amp; pVirusCheckMessage) at Microsoft.SharePoint.Library.SPRequest.PutFile(String bstrUrl, String bstrWebRelativeUrl</p></blockquote>
<p>I then tried updating a list item on the site and got an error:</p>
<blockquote><p>Exception from HRESULT: 0x80040E14</p></blockquote>
<p>This was happening not just on this site but on all the parent sites as well, right up to the root of the site collection. Basically it was impossible to do updates on the site collection. I found this page http://fnoja.blogspot.com/2007/12/exception-from-hresult-0x80040e14.html and found plenty of errors in the SQL Server Database server. There was a low space warning on the drive related to transaction logs, and errors in the event log related to the SQL Transaction logs being full. Indeed the LDF files for the content databases were huge because they weren&#8217;t being cleared out properly during the backup.  Shrinking down the log files solved the problem. The best way to do this is to is to use DBCC in Server Management Studio &#8211; remember to back up the log file first See http://support.microsoft.com/kb/907511. Note that you should not use AutoShrink with SharePoint databases. The moral is: always keep an wary eye on your SharePoint database server&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/discoverlars.wordpress.com/846/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/discoverlars.wordpress.com/846/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/discoverlars.wordpress.com/846/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/discoverlars.wordpress.com/846/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/discoverlars.wordpress.com/846/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/discoverlars.wordpress.com/846/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/discoverlars.wordpress.com/846/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/discoverlars.wordpress.com/846/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/discoverlars.wordpress.com/846/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/discoverlars.wordpress.com/846/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/discoverlars.wordpress.com/846/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/discoverlars.wordpress.com/846/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/discoverlars.wordpress.com/846/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/discoverlars.wordpress.com/846/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=846&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://discoverlars.wordpress.com/2011/09/17/sql-transaction-logs-filling-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>52.453480 -2.157326</georss:point>
		<geo:lat>52.453480</geo:lat>
		<geo:long>-2.157326</geo:long>
		<media:content url="" medium="image">
			<media:title type="html">discoverlars</media:title>
		</media:content>
	</item>
		<item>
		<title>Remove a lock on a file without rebooting</title>
		<link>http://discoverlars.wordpress.com/2011/09/02/remove-a-lock-on-a-file-without-rebooting/</link>
		<comments>http://discoverlars.wordpress.com/2011/09/02/remove-a-lock-on-a-file-without-rebooting/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 18:51:51 +0000</pubDate>
		<dc:creator>Lars Nielsen</dc:creator>
				<category><![CDATA[Application]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Processes]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://discoverlars.wordpress.com/?p=840</guid>
		<description><![CDATA[How to delete a locked file without rebooting<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=840&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I often used the superb range of tools from <a href="http://www.sysinternals.com/">SysInternals</a> created by <a href="http://blogs.technet.com/b/markrussinovich/">Mark Russinovich</a>.  I first heard about Mark when he exposed the <a href="http://en.wikipedia.org/wiki/Sony_BMG_copy_protection_rootkit_scandal">Sony Rootkit copy-protection scandal</a>.  It&#8217;s perhaps ironic that Sony, a company that once attempted to infect everyone&#8217;s PC with a rootkit to prevent them copying CD&#8217;s, should now be the subject of <a href="http://arstechnica.com/tech-policy/news/2011/06/sony-hacked-yet-again-plaintext-passwords-posted.ars">almost weekly security breaches of its own</a>.</p>
<p>Anyway, one of the SysInternals tools I use most is <a href="http://technet.microsoft.com/en-us/sysinternals/bb896653">Process Explorer</a>.  This tool is a great way to see what&#8217;s going on with the RAM in your system and which processes are most resource-heavy.  One handly use for Process Explorer is when you have a file that&#8217;s locked for some reason and you can&#8217;t delete or move it.  This can happen, for example, with text files that are not closed properly by an application, or a DLL that&#8217;s locked by a service process.  Using Process Explorer, you can search for a file by filename, and it will find all the processes that have a handle onto that file.  If the process is a service, then restarting the service will probably release the lock.  If it&#8217;s another process, you might need to kill it to release the lock.  After that you should be able delete, move, or rename  the file in question.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/discoverlars.wordpress.com/840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/discoverlars.wordpress.com/840/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/discoverlars.wordpress.com/840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/discoverlars.wordpress.com/840/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/discoverlars.wordpress.com/840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/discoverlars.wordpress.com/840/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/discoverlars.wordpress.com/840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/discoverlars.wordpress.com/840/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/discoverlars.wordpress.com/840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/discoverlars.wordpress.com/840/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/discoverlars.wordpress.com/840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/discoverlars.wordpress.com/840/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/discoverlars.wordpress.com/840/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/discoverlars.wordpress.com/840/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=840&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://discoverlars.wordpress.com/2011/09/02/remove-a-lock-on-a-file-without-rebooting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>52.453480 -2.157326</georss:point>
		<geo:lat>52.453480</geo:lat>
		<geo:long>-2.157326</geo:long>
		<media:content url="" medium="image">
			<media:title type="html">discoverlars</media:title>
		</media:content>
	</item>
		<item>
		<title>Showing recent updates with the Lightning Conductor web part</title>
		<link>http://discoverlars.wordpress.com/2011/07/26/showing-recent-updates-with-the-lightning-conductor-web-part/</link>
		<comments>http://discoverlars.wordpress.com/2011/07/26/showing-recent-updates-with-the-lightning-conductor-web-part/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 22:07:53 +0000</pubDate>
		<dc:creator>Lars Nielsen</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://discoverlars.wordpress.com/?p=797</guid>
		<description><![CDATA[I love using the Lightning Conductor web part.  It&#8217;s so flexible and easy to use that it can often replace a data view web part with something easier to configure and that end users can understand.  Does anyone really believe that the Data View Web Part and SharePoint Designer are end user tools?  They&#8217;re for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=797&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I love using the<a href="http://www.lightningtools.com/pages/lightning-conductor-web-part.aspx"> Lightning Conductor web part</a>.  It&#8217;s so flexible and easy to use that it can often replace a data view web part with something easier to configure and that end users can understand.  Does anyone really believe that the Data View Web Part and SharePoint Designer are end user tools?  They&#8217;re for developers only in my organisation.  But the Lightning Conductor Web Part is easy enough to understand so end users who understand SharePoint lists, libraries and columns, as well as filtering and sorting, can figure it out.</p>
<p>I recently wanted to configure a LCWP to show the 10 most recently updated documents in a site, across multiple document libraries.  It&#8217;s easy enough to configure it to pull data from multiple document libraries.  At first I tried setting the Item Limit in the web part properties pane to be 10, and then sorting the results by Modified date order.  But this failed to pull back some of the more recent documents.</p>
<p>Then I realised this was because the web part was running a query on the site first, but limited to 10 items, and then sorting those 10 results.  I wanted to query all the documents, then sort them and <strong>then</strong> pick the top 10.  To do this, you leave the Item Limit blank but instead set the Page Size property to be 10 in the web part properties, and uncheck the &#8220;Show Page buttons&#8221; box.  It&#8217;s probably a good idea also to filter the query as well, for example only select documents updated in the last week.  You can do this by setting a condition &#8220;greater than or equal&#8221; and use the Days Offset setting and set it to Today-7 days.  Otherwise the web part would need to deal with a potentially large result set (and the corresponding SQL traffic in querying across multiple lists) and you may get slow performance as the number of documents in the site grows.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/discoverlars.wordpress.com/797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/discoverlars.wordpress.com/797/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/discoverlars.wordpress.com/797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/discoverlars.wordpress.com/797/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/discoverlars.wordpress.com/797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/discoverlars.wordpress.com/797/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/discoverlars.wordpress.com/797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/discoverlars.wordpress.com/797/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/discoverlars.wordpress.com/797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/discoverlars.wordpress.com/797/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/discoverlars.wordpress.com/797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/discoverlars.wordpress.com/797/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/discoverlars.wordpress.com/797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/discoverlars.wordpress.com/797/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=797&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://discoverlars.wordpress.com/2011/07/26/showing-recent-updates-with-the-lightning-conductor-web-part/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>52.453480 -2.157326</georss:point>
		<geo:lat>52.453480</geo:lat>
		<geo:long>-2.157326</geo:long>
		<media:content url="" medium="image">
			<media:title type="html">discoverlars</media:title>
		</media:content>
	</item>
		<item>
		<title>Send E-mail to a SharePoint group in SharePoint Designer Workflow</title>
		<link>http://discoverlars.wordpress.com/2011/07/07/send-e-mail-to-a-sharepoint-group-in-sharepoint-designer-workflow/</link>
		<comments>http://discoverlars.wordpress.com/2011/07/07/send-e-mail-to-a-sharepoint-group-in-sharepoint-designer-workflow/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 21:00:41 +0000</pubDate>
		<dc:creator>Lars Nielsen</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[SharePoint Designer]]></category>
		<category><![CDATA[Workflow]]></category>

		<guid isPermaLink="false">http://discoverlars.wordpress.com/?p=800</guid>
		<description><![CDATA[What to do if SharePoint Designer workflow won't send e-mail to a SharePoint group<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=800&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;">When creating a workflow in SharePoint Designer, of course you can use the <a href="http://office.microsoft.com/en-us/sharepoint-designer-help/send-e-mail-in-a-workflow-HA010239042.aspx">send e-mail activity</a> to <a href="http://office.microsoft.com/en-us/sharepoint-designer-help/workflow-example-send-a-notification-message-HA010182908.aspx">send e-mail notifications to people during the workflow</a>.  The dialog box for the send e-mail activity allows you to choose the recipient of the e-mail. You can either choose individual addresses from the address book, use one of the columns on the workflow item, or choose one of the SharePoint groups associated with the site.</p>
<p style="text-align:left;">I wanted to use this latter option (mailing a SharePoint group) to notify people when an item in a list had been flagged for deletion.  So I set up a special  group on the site called <strong>&#8220;Deleted Item Notification&#8221;</strong>, for people who would get that e-mail.   In my workflow, I set the e-mail activity to send mail to the group  <strong>Deleted Item Notification</strong>.  I put myself into the  Deleted Item Notification group to test the workflow, flagged an item for deletion and fired off the workflow.  Then I waited for my notification e-mail to arrive.  I waited and waited and.. nothing happened.   I checked the workflow history and it had errored out trying to send the e-mail.</p>
<p style="text-align:left;">I changed the workflow to e-mail my account directly and it worked fine.  So the problem was sending mail to a group.  It took a while to find a solution to this &#8211; the clue was in <a href="http://www.mstechblogs.com/sharepoint/sharepoint-designer-workflow-does-not-send-email-to-groups/">this post</a>.</p>
<p style="text-align:left;">I had to change the group settings for the <strong>Deleted Item Notification </strong>group to allow everyone to see the membership of the group.  I also had to grant that group read access onto the site that was hosting the workflow &#8211; I think it would also have worked if I just allowed it to read the list to which my workflow was attached.  After those changes, the workflow sent e-mail correctly.</p>
<p style="text-align:left;">
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/discoverlars.wordpress.com/800/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/discoverlars.wordpress.com/800/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/discoverlars.wordpress.com/800/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/discoverlars.wordpress.com/800/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/discoverlars.wordpress.com/800/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/discoverlars.wordpress.com/800/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/discoverlars.wordpress.com/800/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/discoverlars.wordpress.com/800/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/discoverlars.wordpress.com/800/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/discoverlars.wordpress.com/800/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/discoverlars.wordpress.com/800/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/discoverlars.wordpress.com/800/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/discoverlars.wordpress.com/800/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/discoverlars.wordpress.com/800/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=800&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://discoverlars.wordpress.com/2011/07/07/send-e-mail-to-a-sharepoint-group-in-sharepoint-designer-workflow/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<georss:point>52.453480 -2.157326</georss:point>
		<geo:lat>52.453480</geo:lat>
		<geo:long>-2.157326</geo:long>
		<media:content url="" medium="image">
			<media:title type="html">discoverlars</media:title>
		</media:content>
	</item>
		<item>
		<title>Workflow fails to compile: Resource identifier has already been used in this assembly</title>
		<link>http://discoverlars.wordpress.com/2011/06/24/workflow-fails-to-compile-resource-identifier-has-already-been-used-in-this-assembly/</link>
		<comments>http://discoverlars.wordpress.com/2011/06/24/workflow-fails-to-compile-resource-identifier-has-already-been-used-in-this-assembly/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 21:23:43 +0000</pubDate>
		<dc:creator>Lars Nielsen</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Workflow]]></category>

		<guid isPermaLink="false">http://discoverlars.wordpress.com/?p=790</guid>
		<description><![CDATA[A fix for the problem when your workflow solution fails to build with an error Resource identifier has already been used in this assembly<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=790&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Creating a workflow using WSPBuilder I suddenly hit a problem that my solution threw an error when I tried to build it.  The error was in the CSC file (the C Sharp compiler) of the form:</p>
<blockquote><p>Resource identifier &lt;type name&gt; has already been used in this assembly</p></blockquote>
<p>The problem became more apparent looking at the line that Visual Studio used to invoke the CSC (C# compiler).  The command line (shown in the output window in Visual Studio) contained two /resource switches which had duplicate entries that referenced the class in my assembly.  The error showed up as CS1508 and <a href="http://msdn.microsoft.com/en-us/library/cwhz41kf.aspx">this MSDN article</a> has the details.  The problem happens when you use declarative conditions in the if/else condition in a workflow.</p>
<p>I finally found <a href="http://blogs.rjbtech.com/CM/archive/2010/02/23/issues-with-wspbuilder-and-a-net-3-5-state-machine-workflow-with-a-declarative-rule.aspx">this great post from Chris Mann</a> explains how to fix this.  A simple change the to .csproj file is all you need.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/discoverlars.wordpress.com/790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/discoverlars.wordpress.com/790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/discoverlars.wordpress.com/790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/discoverlars.wordpress.com/790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/discoverlars.wordpress.com/790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/discoverlars.wordpress.com/790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/discoverlars.wordpress.com/790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/discoverlars.wordpress.com/790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/discoverlars.wordpress.com/790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/discoverlars.wordpress.com/790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/discoverlars.wordpress.com/790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/discoverlars.wordpress.com/790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/discoverlars.wordpress.com/790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/discoverlars.wordpress.com/790/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=790&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://discoverlars.wordpress.com/2011/06/24/workflow-fails-to-compile-resource-identifier-has-already-been-used-in-this-assembly/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<georss:point>52.453480 -2.157326</georss:point>
		<geo:lat>52.453480</geo:lat>
		<geo:long>-2.157326</geo:long>
		<media:content url="" medium="image">
			<media:title type="html">discoverlars</media:title>
		</media:content>
	</item>
		<item>
		<title>Equal height columns using div and CSS</title>
		<link>http://discoverlars.wordpress.com/2011/05/26/equal-height-columns-using-div-and-css/</link>
		<comments>http://discoverlars.wordpress.com/2011/05/26/equal-height-columns-using-div-and-css/#comments</comments>
		<pubDate>Thu, 26 May 2011 19:59:30 +0000</pubDate>
		<dc:creator>Lars Nielsen</dc:creator>
				<category><![CDATA[Branding]]></category>
		<category><![CDATA[Good Practice]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://discoverlars.wordpress.com/?p=775</guid>
		<description><![CDATA[The easiest way I found to get a 2-column layout with equal height columns using CSS<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=775&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Finally now SharePoint is using DIV elements in the v4.master page, rather than using tables for layout as SharePoint 2007 did (and which is not xhtml compatible and has <a href="http://webdesign.about.com/od/layout/a/aa111102a.htm">a load of other problems</a> as well).</p>
<p>Using DIV&#8217;s rather than tables for layout is a great idea, but some things become more difficult to do with CSS and DIV&#8217;s. One of the more common issue is now to get a screen layout with two columns of equal height.  With tables in HTML it was easy &#8211; just create two cells in a row and they will be sized to be the same height by the browser.  DIV&#8217;s however are given a height dynamically to contain their content so it becomes quite difficult to create even a simple layout with 2 columns (DIV&#8217;s) of the same height.</p>
<p>There are plenty of possible  solutions to this, and <a href="http://buildinternet.com/2009/07/four-methods-to-create-equal-height-columns/">this post</a> lists some of them.  In my work recently I was working on some CSS that seemed to be following <span style="color:#888888;"><a href="http://matthewjamestaylor.com/blog/equal-height-columns-cross-browser-css-no-hacks">this technique</a></span>.  I guess it works, but it&#8217;s not exactly straightforward, and I was having trouble getting it stripped down to just two columns and working in a fixed width design rather than flexible width.  So in the end I found <a href="http://www.datatex.org/the-best-solution-for-css-columns-with-equal-height.html">this simpler alternative </a>and used that as the basis for my CSS.  It works fine in all the main browsers (although there is a problem with IE 6 and 7 &#8211; see below) and doesn&#8217;t involve the complexity of defining widths and relative positions in several places.  It uses a similar trick, in making the background of the whole wrapper to be whatever you want for the background of the left hand column, and the other columns sit to the right and cover the background with another background.  In this, I managed to create a layout with 2 columns of equal height with quite simple and basic CSS.</p>
<p>Here&#8217;s the code for a page to show the technique:</p>
<p><pre class="brush: xml;">

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;div test&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
div.Main {
  width:980px;
  background:red;
  color:white;
  border:none;
  margin:0 auto;
}

div.Left {
   width:165px;
   float:left;
}

div.Middle_Right {
   margin-left:165px;
   border-left:none;
}

div.Right {
   margin-left:0px;
   background:blue;
   border:none;
}

div.Clear {
   clear:both;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;Main&quot;&gt;
    &lt;!-- Left --&gt;
    &lt;div class=&quot;Left&quot;&gt;
    	&lt;div id=&quot;New div&quot;&gt;
    	Left&lt;br /&gt;Left&lt;br /&gt;Left&lt;br /&gt;Left&lt;br /&gt;Left&lt;br /&gt;Left&lt;br /&gt;Left&lt;br /&gt;Left&lt;br /&gt;
    	Left Left Left Left Left Left Left Left Left Left Left Left Left Left Left Left Left Left Left Left Left Left Left
 		&lt;/div&gt;
    &lt;/div&gt; &lt;!-- /Left --&gt;
    &lt;!-- Middle + Right --&gt;
    &lt;div class=&quot;Middle_Right&quot;&gt;
        &lt;!-- Right --&gt;
        &lt;div class=&quot;Right&quot;&gt;
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
		Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right Right
	        &lt;div class=&quot;Clear&quot;&gt;
	        &lt;/div&gt;
        &lt;/div&gt; &lt;!-- /Right --&gt;
    &lt;/div&gt; &lt;!-- /Middle + Right --&gt;
&lt;/div&gt; &lt;!-- /Main --&gt;
&lt;/body&gt;
&lt;/html&gt;

</pre></p>
<h2>Update</h2>
<p>This technique seems to cause problems with IE6 and IE7 in that the colour of the left hand DIV bleeds over into the right hand div at the bottom if the left hand div is higher than the right hand one, and you resize the browser to be less high than the DIV&#8217;s themselves. Other browsers seem to be OK. In the case of SharePoint 2010, it doesn&#8217;t officially support IE 6 anyway, and nearly everyone who uses IE 7 has upgraded to IE 8 at least, so in practice this may not be too much of a limitation.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/discoverlars.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/discoverlars.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/discoverlars.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/discoverlars.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/discoverlars.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/discoverlars.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/discoverlars.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/discoverlars.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/discoverlars.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/discoverlars.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/discoverlars.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/discoverlars.wordpress.com/775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/discoverlars.wordpress.com/775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/discoverlars.wordpress.com/775/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=775&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://discoverlars.wordpress.com/2011/05/26/equal-height-columns-using-div-and-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>52.453480 -2.157326</georss:point>
		<geo:lat>52.453480</geo:lat>
		<geo:long>-2.157326</geo:long>
		<media:content url="" medium="image">
			<media:title type="html">discoverlars</media:title>
		</media:content>
	</item>
		<item>
		<title>My Links loses the orange gradient background on hover &#8211; A CSS case-sensitivity issue</title>
		<link>http://discoverlars.wordpress.com/2011/05/06/my-links-loses-the-orange-gradient-background-on-hover-a-css-case-sensitivity-issue/</link>
		<comments>http://discoverlars.wordpress.com/2011/05/06/my-links-loses-the-orange-gradient-background-on-hover-a-css-case-sensitivity-issue/#comments</comments>
		<pubDate>Fri, 06 May 2011 19:39:55 +0000</pubDate>
		<dc:creator>Lars Nielsen</dc:creator>
				<category><![CDATA[Branding]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Master Page]]></category>

		<guid isPermaLink="false">http://discoverlars.wordpress.com/?p=754</guid>
		<description><![CDATA[With a custom master page, you might lose the orange gradient background when you hover over "My Links".<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=754&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In trying to create CSS to style a custom master page in SharePoint, I discovered a strange quirk (you&#8217;ll see the significance of that word later) in the way SharePoint out-of-the-box styles and controls work.</p>
<p>The &#8220;My Links&#8221; link at the top of the page next to the &#8220;Welcome&#8221; box is rendered by the following line in a master page:</p>
<p><pre class="brush: xml; gutter: false;">
&lt;SharePoint:DelegateControl runat=&quot;server&quot; ControlId=&quot;GlobalSiteLink2&quot; Scope=&quot;Farm&quot;/&gt;
</pre></p>
<p>If you look at the HTML that comes out on the page, it&#8217;s marked up with HTML like this:</p>
<p><pre class="brush: xml; gutter: false;">
&lt;TD class=&quot;ms-globallinks&quot;&gt;
  &lt;SPAN id=&quot;ctl00_ctl16_MyLinksMenu&quot;&gt;
    &lt;SPAN style=&quot;DISPLAY: none&quot;&gt;
      &lt;MENU id=&quot;ctl00_ctl16_MyLinksMenuMenuTemplate&quot; type=&quot;ServerMenu&quot; largeIconMode=&quot;true&quot;&gt;&lt;/MENU&gt;
    &lt;/SPAN&gt;
    &lt;SPAN title=&quot;Open Menu&quot;&gt;
        &lt;span id=&quot;ctl00_ctl16_MyLinksMenuMenu_t&quot; class=&quot;ms-SPLink ms-hovercellinactive&quot; onmouseover=&quot;MMU_PopMenuIfShowing(this);MMU_EcbTableMouseOverOut(this, true)&quot; onclick=&quot;javascript:FetchCallbackMenuItems('ctl00_ctl16_MyLinksMenuMenuTemplate'); MMU_Open(byid('ctl00_ctl16_MyLinksMenuMenuTemplate'), MMU_GetMenuFromClientId('ctl00_ctl16_MyLinksMenuMenu'),event,true, null, 0);&quot; nowrap=&quot;nowrap&quot; foa=&quot;MMU_GetMenuFromClientId('ctl00_ctl16_MyLinksMenuMenu')&quot; hoverInactive=&quot;ms-SPLink ms-hovercellinactive&quot; hoverActive=&quot;ms-SPLink ms-hovercellactive&quot;&gt;
          &lt;a style=&quot;white-space: nowrap; cursor: hand;&quot; onkeydown=&quot;MMU_EcbLinkOnKeyDown('ctl00_ctl16_MyLinksMenuMenuTemplate'), MMU_GetMenuFromClientId('ctl00_ctl16_MyLinksMenuMenu'), event);&quot; id='ctl00_ctl16_MyLinksMenuMenu' oncontextmenu=&quot;this.click(); return false;&quot; onfocus=&quot;MMU_EcbLinkOnFocusBlur(byid('ctl00_ctl16_MyLinksMenuMenuTemplate'), this, true);&quot; onclick=&quot;javascript:return false;&quot; href=&quot;#&quot; serverclientid=&quot;ctl00_ctl16_MyLinksMenuMenu&quot; menuTokenValues=&quot;MENUCLIENTID=ctl00_ctl16_MyLinksMenuMenu,TEMPLATECLIENTID=ctl00_ctl16_MyLinksMenuMenuTemplate&quot;&gt;
            My Links
            &lt;IMG border=0 alt=&quot;Use SHIFT+ENTER to open the menu (new window).&quot; src=&quot;/_layouts/images/blank.gif&quot;&gt;
          &lt;/A&gt;
          &lt;IMG alt=&quot;&quot; align=&quot;absBottom&quot; src=&quot;/_layouts/images/menudark.gif&quot;&gt;
        &lt;/SPAN&gt;
    &lt;/SPAN&gt;
  &lt;/SPAN&gt;
&lt;/TD&gt;
</pre></p>
<p>I&#8217;m sure your first thought on seeing this is: yuck! It&#8217;s the familiar wonky SharePoint HTML, but I want to point out this class assignment in the inner &lt;SPAN&gt; tag:</p>
<blockquote><p>class=&#8221;ms-SPLink ms-hovercellinactive&#8221;</p></blockquote>
<p>and this attribute:</p>
<blockquote><p>hoverActive=&#8221;ms-SPLink ms-hovercellactive&#8221;</p></blockquote>
<p>What happens here is that as the user runs the mouse over <strong>&#8220;My Links&#8221;</strong> the <strong>onmouseover</strong> attribute calls the Javascript function <strong>MMU_PopMenuIfShowing</strong>. That reads the <strong>hoverActive</strong> attribute and then dynamically changes the CSS class for the SPAN tag from <strong>&#8220;ms-SPLink ms-hovercellinactive&#8221;</strong> to <strong>&#8220;ms-SPLink ms-hovercellactive&#8221;</strong>, and that&#8217;s what creates the orange gradient background on &#8220;My Links&#8221; when you hover over it. Now if we look in the out-of-the-box core.css file, which is always on every SharePoint page, it has a CSS definitions for classes <strong>ms-hovercellinactive</strong> and <strong>ms-hovercellactive</strong> &#8211; here&#8217;s the extract from core.css:</p>
<p><pre class="brush: css; gutter: false;">
.ms-HoverCellInActive,.ms-SpLinkButtonInActive
{
border:none;
margin:1px;
color:#4c4c4c;
vertical-align:top;
background-color:transparent;
}
.ms-HoverCellActive,.ms-SpLinkButtonActive
{
border:#6f9dd9 1px solid;
vertical-align:top;
background-color:#ffbb47;
background-image:url(&quot;/_layouts/images/menubuttonhover.gif&quot;);
}
</pre></p>
<p>So core.css defines the class as <strong>&#8220;ms-HoverCellActive&#8221;</strong> but in the HTML SPAN tag the class attribute is <strong>&#8220;ms-hovercellactive&#8221;</strong>. Does it matter that they have different case? Well, yes and no. Normally the SharePoint default.master page has no <a href="http://www.w3schools.com/tags/tag_DOCTYPE.asp">DOCTYPE definition</a> at the top. This puts IE (8, not sure about 9) into Quirks Mode, and in Quirks Mode it ignores the case of CSS classes so it will render correctly. However, best practice in web design is to include a DOCTYPE and to take IE out of Quirks Mode. In my master page I&#8217;m using:</p>
<p><pre class="brush: xml; gutter: false;">
&lt;DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
</pre></p>
<p>As soon as you put a DOCTYPE at the start of the page, and take IE out of Quirks mode, it starts to treat CSS class names as case-sensitive and expects the case to match. When you hover over &#8220;My Links&#8221; you lose the orange gradient background. To fix this, you need to define CSS for <strong>ms-hovercellactive</strong> and <strong>ms-hovercellinactive</strong> explicitly, in your own custom CSS file.  You can either replicate what&#8217;s in core.css, or define your own CSS for these classes.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/discoverlars.wordpress.com/754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/discoverlars.wordpress.com/754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/discoverlars.wordpress.com/754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/discoverlars.wordpress.com/754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/discoverlars.wordpress.com/754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/discoverlars.wordpress.com/754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/discoverlars.wordpress.com/754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/discoverlars.wordpress.com/754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/discoverlars.wordpress.com/754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/discoverlars.wordpress.com/754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/discoverlars.wordpress.com/754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/discoverlars.wordpress.com/754/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/discoverlars.wordpress.com/754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/discoverlars.wordpress.com/754/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=754&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://discoverlars.wordpress.com/2011/05/06/my-links-loses-the-orange-gradient-background-on-hover-a-css-case-sensitivity-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>52.453480 -2.157326</georss:point>
		<geo:lat>52.453480</geo:lat>
		<geo:long>-2.157326</geo:long>
		<media:content url="" medium="image">
			<media:title type="html">discoverlars</media:title>
		</media:content>
	</item>
		<item>
		<title>Task form not showing in Manage Form Templates &#8211; The specified form cannot be found</title>
		<link>http://discoverlars.wordpress.com/2011/04/29/task-form-not-showing-in-manage-form-templates-the-specified-form-cannot-be-found/</link>
		<comments>http://discoverlars.wordpress.com/2011/04/29/task-form-not-showing-in-manage-form-templates-the-specified-form-cannot-be-found/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 20:14:07 +0000</pubDate>
		<dc:creator>Lars Nielsen</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Features]]></category>
		<category><![CDATA[Workflow]]></category>

		<guid isPermaLink="false">http://discoverlars.wordpress.com/?p=665</guid>
		<description><![CDATA[Tracking down why I couldn't deploy a workflow task form to edit tasks<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=665&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I hit a problem recently developing a workflow in Visual Studio for SharePoint.  I had created a custom task form in InfoPath and then I decided to change the task form a bit.  When I re-deployed the workflow I found I couldn&#8217;t get the new version of the form to pick up; each time you edited a task it used the old version.</p>
<p>I changed everything about the form &#8211; the name and the GUID and then redeployed it.  This time when I tried to edit the task I got an error:</p>
<blockquote><p>The specified form cannot be found</p></blockquote>
<p>On reading around I found I need to look in the Manage Form Templates page in Central Administration to see if my task form has been marked as Workflow enabled.   The old form was there but not the new form with its new name.</p>
<p>The solution was quite simple but took me ages to spot.  These two vital lines had been deleted from the <strong>&lt;Feature&gt;</strong> element in feature.xml for the workflow feature:</p>
<p><pre class="brush: csharp; gutter: false;">

ReceiverAssembly=&quot;Microsoft.Office.Workflow.Feature, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot;
 ReceiverClass=&quot;Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver&quot;

</pre></p>
<p>These two lines of code are the feature receiver that makes SharePoint run its own internal code to install the form.  Without them, the new task form was not being installed properly when the workflow feature was activated.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/discoverlars.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/discoverlars.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/discoverlars.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/discoverlars.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/discoverlars.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/discoverlars.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/discoverlars.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/discoverlars.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/discoverlars.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/discoverlars.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/discoverlars.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/discoverlars.wordpress.com/665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/discoverlars.wordpress.com/665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/discoverlars.wordpress.com/665/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=665&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://discoverlars.wordpress.com/2011/04/29/task-form-not-showing-in-manage-form-templates-the-specified-form-cannot-be-found/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<georss:point>52.453480 -2.157326</georss:point>
		<geo:lat>52.453480</geo:lat>
		<geo:long>-2.157326</geo:long>
		<media:content url="" medium="image">
			<media:title type="html">discoverlars</media:title>
		</media:content>
	</item>
		<item>
		<title>Crawl log errors and resolutions in Search</title>
		<link>http://discoverlars.wordpress.com/2011/04/15/crawl-log-errors-and-resolutions-in-search/</link>
		<comments>http://discoverlars.wordpress.com/2011/04/15/crawl-log-errors-and-resolutions-in-search/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 21:58:11 +0000</pubDate>
		<dc:creator>Lars Nielsen</dc:creator>
				<category><![CDATA[Search]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://discoverlars.wordpress.com/?p=726</guid>
		<description><![CDATA[Various problems and resolutions to do with search and the crawler<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=726&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was recently going through the crawl log and fixing errors &#8211; here are some of the error messages in the crawl log, and resolutions:</p>
<h3>Error in the Microsoft Windows SharePoint Services Protocol Handler</h3>
<p>This was an attempt to crawl a non-existent ASPX page.  Click on the link and you get a 404 error.  I&#8217;m not sure why it&#8217;s trying to crawl a deleted page.  Perhaps a broken link somewhere?</p>
<h3>The crawler could not communicate with the server. Check that the server is available and that the firewall access is configured correctly</h3>
<p>This was  at attempt to crawl a broken ASPX page &#8211; in this case a view of a calendar that gave a .NET error when you click on the link in the crawl log.  The resolution is to delete the ASPX view page from the list using SharePoint designer.</p>
<h3>The parameter is incorrect</h3>
<p>The crawler was trying to index a Word 2007 Template File (.dotx) instead of a regular Word .docx file.</p>
<h3>Error in the Site Data Web Service</h3>
<p>The target site was present (you can open it in SharePoint Designer) but its welcome page was pointing to a non-existent page so you could not browse to it.  Resolution is to go to the Site Settings page directly by appending &#8220;/_layouts/settings.aspx&#8221; onto the end of the site root URL, e.g. &#8220;http://mydomain/site/subsite/_layouts/settings.aspx&#8221; and click on &#8220;Welcome Page&#8221; and reset the welcome page to point to a real page so that you can browse to the site.</p>
<p>Finally, I had a problem that the crawler was crawling content OK.  I could find documents and pages by their URL in the crawl log, and the log said that they had been crawled successfully.  But when you searched for the items by keyword in the search box, no results were returned.   The problem seemed to be that the index not updating properly.  I used the <strong>Reset All Crawled Content</strong> page in Search Administration in Central Administration, followed by a full crawl, and everything was OK.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/discoverlars.wordpress.com/726/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/discoverlars.wordpress.com/726/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/discoverlars.wordpress.com/726/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/discoverlars.wordpress.com/726/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/discoverlars.wordpress.com/726/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/discoverlars.wordpress.com/726/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/discoverlars.wordpress.com/726/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/discoverlars.wordpress.com/726/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/discoverlars.wordpress.com/726/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/discoverlars.wordpress.com/726/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/discoverlars.wordpress.com/726/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/discoverlars.wordpress.com/726/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/discoverlars.wordpress.com/726/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/discoverlars.wordpress.com/726/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=discoverlars.wordpress.com&amp;blog=10585575&amp;post=726&amp;subd=discoverlars&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://discoverlars.wordpress.com/2011/04/15/crawl-log-errors-and-resolutions-in-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>52.453480 -2.157326</georss:point>
		<geo:lat>52.453480</geo:lat>
		<geo:long>-2.157326</geo:long>
		<media:content url="" medium="image">
			<media:title type="html">discoverlars</media:title>
		</media:content>
	</item>
	</channel>
</rss>
