<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1028236585843827010</id><updated>2024-11-01T02:34:39.391-04:00</updated><category term="SharePoint 2010"/><category term=".net 2.0"/><category term="Javascript"/><category term="ListView"/><category term="jquery"/><category term="xsl"/><category term=".net"/><category term="BitCoin"/><category term="Browser"/><category term="C#"/><category term="CSOM"/><category term="Content Database"/><category term="DVR HTPC TV"/><category term="Forcibly closed"/><category term="GetFiles"/><category term="MOSS upgrade SP1"/><category term="My Sites"/><category term="Nintex Forms"/><category term="Nintex Workflow"/><category term="O365"/><category term="Office 365"/><category term="On Zero Downtime Patching"/><category term="OnPrem"/><category term="PDF"/><category term="Patching"/><category term="Person Field"/><category term="Powershell"/><category term="SPServices"/><category term="SPUser"/><category term="SelectSingleNode"/><category term="Service Host"/><category term="SharePoint 2007 ActiveX Control"/><category term="SharePoint 2007 Workflow feature"/><category term="SharePoint 2010 migrate domain"/><category term="SharePoint 2013"/><category term="SharePoint 2016"/><category term="Upgrade"/><category term="VS"/><category term="Visual Studio"/><category term="WCF"/><category term="WWF"/><category term="XLVWP"/><category term="XML"/><category term="XPath"/><category term="XsltListViewWebPart"/><category term="ZDP"/><category term="attributes"/><category term="compare"/><category term="default namespace"/><category term="deploy"/><category term="email"/><category term="exception"/><category term="footnote"/><category term="function"/><category term="internal name"/><category term="multiple file extentions"/><category term="wsp"/><title type='text'>Technical Ramblings</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>31</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-1354788312138186636</id><published>2017-10-11T15:03:00.001-04:00</published><updated>2017-10-11T15:03:38.334-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="On Zero Downtime Patching"/><category scheme="http://www.blogger.com/atom/ns#" term="OnPrem"/><category scheme="http://www.blogger.com/atom/ns#" term="Patching"/><category scheme="http://www.blogger.com/atom/ns#" term="Powershell"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2016"/><category scheme="http://www.blogger.com/atom/ns#" term="Upgrade"/><category scheme="http://www.blogger.com/atom/ns#" term="ZDP"/><title type='text'>Zero Downtime Patching in SharePoint Server 2016</title><content type='html'>&lt;br /&gt;
Recently needed to do an update of eight farms for a client.&amp;nbsp; Now I can never do as thorough of a job as Microsoft and others have done describing the process so I will not even attempt it. (see also links at bottom).&lt;br /&gt;
&lt;br /&gt;
What I needed was a way to walk through the whole phase as simply as possible so I wrote and/or borrowed code for a PowerShell script to streamline the process&lt;br /&gt;
&lt;br /&gt;
Basic steps of the script&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Copy updates to all servers in farm&lt;/li&gt;
&lt;li&gt;Prompt user to remove a web front end (WFE) user from Network Load Balancer(NLB)&lt;/li&gt;
&lt;li&gt;Enable &lt;a href=&quot;https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spwebservice.enablesidebyside.aspx&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Side By Side&lt;/a&gt; SharePoint code on that WFE&lt;/li&gt;
&lt;li&gt;Trigger the &lt;a href=&quot;https://technet.microsoft.com/en-us/library/mt604696(v=office.16).aspx&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;coping of Side By Side&lt;/a&gt; files to the c:\program files\common files\microsoft shared\web server extensions\16\template\layouts\{current SharePoint version number}&lt;/li&gt;
&lt;li&gt;Prompt user to install patch on this WFE (may possibly automate this) and reboot server&lt;/li&gt;
&lt;li&gt;Prompt user to add WFE back into NLB and remove other WFE (could add a loop for more than 2 WFE)&lt;/li&gt;
&lt;li&gt;Enable Side by Side on second WFE&lt;/li&gt;
&lt;li&gt;Trigger SharePoint file copy&lt;/li&gt;
&lt;li&gt;Prompt to install patches on second WFE and reboot server&lt;/li&gt;
&lt;li&gt;Disables the &lt;a href=&quot;https://technet.microsoft.com/en-us/library/jj219613.aspx&quot; target=&quot;_blank&quot;&gt;Distributed Cache&lt;/a&gt;(DC) on the first server designated with the &quot;DistributedCache&quot; role&lt;/li&gt;
&lt;li&gt;Prompts user to install patched on this server and reboot.&lt;/li&gt;
&lt;li&gt;Re-enables the distributed cache on this server&lt;/li&gt;
&lt;li&gt;Disables the DC on the second server&lt;/li&gt;
&lt;li&gt;Prompts to install patches and reboot server&lt;/li&gt;
&lt;li&gt;Re-enables the distributed cache on this server&lt;/li&gt;
&lt;li&gt;Runs &lt;a href=&quot;https://technet.microsoft.com/en-us/library/ff607813.aspx&quot; target=&quot;_blank&quot;&gt;database upgrade&lt;/a&gt; on all content databases&lt;/li&gt;
&lt;li&gt;Runs PSConfig on each server one at a time maintaining availability of all services&lt;/li&gt;
&lt;li&gt;Set Side By Side to the new version that has just been installed on all servers&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;h3&gt;
Command Line&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;PS&amp;gt; .\SP-UpdateFarm.ps1
-farmaccount &quot;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;test\test-farm&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&quot; -weburl &quot;https://test-partner.example.com/&quot;
-wfeSvr01 &quot;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;TEST&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;WFE01&quot; -wfeSvr02 &quot;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;TEST&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;WFE01&quot;
-otherSvrs01 @( &quot;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;TEST&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;APP01&quot;, &quot;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;TEST&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;SRCH01&quot;,
&quot;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;TEST&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;DCS01&quot;) -otherSvrs02 @( &quot;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;TEST&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;APP02&quot;,
&quot;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;TEST&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;SRCH02&quot;, &quot;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;TEST&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;DCS02&quot;) -test $true&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
Parameters&lt;/h3&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[string] $farmaccount&amp;nbsp; =&quot;The Farm account to connect to SharePoint&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[string] $weburl =&quot;Web application URL to the use for upgrading&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[string] $wfeSvr01 = &quot;Name of the first Web Front End&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[string] $wfeSvr02 =&quot;Name of the Second Web Front End&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Array $otherSvrs01=&quot;Other servers in your HA farm all 01&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Array $otherSvrs02 =&quot;Other servers in your HA farm all 02&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[string] $patchFolderUNC =&quot;UNC to copy the upgrade files from&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[string] $patchInstallFolder=&quot;The folder to place the upgrade files in on remote servers&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[bool]$test =&quot;run through script connecting to servers but not actually performing actions&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Gotchas&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;if you have a folder in the &quot;web server extensions\16\template\layouts&quot; folder that looks like a version number for example 1.2.3.4 it can be deleted when you enable the Side By Side&lt;/li&gt;
&lt;li&gt;remote powershell must be allowed for this to work&lt;/li&gt;
&lt;li&gt;you must run as Farm account&lt;/li&gt;
&lt;li&gt;PowerShell must be run as Administrator&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;a href=&quot;https://gist.github.com/ShauneDonohue/3d4f8cc78771c2bd35e5daa0c17ba41c&quot; target=&quot;_blank&quot;&gt;SP-UpgradeFarmZDP.ps1&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See also:&lt;br /&gt;
&lt;a href=&quot;https://technet.microsoft.com/en-us/library/mt767550(v=office.16).aspx&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://technet.microsoft.com/en-us/library/mt767550(v=office.16).aspx&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://technet.microsoft.com/en-us/library/mt743024(v=office.16).aspx&quot;&gt;https://technet.microsoft.com/en-us/library/mt743024(v=office.16).aspx&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogs.technet.microsoft.com/pla/2016/03/10/zero-downtime-patching-in-sharepoint-server-2016/&quot;&gt;https://blogs.technet.microsoft.com/pla/2016/03/10/zero-downtime-patching-in-sharepoint-server-2016/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://technet.microsoft.com/en-us/library/cc748824(v=office.16).aspx&quot;&gt;https://technet.microsoft.com/en-us/library/cc748824(v=office.16).aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/1354788312138186636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/1354788312138186636' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/1354788312138186636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/1354788312138186636'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2017/10/zero-downtime-patching-in-sharepoint.html' title='Zero Downtime Patching in SharePoint Server 2016'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-2543608117758628996</id><published>2015-09-15T14:36:00.000-04:00</published><updated>2015-09-15T14:38:55.190-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Nintex Forms"/><category scheme="http://www.blogger.com/atom/ns#" term="Nintex Workflow"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2013"/><title type='text'>Nintex Task Form NullReferenceException</title><content type='html'>&lt;span style=&quot;background-color: black; color: white;&quot;&gt;&lt;span style=&quot;font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;Brief history, a client of mine had workflows created in Nintex on&amp;nbsp;&lt;/span&gt;Sharepoint 2010&lt;span style=&quot;font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&amp;nbsp;that did not use Nintex&amp;nbsp;&lt;/span&gt;forms&lt;span style=&quot;font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;. These workflows were ported to&amp;nbsp; S&lt;/span&gt;harePoint 2013&lt;span style=&quot;font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&amp;nbsp;with Nintex Forms. &amp;nbsp;After that none of the a “Request review”, “Request data” or a “Request approval” activity would work. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: black; font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;The simplest way to recreated the error was to preview the form but you would get the same error if you published and ran the workflow.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;br style=&quot;font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;span style=&quot;color: white; font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;br style=&quot;font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;span style=&quot;color: white; font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;Source Error:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: white; font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;br style=&quot;font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;span style=&quot;color: white; font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;Stack Trace:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;br style=&quot;font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;span style=&quot;color: white; font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;[NullReferenceException: Object reference not set to an instance of an object.]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: white; font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;Nintex.Forms.SharePoint.ApplicationPages.PreviewNintexForm.GetDefaultValuesForWorkflowVariables() +557&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: white; font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;Nintex.Forms.SharePoint.ApplicationPages.PreviewNintexForm.InitializeData() +846&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: white; font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;Nintex.Forms.SharePoint.ApplicationPages.PreviewNintexForm.OnInit(EventArgs e) +645&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: white; font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;System.Web.UI.Control.InitRecursive(Control namingContainer) +186&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: white; font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2098&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;br style=&quot;font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;span style=&quot;color: white; font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;After &quot;debugging&quot; the Nintex&#39;s code I determined that it was using a XML file stored in a hidden SharePoint list. This XML file contained the form as well as the workflow variable definitions.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: white; font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;It turns out that earlier versions of Nintex stored blank variables as &lt;defaultvalue i:nil=&quot;true&quot;&gt;. The new version stores them as &lt;defaultvalue&gt; the code did not support the old format.&lt;/defaultvalue&gt;&lt;/defaultvalue&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;br style=&quot;font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot; /&gt;&lt;/span&gt;
&lt;span style=&quot;color: white; font-family: Segoe, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;All I had to do was go through all the workflow variables and assign them a single space as the default value and the forms started working again.&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/2543608117758628996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/2543608117758628996' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/2543608117758628996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/2543608117758628996'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2015/09/nintex-task-form-nullreferenceexception.html' title='Nintex Task Form NullReferenceException'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-575173370879910929</id><published>2014-09-11T15:04:00.000-04:00</published><updated>2017-10-02T12:22:55.821-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><category scheme="http://www.blogger.com/atom/ns#" term="O365"/><category scheme="http://www.blogger.com/atom/ns#" term="Office 365"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Select all items in a MultiLookupPicker</title><content type='html'>&lt;br /&gt;
I had a client that wanted all options in a multi-select lookup field to be selected when a new item was created&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTizYaFB8FhFO_tBvVlx_UQgk0fkdDzfIIbUriXAuB0SVsDJ_LJDMsxSAZet-XV9mc5RkwvJtskx0hHSLze9w16iy3Igd2Dm0ACHbr08jG8MUxDwuf9tRbGenS_I0leXvwU9EFSTBFIJqz/s1600/Capture.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTizYaFB8FhFO_tBvVlx_UQgk0fkdDzfIIbUriXAuB0SVsDJ_LJDMsxSAZet-XV9mc5RkwvJtskx0hHSLze9w16iy3Igd2Dm0ACHbr08jG8MUxDwuf9tRbGenS_I0leXvwU9EFSTBFIJqz/s1600/Capture.JPG&quot; height=&quot;66&quot; title=&quot;Multi select box&quot; width=&quot;320&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
Then the user could deselect what they did not need, more common to need all. Well it turns out you can&#39;t specify the default values for a multi-lookup field. &lt;br /&gt;
&lt;br /&gt;
I came across &lt;a href=&quot;http://weblogs.asp.net/bsimser/defaulting-values-in-a-multi-lookup-form-in-sharepoint&quot; target=&quot;_blank&quot;&gt;this&lt;/a&gt;&amp;nbsp;post from&amp;nbsp;Bil Simser (thanks) that gave me the ideas for this JavaScript function to select all the possible options in a specific MultiLookupPicker item. &amp;nbsp;The argument is the name of the field you want to select from, there could be more than one on the page.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;pre class=&quot;brush: js&quot;&gt;jQuery.fn.exists = function () {
    return this.length !== 0;
};

SD.SP2010.MultiLookupPicker.SelectAll = function(pickerTitle) {
    if (jQuery(&quot;[id$=&#39;_SelectCandidate&#39;][title^=&#39;&quot; + pickerTitle + &quot;&#39;]&quot;).exists()) {
        // append the new options to our results (this updates the display only of the second list box)
        jQuery(&quot;[id$=&#39;_SelectCandidate&#39;][title^=&#39;&quot; + pickerTitle + &quot;&#39;]&quot;).children().detach().appendTo(&quot;[id$=&#39;_SelectResult&#39;][title^=&#39;&quot; + pickerTitle + &quot;&#39;]&quot;);
        var data = jQuery(&quot;[id$=&#39;_SelectCandidate&#39;][title^=&#39;&quot; + pickerTitle + &quot;&#39;]&quot;).closest(&quot;table&quot;).siblings(&quot;[id$=&#39;MultiLookupPicker_data&#39;]&quot;).val();
        data = data.replace( /\|t \|t /g , &quot;&quot;);
        // append the new options to our hidden field (this sets the values into the list item when saving)   
        jQuery(&quot;[id$=&#39;_SelectCandidate&#39;][title^=&#39;&quot; + pickerTitle + &quot;&#39;]&quot;).closest(&quot;table&quot;).siblings(&quot;[id$=&#39;MultiLookupPicker&#39;]&quot;).val(data);
    }
};
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/575173370879910929/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/575173370879910929' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/575173370879910929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/575173370879910929'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2014/09/select-all-items-in-multilookuppicker.html' title='Select all items in a MultiLookupPicker'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTizYaFB8FhFO_tBvVlx_UQgk0fkdDzfIIbUriXAuB0SVsDJ_LJDMsxSAZet-XV9mc5RkwvJtskx0hHSLze9w16iy3Igd2Dm0ACHbr08jG8MUxDwuf9tRbGenS_I0leXvwU9EFSTBFIJqz/s72-c/Capture.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-8449982355122331619</id><published>2014-04-15T16:11:00.001-04:00</published><updated>2017-10-02T12:20:27.544-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSOM"/><category scheme="http://www.blogger.com/atom/ns#" term="internal name"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><category scheme="http://www.blogger.com/atom/ns#" term="ListView"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="SPServices"/><title type='text'>Using SharePoint CSOM to access a list&#39;s information using folder/internal name</title><content type='html'>Been quite some time since I posted anything but I could not find any place on the net that talked about getting a SharePoint list using the CSOM and the lists internal/folder name.&amp;nbsp;&amp;nbsp; I finally came up with this kludge using the &lt;a href=&quot;http://spservices.codeplex.com/wikipage?title=Lists&quot; target=&quot;_blank&quot;&gt;SPService&lt;/a&gt;, but basicly what I am doing is searching the default view URL for the list folder name.&lt;br /&gt;
&lt;br /&gt;
The reason I needed to do this was I had a client request to setup alerts form one list that had URLS that pointed to another list. The alerts really needed to be on the referenced list and not what the user was currently selecting in the list view. &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
$().SPServices({&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; operation: &quot;GetListCollection&quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; async: false,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; completefunc: function (xData, Status) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $(xData.responseXML).find(&quot;List&quot;).each(function() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if ($(this).attr(&quot;DefaultViewUrl&quot;).indexOf(listInternalName) &amp;gt;= 0) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; listName = $(this).attr(&quot;Title&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; listId = $(this).attr(&quot;ID&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
});&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Hope someone else finds this useful.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/8449982355122331619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/8449982355122331619' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/8449982355122331619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/8449982355122331619'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2014/04/using-sharepoint-csom-to-access-lists.html' title='Using SharePoint CSOM to access a list&#39;s information using folder/internal name'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-3854313042579843039</id><published>2012-06-07T15:22:00.004-04:00</published><updated>2012-07-30T09:45:29.366-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Browser"/><category scheme="http://www.blogger.com/atom/ns#" term="PDF"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Enabling in browser support for PDF</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;ms-rteFontSize-4&quot; style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;A very old post I forgot to publish about&amp;nbsp;enabling SharePoint browser support of&amp;nbsp;PDF&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; font-family: &#39;times new roman&#39;; font-size: 16px;&quot;&gt;&lt;/span&gt; &lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; font-family: &#39;times new roman&#39;; font-size: 16px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; font-family: &#39;times new roman&#39;; font-size: 16px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;If you have a default SharePoint 2010 setup you would 
notice that when you go to open a Pdf file SharePoint prompts you to save it 
rather than opening.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; font-family: &#39;times new roman&#39;; font-size: 16px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; font-family: &#39;times new roman&#39;; font-size: 16px;&quot;&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;The cause of this behavior is SharePoint 2010 Browser File Handling. This 
property is on SharePoint Web Application level and its value determines how 
files are treated in the browser. “Strict” specifies that MIME content types 
which are not listed in “AllowedInlineDownloadedMimeTypes” are forced to be 
downloaded. “Permissive” specifies that the HTML and other content types which 
might contain script are allowed to be displayed directly in the browser. 
Source: &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spwebapplication.browserfilehandling.aspx&quot; style=&quot;border-width: 0px; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot; target=&quot;_blank&quot; title=&quot;MSDN&quot;&gt;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spwebapplication.browserfilehandling.aspx&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; font-family: &#39;times new roman&#39;; font-size: 16px; line-height: normal; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;“AllowedInlineDownloadedMimeTypes” is a collection of MIME types. This list 
of MIME types does not contain MIME type of Pdf documents by default. It is 
important to understand that by adding Pdf MIME type to IIS settings you will 
not solve this issue.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;&lt;b style=&quot;border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Solution 
#1 (via User Interface):&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;The solution is to change Browser File Handling property on Web Application 
level. For that you need to be a Farm Administrator. Steps to change Browser 
File Handling property:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;border-width: 0px; margin: 0px; padding: 10px 0px 10px 20px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;
&lt;li style=&quot;border-width: 0px; margin: 0px 0px 5px; padding: 0px; vertical-align: baseline;&quot;&gt;Go 
to SharePoint 2010 Central Administration &amp;gt; Application Management &amp;gt; 
Manage Web Applications&lt;/li&gt;
&lt;li style=&quot;border-width: 0px; margin: 0px 0px 5px; padding: 0px; vertical-align: baseline;&quot;&gt;Select 
the row of your web application&lt;/li&gt;
&lt;li style=&quot;border-width: 0px; margin: 0px 0px 5px; padding: 0px; vertical-align: baseline;&quot;&gt;Click 
General Settings in the ribbon&lt;/li&gt;
&lt;li style=&quot;border-width: 0px; margin: 0px 0px 5px; padding: 0px; vertical-align: baseline;&quot;&gt;Scroll 
down to Browser File Handling and select Permissive&lt;/li&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/ul&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px; text-align: left;&quot;&gt;
&lt;/span&gt;&lt;img alt=&quot;part1-screen2.png&quot; class=&quot;ms-rtePosition-2&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3fOf-_W2bjXXCa_uQEO-BeD_jBDt2AXUiWiWujwPXiVP-sQ_CkKuPw-5aVEd-D2k0PLKdNTpGySsfsf9pxVQWHWdGtSvIESpHFWOi2DPd7uRi9myT7mH9q8Ei9slIZWlcShahd9fnp3gM/s1600/BrowserFileHandling.png&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px; margin: 5px; text-align: center;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;ul style=&quot;border-width: 0px; margin: 0px; padding: 10px 0px 10px 20px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border-width: 0px; margin: 0px 0px 5px; padding: 0px; vertical-align: baseline;&quot;&gt;Click 
Ok&lt;/li&gt;
&lt;/ul&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: helvetica, arial, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px; text-align: center;&quot;&gt;Now, your Pdf document will be opened in the browser.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; font-family: &#39;times new roman&#39;; font-size: 16px; line-height: normal;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; font-family: &#39;times new roman&#39;; font-size: 16px; line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;By default, option is set to Strict when creating a web 
application. When set to Strict, a Pdf document (and other file types) can only 
be Saved (downloaded), but in Permissive mode, the Pdf document can be opened in 
the browser by default (this is a setting you can change. See Document Library 
Settings -&amp;gt; Open in the Client).&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; font-family: &#39;times new roman&#39;; font-size: 16px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG6wXvYu1mfVKTGcJPaH7NF9nFw1xzQPW3IjQ9JYakqZ2Y-2T2D4ia-8tIfitRaXM4R-HR9Pfp2mvuiW03zm2-CD0oTp6WkFhAO-VhG3kPheN6lX6lTbg-O3ET2AF50jvSQ-UWwAv-E8sR/s1600/EnableOpeningInBrowser.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG6wXvYu1mfVKTGcJPaH7NF9nFw1xzQPW3IjQ9JYakqZ2Y-2T2D4ia-8tIfitRaXM4R-HR9Pfp2mvuiW03zm2-CD0oTp6WkFhAO-VhG3kPheN6lX6lTbg-O3ET2AF50jvSQ-UWwAv-E8sR/s1600/EnableOpeningInBrowser.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; font-family: &#39;times new roman&#39;; font-size: 16px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; font-family: &#39;times new roman&#39;; font-size: 16px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; font-family: &#39;times new roman&#39;; font-size: 16px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; font-family: &#39;times new roman&#39;; font-size: 16px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; font-family: &#39;times new roman&#39;; font-size: 16px;&quot;&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Limitation 
#1:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Once you enabled “Permissive” Browser File Handling, SharePoint will allow 
all documents be opened in the browser. Today, there is no “out-of-the-box” 
option to allow Permissive option for Pdf documents only.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/3854313042579843039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/3854313042579843039' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/3854313042579843039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/3854313042579843039'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2012/06/enabling-in-browser-support-for-pdf.html' title='Enabling in browser support for PDF'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3fOf-_W2bjXXCa_uQEO-BeD_jBDt2AXUiWiWujwPXiVP-sQ_CkKuPw-5aVEd-D2k0PLKdNTpGySsfsf9pxVQWHWdGtSvIESpHFWOi2DPd7uRi9myT7mH9q8Ei9slIZWlcShahd9fnp3gM/s72-c/BrowserFileHandling.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-2506133633540965966</id><published>2012-05-07T16:09:00.003-04:00</published><updated>2012-05-07T16:10:12.921-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Content Database"/><category scheme="http://www.blogger.com/atom/ns#" term="My Sites"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><title type='text'>Migrate SharePoint 2010 My Sites from default Web Application</title><content type='html'>Recently I had a client that had setup their &quot;My Sites&quot; in the same web application as their default intranet and wanted to move them to a new web application.&lt;br /&gt;
I found several posts on how to exporting my sites &lt;a href=&quot;http://davidkvas.blogspot.com/2012/01/exporting-and-importing-all-my-site.html&quot; target=&quot;_blank&quot;&gt;like this one&lt;/a&gt;&amp;nbsp;and &lt;a href=&quot;http://www.sharepointjohn.com/sharepoint-2010-powershell-move-all-my-sites-personal-sites-from-one-content-database-to-another/&quot; target=&quot;_blank&quot;&gt;migrating My Sites to a new Content Database&lt;/a&gt; but none that actually tacked the issue of moving to a new Web Application.&lt;br /&gt;
Well this turned out to be easier than I thought.&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Migrate the &quot;My Sites&quot; content to a new content database.&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;$db = Get-SPContentDatabase WSS_Content
Get-SPSite http://portal/personal/* -Limit ALL | where { $_.ContentDatabase -eq $db }
Get-SPSite http://portal/personal/* -Limit ALL | where { $_.ContentDatabase -eq $db } | Move-SPSite -DestinationDatabase WSS_Content_My_Sites -Confirm:$false
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Remove this new content database from the current Web Application. &lt;br /&gt;In Central Admin -&amp;gt; Application Management -&amp;gt; Manage content databases. Select Content DB, in my case WSS_Content_My_Sites and select Remove content database&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN4oqVLPktX4O2F-t2pohSF9EWUDKVS7_ia07shVqNfwBO-ISSdCLFZrtIuEBBI63FXdC5DnwjKz5tYaKN7gZRrcYot3N0qrkz_dsB1kEuiWpsA1nBN5ZzhCsxKF5ar0rwZvdCSzXgCvq1/s1600/RemoveContentDB.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN4oqVLPktX4O2F-t2pohSF9EWUDKVS7_ia07shVqNfwBO-ISSdCLFZrtIuEBBI63FXdC5DnwjKz5tYaKN7gZRrcYot3N0qrkz_dsB1kEuiWpsA1nBN5ZzhCsxKF5ar0rwZvdCSzXgCvq1/s320/RemoveContentDB.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Create a new Web Application to house the My Sites.&lt;br /&gt;Central Admin -&amp;gt; Application Management -&amp;gt; Managed web applications -&amp;gt; Select New from the ribbon. &amp;nbsp;There is no need to create a new site collection since we are going to drop the content database that will be created.&lt;/li&gt;
&lt;li&gt;Re-attach the content database previously removed to this new Web Application&lt;br /&gt;Central Admin -&amp;gt; Application Management -&amp;gt; Manage content databases.&lt;br /&gt;Make sure you select the correct Web Application and use the correct database name.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7aWhm463G4ROQeXM1XLlQbfm4wz3n1w4wZ7ytXpBLXGgHvarqFNOjKZtcNm2_y8pkKlhnPgIrjRdm_NInOoSxcyf8FuWgRAundyVT6BrYHaFRsam3d6e8T0Ama4R_t5JkKwfg1a2YQzWB/s1600/AddContentDB.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;271&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7aWhm463G4ROQeXM1XLlQbfm4wz3n1w4wZ7ytXpBLXGgHvarqFNOjKZtcNm2_y8pkKlhnPgIrjRdm_NInOoSxcyf8FuWgRAundyVT6BrYHaFRsam3d6e8T0Ama4R_t5JkKwfg1a2YQzWB/s320/AddContentDB.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Set the Self-Service Site Creation for the new My Site Web Application.&lt;br /&gt;Central Admin-&amp;gt; Application Manager -&amp;gt; Manage web application -&amp;gt; select site then Self-Service Site Creation in ribbon&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggiPBl2bDkO5PWxJXtUMViTVQ5iLfnLnx7IqI1BoP2jy21pVgLg4Se1QiE7_VPTS4zQyvMqNkiwkVreyc4Cd7Zo5rnCyyvPRjG3q4CdKvnCYETwHZbsntMR872sKFFO1rKZH5NkbqINFHc/s1600/SelfserviceCreate.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;213&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggiPBl2bDkO5PWxJXtUMViTVQ5iLfnLnx7IqI1BoP2jy21pVgLg4Se1QiE7_VPTS4zQyvMqNkiwkVreyc4Cd7Zo5rnCyyvPRjG3q4CdKvnCYETwHZbsntMR872sKFFO1rKZH5NkbqINFHc/s320/SelfserviceCreate.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Update links in SharePoint to create new &quot;My Sites&quot; in this new location.&lt;br /&gt;Central Admin -&amp;gt; Application Management -&amp;gt; Manage service applications&lt;br /&gt;Select User Profile Service then Manage in the ribbon&lt;br /&gt;Under My Site Settings -&amp;gt; Setup My Sites -&amp;gt; update My Site Host location&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6OWfWSPHBE-xmPI99sQ5aDch5k2UrJv9Mk0ngKCNnvRfnfHFjc0sC74-4Eq3n0Y05E0I2DIE0e1dAS6bWxoAqz_2cICJIGszdVcoDwdCqi8ExelTQ4vT4_h1XgeqmdbekwfJRvZ7wkx7K/s1600/MySiteHostLoc.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;201&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6OWfWSPHBE-xmPI99sQ5aDch5k2UrJv9Mk0ngKCNnvRfnfHFjc0sC74-4Eq3n0Y05E0I2DIE0e1dAS6bWxoAqz_2cICJIGszdVcoDwdCqi8ExelTQ4vT4_h1XgeqmdbekwfJRvZ7wkx7K/s320/MySiteHostLoc.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
Remove the content database that was created with the new &quot;My Site&quot; Web Application
&lt;/li&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/2506133633540965966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/2506133633540965966' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/2506133633540965966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/2506133633540965966'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2012/05/migrate-sharepoint-201-my-sites-from.html' title='Migrate SharePoint 2010 My Sites from default Web Application'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN4oqVLPktX4O2F-t2pohSF9EWUDKVS7_ia07shVqNfwBO-ISSdCLFZrtIuEBBI63FXdC5DnwjKz5tYaKN7gZRrcYot3N0qrkz_dsB1kEuiWpsA1nBN5ZzhCsxKF5ar0rwZvdCSzXgCvq1/s72-c/RemoveContentDB.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-4809834925414542916</id><published>2012-01-11T11:33:00.000-05:00</published><updated>2017-10-02T12:24:29.656-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="email"/><category scheme="http://www.blogger.com/atom/ns#" term="Person Field"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="SPUser"/><title type='text'>How to get a SharePoint person field&#39;s email adress</title><content type='html'>This week I had the need to access the email address of a user that was in a person field of a SharePoint list. &lt;br /&gt;
&lt;br /&gt;
Well I incorrectly assumed that this was some flavor of &amp;nbsp;a SPUser object, turns out the person field in a SPList is a special type &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfielduser.aspx&quot; target=&quot;_blank&quot;&gt;SPFieldUser&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Well lets cut to the chase this is the code to access the email address of a SPListItem person column;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;private bool EmailUser(SPListItem spListItem, string recordColumn, string subject, string message)
        {
            SPFieldUser spFieldUser = (SPFieldUser)spListItem.Fields[recordColumn];
            SPFieldUserValue spFieldUserValue = (SPFieldUserValue)spFieldUser.GetFieldValue(
                                                    spListItem[recordColumn].ToString());
            if (string.IsNullOrEmpty(spFieldUserValue.User.Email) == false)
                return SPUtility.SendEmail(spListItem.Web, false, false, spFieldUserValue.User.Email, subject, message);
            else
                LogWrite(&quot;Error&quot;, string.Format(&quot;Send Email Error Message&quot;)
                                                ,spFieldUserValue.User.Name));
            return false;
        }
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/4809834925414542916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/4809834925414542916' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/4809834925414542916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/4809834925414542916'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2012/01/how-to-get-sharepoint-person-field.html' title='How to get a SharePoint person field&#39;s email adress'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-4044905706209247324</id><published>2011-10-28T12:35:00.000-04:00</published><updated>2017-10-02T12:25:26.702-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="deploy"/><category scheme="http://www.blogger.com/atom/ns#" term="ListView"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="wsp"/><category scheme="http://www.blogger.com/atom/ns#" term="XLVWP"/><category scheme="http://www.blogger.com/atom/ns#" term="XsltListViewWebPart"/><title type='text'>How to change the view used by XsltListViewWebPart</title><content type='html'>So I was in a situation that I needed to change what view was being displayed on a page&amp;nbsp;dynamically.&lt;br /&gt;
I am using the the XsltListViewWebPart to display all the values of a list to the user and depending on the user and different properties of the list items I needed to filter the view as well as assign a different XSL file.&lt;br /&gt;
&lt;br /&gt;
The biggest problem I had was that the list view GUID &amp;nbsp;is created only at deploy time and I could find no&amp;nbsp;other way&amp;nbsp;to assign a different view.&lt;br /&gt;
&lt;br /&gt;
I came across several posts that had examples of changing the view or adding a new XLVWP to the page at deploy time&lt;br /&gt;
&lt;a href=&quot;http://sharepoint.stackexchange.com/questions/4843/reusing-the-xsltlistviewwebpart&quot;&gt;http://sharepoint.stackexchange.com/questions/4843/reusing-the-xsltlistviewwebpart&lt;/a&gt;
and
&lt;a href=&quot;http://social.technet.microsoft.com/Forums/zh/sharepoint2010programming/thread/983d2098-d742-4708-8bdc-437aa07b3b9d&quot;&gt;http://social.technet.microsoft.com/Forums/zh/sharepoint2010programming/thread/983d2098-d742-4708-8bdc-437aa07b3b9d&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;
So I wanted to take this a little further and be able to dictate what view was used on the fly. &amp;nbsp;Using a QueryString of the ListID and the ListViewName I then assign the&amp;nbsp;appropriate&amp;nbsp;view in the OnInit event as shown below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;public partial class RecordHistory : DialogLayoutsPageBase
{
     protected void Page_Load(object sender, EventArgs e)
     {
     }
     protected override void OnInit(EventArgs e)
     {
         base.OnInit(e);
         string[] strLists = Request.QueryString.GetValues(&quot;ListID&quot;);
         string[] strListViewName = Request.QueryString.GetValues(&quot;ListViewName&quot;);

         if (strLists == null || strLists.Length &amp;lt; 1)
         {
             throw new SPException(SPResource.GetString(Strings.MissingRequiredQueryString, &quot;ListID&quot;));
         }
         SPList spList = SPControl.GetContextWeb(Context).Lists.GetList(new Guid(strLists[0]), true);
         SPView view = spList.Views[strListViewName[0]];
         this.xlvwpRecordHistory.ViewGuid = view.ID.ToString();
         this.xlvwpRecordHistory.ViewId = int.Parse(view.BaseViewID);
         this.xlvwpRecordHistory.XmlDefinition = view.GetViewXml();
     }
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
As always there are many ways to do this that might be better but this worked and I found no other examples of this on the web.&lt;br /&gt;
Please let me know if you have a better idea</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/4044905706209247324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/4044905706209247324' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/4044905706209247324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/4044905706209247324'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2011/10/how-to-change-view-used-by.html' title='How to change the view used by XsltListViewWebPart'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-6694630261602085519</id><published>2011-06-06T11:41:00.000-04:00</published><updated>2011-06-06T11:41:12.581-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010 migrate domain"/><title type='text'>Basic steps for Moving a SharePoint site collection between domains</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;Before you start&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;Make sure SharePoint versions are the same on source and destination servers, service packs and patches.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;Permissions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;There are some basic permissions that need to be configured (if they have not already).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;See&amp;nbsp;&lt;a href=&quot;http://technet.microsoft.com/en-us/library/ff607596.aspx&quot;&gt;Add-SPShellAdmin&lt;/a&gt;. If you are using Windows authentication to connect to SQL Server, the user account must also be a member the SQL Server&amp;nbsp;&lt;b&gt;dbcreator&lt;/b&gt;&amp;nbsp;fixed server role on the SQL Server instance where the database will be created. If you are using SQL authentication to connect to SQL Server, the SQL authentication account that you specify when you create the content database must have&amp;nbsp;&lt;b&gt;dbcreator&lt;/b&gt;&amp;nbsp;permission on the SQL Server instance where the database will be created.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: magenta; background-image: initial; background-origin: initial; font-family: Garamond, serif;&quot;&gt;Add-SPShellAdmin -UserName&amp;nbsp;&lt;i&gt;Domain\User Name&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;Migrate Data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;Backup Site Collection on Farm A.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;On the server farm that contains the original site collection open a&amp;nbsp;&lt;b&gt;SharePoint 2010 Management Shell.&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;In the power shell window type the following command:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: magenta; background-image: initial; background-origin: initial; font-family: Garamond, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: white;&quot;&gt;Backup-SPSite –Identity&amp;nbsp;&lt;i&gt;http://FarmASiteCollection&amp;nbsp;&lt;/i&gt;-Path&amp;nbsp;&lt;i&gt;TempPathAndFileName.bak&lt;/i&gt;&amp;nbsp;-Force&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;Force will overwrite a previously backup file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;Create Content Database on Farm B.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;Assuming the appropriate Web Application already exists then you just need to create a new content database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;On the server for farm B open a&amp;nbsp;&lt;b&gt;SharePoint 2010 Management Shell.&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;In the power shell window type the following command:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: magenta; background-image: initial; background-origin: initial; font-family: Garamond, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: white;&quot;&gt;New-SPContentDatabase -Name&amp;nbsp;&lt;i&gt;ContentDbName&lt;/i&gt;&amp;nbsp;-WebApplication&amp;nbsp;&lt;i&gt;WebApplicationName&lt;br /&gt;
&lt;span&gt;&amp;nbsp;&lt;/span&gt;-&lt;/i&gt;DatabaseServer&lt;i&gt;&amp;nbsp;DBServerName&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;Restoring Site Collection on Farm B.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;In the power shell window type the following command:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: magenta; background-image: initial; background-origin: initial; font-family: Garamond, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: white;&quot;&gt;Restore-SPSite –Identity&amp;nbsp;&lt;i&gt;FarmBSiteCollection&lt;/i&gt;&amp;nbsp;-Path&amp;nbsp;&lt;i&gt;TempPathAndFileName.bak&lt;/i&gt;&lt;br /&gt;
-DatabaseServer&amp;nbsp;&lt;i&gt;DBServerName&amp;nbsp;&lt;/i&gt;-DatabaseName&amp;nbsp;&lt;i&gt;ContentDbName&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;Restore Access/Permissions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;You need to add a user via command line because the restored site will deny all of your login attempts (unless your server is on the same domain as the original source server).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;Using the central administration console, you will note that the site collection still references the original administrators which are now invalid on this new domain.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;NOTE: you can view using following steps &amp;gt;&amp;gt; Central Administration &amp;gt;&amp;gt; Application Management &amp;gt;&amp;gt; Site Collection Administrators (on Farm B SharePoint central administration domain).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0.25in; margin-right: 0px; margin-top: 0px; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;&lt;span&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;Now you need to change ownership of the site collection using following command.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: magenta; background-image: initial; background-origin: initial; font-family: Garamond, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: white;&quot;&gt;Set-SPSite –Identity&lt;i&gt;&amp;nbsp;FarmBSiteCollection&amp;nbsp;&lt;/i&gt;-OwnerAlias&amp;nbsp;&lt;i&gt;“domain/User”&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0.25in; margin-right: 0px; margin-top: 0px; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;&lt;span&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;Now if you refresh central admin console you will see the new administrator as an owner, you can change the secondary administrator at this point as well using same utility.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: magenta; background-image: initial; background-origin: initial; font-family: Garamond, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: white;&quot;&gt;Set-SPSite –Identity&lt;i&gt;&amp;nbsp;FarmBSiteCollection&amp;nbsp;&lt;/i&gt;-&amp;nbsp;SecondaryOwnerAlias&amp;nbsp;&lt;i&gt;“domain/User”&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0.25in; margin-right: 0px; margin-top: 0px; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;&lt;span&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;Now reset the IIS and you can login the main site collection as an administrator.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0.25in; margin-right: 0px; margin-top: 0px; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;&lt;span&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Garamond, serif;&quot;&gt;Then you can optionally run this to clean up the old lingering logins explicitly&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: magenta; background-image: initial; background-origin: initial; font-family: Garamond, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: white;&quot;&gt;Move-SPUser –Identity &lt;i&gt;olddomain\UserName&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&amp;nbsp;-&amp;nbsp;NewAlias&amp;nbsp;&lt;i&gt;newdomain\UserName&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/6694630261602085519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/6694630261602085519' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/6694630261602085519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/6694630261602085519'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2011/06/basic-steps-for-moving-sharepoint-site.html' title='Basic steps for Moving a SharePoint site collection between domains'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-8237556275645788851</id><published>2011-05-18T09:55:00.003-04:00</published><updated>2011-05-18T09:58:51.879-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BitCoin"/><title type='text'>BitCoins???? Fascinating concept.</title><content type='html'>Came across this &lt;a href=&quot;http://thisweekin.com/thisweekin-startups/bitcoin-discussion-with-gavin-andresen-and-amir-taaki-on-this-week-in-startups-140/?utm_source=feedburner&amp;amp;utm_medium=feed&amp;amp;utm_campaign=Feed%3A+twistvid+%28This+Week+in+Startups+-+Video%29&quot;&gt;article&lt;/a&gt; not sure I understand all the concept but what an idea.&lt;div&gt;Is this really going to take off or just die a slow death like many cool concept?&lt;br /&gt;&lt;a href=&quot;http://thisweekin.com/thisweekin-startups/bitcoin-discussion-with-gavin-andresen-and-amir-taaki-on-this-week-in-startups-140/?utm_source=feedburner&amp;amp;utm_medium=feed&amp;amp;utm_campaign=Feed%3A+twistvid+%28This+Week+in+Startups+-+Video%29&quot;&gt;&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/8237556275645788851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/8237556275645788851' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/8237556275645788851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/8237556275645788851'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2011/05/bitcoins-fascinating-concept.html' title='BitCoins???? Fascinating concept.'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-937069461674708827</id><published>2011-03-16T16:02:00.001-04:00</published><updated>2012-06-08T09:18:15.926-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Service Host"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="WCF"/><title type='text'>Reader Quotas for WCF Services in SharePoint 2010</title><content type='html'>Creating a WCF service in SharePoint 2010 is relatively easy. &amp;nbsp;The first thing to do is follow the basic steps in Microsoft&#39;s post&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ff521581.aspx&quot; title=&quot;&amp;quot;Creating a Custom WCF Service in SharePoint Foundation&amp;quot;&quot;&gt;&quot;Creating a Custom WCF Service in SharePoint Foundation&quot;&lt;/a&gt;. &amp;nbsp;This will give you a nice starting point for your Service as long as you don&#39;t need to need to change any of the Binding information. &lt;br /&gt;
&lt;br /&gt;Try sending a 70k file to your nice new WCF service. &amp;nbsp;Oops &amp;nbsp;error! &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;; font-size: x-small;&quot;&gt;The remote server returned an unexpected response: (400) Bad Request.*&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;Or&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &#39;courier new&#39;;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;Ok no problem. &amp;nbsp;If you have done any WCF Service code in the past you probably know that you need to alter some of the binding information to increase the message size and or change the attributes for the readerQuotas no big deal right?&lt;span class=&quot;pln&quot; style=&quot;margin-left: 0px; margin-right: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;span class=&quot;pln&quot; style=&quot;margin-left: 0px; margin-right: 0px; vertical-align: baseline;&quot;&gt;&lt;b&gt;Wrong!!!&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;margin-left: 0px; margin-right: 0px; vertical-align: baseline;&quot;&gt;SharePoint 2010 has this great new hosting ability&amp;nbsp;&lt;span style=&quot;font-family: consolas;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;MultipleBaseAddressBasicHttpBindingServiceHostFactory&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;and it does all the work required to set up the end points and bindings. You don&#39;t need to do create a web.config file or write any WCF service code. &lt;br /&gt;&lt;br /&gt;So right about now you should be asking yourself &quot;Self, how do I change the binding information then?&quot;. &lt;br /&gt;
Well after hunting around for the better part of a day I found a couple of post that talked about using the&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spwebservice.contentservice.aspx&quot; id=&quot;aak0&quot; title=&quot;SPWebService.ContentService&quot;&gt;SPWebService.ContentService&lt;/a&gt;&amp;nbsp;to programmatic change the binding information.&lt;br /&gt;
For example:&lt;br /&gt;
&lt;div id=&quot;l9id&quot; style=&quot;text-align: left;&quot;&gt;
&lt;img src=&quot;http://docs.google.com/File?id=dff5cnx_3dfpj94z5_b&quot; style=&quot;height: 148px; width: 481px;&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
But no where do any of the post talk about where do I run this code. &amp;nbsp;Wouldn&#39;t make sense to run it on the client, &lt;i&gt;although you do need to make some changes on the client side as well&lt;/i&gt;. &amp;nbsp;And running it as a Event Receiver when the feature for the WCF Service is installed did not work for me ether.&lt;br /&gt;
&lt;br /&gt;So what next???&lt;br /&gt;
Well I finally came across a comment on one of the MSDN pages by&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/community/user/1497522.aspx&quot; id=&quot;c:g3&quot; title=&quot;Dan Mayernik&quot;&gt;Dan Mayernik&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
First, to update the configuration for a custom WCF service -add a &lt;b&gt;WebApplication&lt;/b&gt; level feature with nothing more then a feature receiver. The receiver should override &quot;FeatureInstalled&quot; as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;div id=&quot;tdlo&quot; style=&quot;text-align: left;&quot;&gt;
&lt;img src=&quot;http://docs.google.com/File?id=dff5cnx_2f38wv2hm_b&quot; style=&quot;height: 206px; width: 623px;&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
Obviously, the values listed above are the extreme cases and should be set according to what your service will need. Also, the key for the indexer used for the WcfServiceSettings collection is the name of your service file. If you place the file in a subdirectory -do&amp;nbsp;&lt;b&gt;not&lt;/b&gt;&amp;nbsp;include the subdirectory name as part of the key.&lt;br /&gt;&lt;br /&gt;Thus, if your service is deployed to the ISAPI directory under:&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;/MyCompany/MyCustomService.svc&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
the key for the WcfServiceSettings collection would be:&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;mycustomservice.svc&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;b&gt;&lt;br /&gt;&lt;br /&gt;CAUTION: The key, as stated above, is case sensitive. The key should be all lowercase.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks goes to Dan he saved me from loosing any more of my hair (this week)</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/937069461674708827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/937069461674708827' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/937069461674708827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/937069461674708827'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2011/03/reader-quotas-for-wcf-services-in_4706.html' title='Reader Quotas for WCF Services in SharePoint 2010'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-2734465440890133692</id><published>2010-07-12T16:44:00.003-04:00</published><updated>2010-07-12T17:05:03.505-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><category scheme="http://www.blogger.com/atom/ns#" term="VS"/><title type='text'>Reusing file in Visual Studio without copying</title><content type='html'>This is so silly but I just figured out how to do it and I had to post it (in case someone else is as brain dead as I was).&lt;br /&gt;When you want to add an existing file to your current project in Visual Studio that&#39;s located outside the current project&#39;s directory, that file is copied into the project folder, then it&#39;s added to the project.  &lt;br /&gt;&lt;br /&gt;Well what if you don&#39;t want a duplicate file? &lt;br /&gt;&lt;br /&gt;Maybe you want to share the same source file in multiple projects so that if you modify the code in one project (to fix a bug, for example) the updated code is immediately available to the other projects.  &lt;br /&gt;&lt;br /&gt;I know, I know, most of us would create some sort of shared library for this code and just reference this DLL or even the whole VS project, but to add a shared file all you need to do is instead of clicking the &#39;Open&#39; button when adding an existing file, click the arrow to the left of this button.  Then select &#39;Link File&#39; from drop down, this way you create a link to the original file without coping it locally.  &lt;br /&gt;Simple!</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/2734465440890133692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/2734465440890133692' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/2734465440890133692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/2734465440890133692'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2010/07/reusing-file-in-visual-studio-without.html' title='Reusing file in Visual Studio without copying'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-7192536851996585946</id><published>2010-01-15T11:15:00.006-05:00</published><updated>2010-05-04T14:40:45.828-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2007 Workflow feature"/><title type='text'>SharePoint 2007 Custom workflow failed to start.</title><content type='html'>&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I am doing some custom SharePoint 2007 Workflow development utilizing  &lt;a href=&quot;http://www.codeplex.com/wspbuilder&quot;&gt;WSPBuilder&lt;/a&gt; and I had this one workflow that just would not run no matter what I did.  I disabled all the activities in it except a Workflow History logging activity but still the workflow would not start.  I am a little embarrassed to say this was driving me insane for the better part of a day.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;No matter what I did when I ran the workflow I would get &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;nobr&gt;1/15/2010 11:06 AM&lt;/nobr&gt; Error  &lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td style=&quot;PADDING-RIGHT: 3px&quot;&gt;&lt;/td&gt; &lt;td class=&quot;ms-vb&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 1px&quot;&gt;System  Account&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; Trans failed to start.   &lt;nobr&gt;1/15/2010 11:06 AM&lt;/nobr&gt; Workflow Canceled  &lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td style=&quot;PADDING-RIGHT: 3px&quot;&gt;&lt;/td&gt; &lt;td class=&quot;ms-vb&quot; style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 1px&quot;&gt;System  Account&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; Workflow Trans was canceled by System Account.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I searched through the SharePoint logs over and over again and all I was seeing was unable to load workflow assembly, but I knew it would load since I had other workflows in this library and they all ran no problem.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here is the error message out of the log file, I hope you spot the problem:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;Load Workflow Assembly: System.IO.FileLoadException: Could not load file or assembly &#39;com.XXXX.Sharepoint.Workflows\, Version\=1.0.0.0\, Culture\=neutral\, PublicKeyToken\=$PublicKeyToken$&#39; or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)  File name: &#39;com.XXXX.Sharepoint.Workflows\, Version\=1.0.0.0\, Culture\=neutral\, PublicKeyToken\=$PublicKeyToken$&#39;     at System.Reflection.AssemblyName.nInit(Assembly&amp;amp; assembly, Boolean forIntrospection, Boolean raiseResolveEvent)     at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp;amp; stackMark, Boolean forIntrospection)     at System.Reflection.Assembly.Load(String assemblyString)     at ...&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Well that part I was not seeing was &lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#FF0000;&quot;&gt;PublicKeyToken\=$PublicKeyToken&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:16px;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;It turns out that when I created the feature using the WSPBuilder create SyncSharePointWorkflow option it must have had an error I did not notice and this error caused it not to add the PublicKeyToken to the elements.xml file.  Or maybe it never did and I just forgot to update this line.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#FF0000;&quot;&gt;CodeBesideAssembly&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#3366FF;&quot;&gt;=&quot;com.XXXX.Sharepoint.Workflows, Version=1.0.0.0, Culture=neutral, PublicKeyToken=&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#FF9900;&quot;&gt;$PublicKeyToken$&lt;/span&gt;&lt;/b&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Anyway once I added the correct Public Key, retracted and redeployed the workflow, it ran fine.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Hope this helps someone else save a day!!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/7192536851996585946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/7192536851996585946' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/7192536851996585946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/7192536851996585946'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2010/01/sharepoint-2007-custom-workflow-failed.html' title='SharePoint 2007 Custom workflow failed to start.'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-2288605031696186238</id><published>2009-03-12T11:55:00.003-04:00</published><updated>2009-03-12T11:58:26.071-04:00</updated><title type='text'>Windows Media Center</title><content type='html'>I dont know how may of you out there are using Windows Media Center for your TV viewing needs, but I have to say &lt;a href=&quot;http://www.secondrun.tv/&quot;&gt;http://www.secondrun.tv/&lt;/a&gt; is the best add-on that I have come across yet!&lt;br /&gt;I have completely dropped my Dish Network and almost exclusively use this to watch my favorite shows.</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/2288605031696186238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/2288605031696186238' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/2288605031696186238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/2288605031696186238'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2009/03/windows-media-center.html' title='Windows Media Center'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-4352136001385704859</id><published>2009-02-13T16:31:00.004-05:00</published><updated>2009-02-18T11:48:00.786-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net 2.0"/><category scheme="http://www.blogger.com/atom/ns#" term="Forcibly closed"/><category scheme="http://www.blogger.com/atom/ns#" term="WWF"/><title type='text'>The underlying connection was closed: A connection that was expected to be kept alive was closed by the server</title><content type='html'>Well the bad news is that this worked for some time but then started to not work again.  Looks like i am back to the drawing board.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ok it took me 2 days to track this down but I think I have solved it.&lt;br /&gt;&lt;br /&gt;I have 2 different .net 2.0 libraries in the same application that both access the same third-party Java web service. Oh by the way this worked no problem in .net 1.0&lt;br /&gt;&lt;br /&gt;Well this was throwing an System.Net.WebException &quot;The underlying connection was closed:&quot; randomly.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;InnerException: System.IO.IOException&lt;br /&gt;      Message=&quot;Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.&quot;&lt;br /&gt;      Source=&quot;System&quot;&lt;br /&gt;      StackTrace:&lt;br /&gt;           at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)&lt;br /&gt;           at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)&lt;br /&gt;           at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)&lt;br /&gt;      InnerException: System.Net.Sockets.SocketException&lt;br /&gt;           Message=&quot;An existing connection was forcibly closed by the remote host&quot;&lt;br /&gt;           Source=&quot;System&quot;&lt;br /&gt;           ErrorCode=10054&lt;br /&gt;           NativeErrorCode=10054&lt;br /&gt;           StackTrace:&lt;br /&gt;                at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)&lt;br /&gt;                at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I spent forever searching the net looking for a solution to this, with little to no success.&lt;br /&gt;Well I finally came across this &lt;a href=&quot;http://support.microsoft.com/default.aspx?scid=kb;EN-US;915599&quot;&gt;link&lt;/a&gt;. To resolve this problem you need to disable the keep-alive feature.&lt;br /&gt;&lt;br /&gt;In the     .NET Framework, you need to set the &lt;b&gt;HttpWebRequest.KeepAlive&lt;/b&gt; property to FALSE.&lt;br /&gt;To do this I created a web service reference then modified the generated Reference.cs class and added&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;protected override System.Net.WebRequest  GetWebRequest(Uri uri)&lt;br /&gt;{&lt;br /&gt;           HttpWebRequest webRequest = (HttpWebRequest)base.GetWebRequest(uri);&lt;br /&gt;           webRequest.KeepAlive = false;&lt;br /&gt;           return webRequest;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;now I know this will probably add a little over-head to my application but so what it solved my devastating error :-)</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/4352136001385704859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/4352136001385704859' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/4352136001385704859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/4352136001385704859'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2009/02/underlying-connection-was-closed.html' title='The underlying connection was closed: A connection that was expected to be kept alive was closed by the server'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-8456465932244438474</id><published>2008-12-10T17:03:00.002-05:00</published><updated>2008-12-10T17:06:49.677-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DVR HTPC TV"/><title type='text'>My new HTPC</title><content type='html'>Ok I just created a new HTPC (Home Theater PC) and let me just say how the hell did I live with out this before. I actually was able to drop my Dish Network service since most of what I was watching is offered online.  &lt;br /&gt;When I get a chance I hope to list everything I went thru in creating it.</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/8456465932244438474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/8456465932244438474' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/8456465932244438474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/8456465932244438474'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2008/12/my-new-htpc.html' title='My new HTPC'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-2303107198162993728</id><published>2008-09-09T15:45:00.003-04:00</published><updated>2008-09-09T15:50:11.406-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="exception"/><title type='text'>.net Exception list</title><content type='html'>&lt;a href=&quot;http://www.codinghorror.com/blog/archives/000115.html&quot;&gt;Jeff Atwood&lt;/a&gt; wrote a great little block of code to list all the exceptions in .net.  I just needed the most common ones so I posted them here.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;System.AppDomainUnloadedException&lt;br /&gt;System.ApplicationException&lt;br /&gt;System.ArgumentException&lt;br /&gt;System.ArgumentNullException&lt;br /&gt;System.ArgumentOutOfRangeException&lt;br /&gt;System.ArithmeticException&lt;br /&gt;System.ArrayTypeMismatchException&lt;br /&gt;System.BadImageFormatException&lt;br /&gt;System.CannotUnloadAppDomainException&lt;br /&gt;System.ComponentModel.Design.CheckoutException&lt;br /&gt;System.ComponentModel.Design.Serialization.CodeDomSerializerException&lt;br /&gt;System.ComponentModel.InvalidEnumArgumentException&lt;br /&gt;System.ComponentModel.LicenseException&lt;br /&gt;System.ComponentModel.WarningException&lt;br /&gt;System.ComponentModel.Win32Exception&lt;br /&gt;System.Configuration.ConfigurationException&lt;br /&gt;System.ContextMarshalException&lt;br /&gt;System.Data.ConstraintException&lt;br /&gt;System.Data.DataException&lt;br /&gt;System.Data.DBConcurrencyException&lt;br /&gt;System.Data.DeletedRowInaccessibleException&lt;br /&gt;System.Data.DuplicateNameException&lt;br /&gt;System.Data.EvaluateException&lt;br /&gt;System.Data.ExprException&lt;br /&gt;System.Data.InRowChangingEventException&lt;br /&gt;System.Data.InvalidConstraintException&lt;br /&gt;System.Data.InvalidExpressionException&lt;br /&gt;System.Data.MissingPrimaryKeyException&lt;br /&gt;System.Data.NoNullAllowedException&lt;br /&gt;System.Data.Odbc.OdbcException&lt;br /&gt;System.Data.OleDb.OleDbException&lt;br /&gt;System.Data.ReadOnlyException&lt;br /&gt;System.Data.RowNotInTableException&lt;br /&gt;System.Data.SqlClient._ValueException&lt;br /&gt;System.Data.SqlClient.SqlException&lt;br /&gt;System.Data.SqlTypes.SqlNullValueException&lt;br /&gt;System.Data.SqlTypes.SqlTruncateException&lt;br /&gt;System.Data.SqlTypes.SqlTypeException&lt;br /&gt;System.Data.StrongTypingException&lt;br /&gt;System.Data.SyntaxErrorException&lt;br /&gt;System.Data.TypedDataSetGeneratorException&lt;br /&gt;System.Data.VersionNotFoundException&lt;br /&gt;System.DivideByZeroException&lt;br /&gt;System.DllNotFoundException&lt;br /&gt;System.Drawing.Printing.InvalidPrinterException&lt;br /&gt;System.DuplicateWaitObjectException&lt;br /&gt;System.EntryPointNotFoundException&lt;br /&gt;System.Exception&lt;br /&gt;System.ExecutionEngineException&lt;br /&gt;System.FieldAccessException&lt;br /&gt;System.FormatException&lt;br /&gt;System.IndexOutOfRangeException&lt;br /&gt;System.InvalidCastException&lt;br /&gt;System.InvalidOperationException&lt;br /&gt;System.InvalidProgramException&lt;br /&gt;System.IO.DirectoryNotFoundException&lt;br /&gt;System.IO.EndOfStreamException&lt;br /&gt;System.IO.FileLoadException&lt;br /&gt;System.IO.FileNotFoundException&lt;br /&gt;System.IO.InternalBufferOverflowException&lt;br /&gt;System.IO.IOException&lt;br /&gt;System.IO.IsolatedStorage.IsolatedStorageException&lt;br /&gt;System.IO.PathTooLongException&lt;br /&gt;System.Management.ManagementException&lt;br /&gt;System.MemberAccessException&lt;br /&gt;System.Messaging.MessageQueueException&lt;br /&gt;System.MethodAccessException&lt;br /&gt;System.MissingFieldException&lt;br /&gt;System.MissingMemberException&lt;br /&gt;System.MissingMethodException&lt;br /&gt;System.MulticastNotSupportedException&lt;br /&gt;System.Net.CookieException&lt;br /&gt;System.Net.ProtocolViolationException&lt;br /&gt;System.Net.Sockets.SocketException&lt;br /&gt;System.Net.WebException&lt;br /&gt;System.NotFiniteNumberException&lt;br /&gt;System.NotImplementedException&lt;br /&gt;System.NotSupportedException&lt;br /&gt;System.NullReferenceException&lt;br /&gt;System.ObjectDisposedException&lt;br /&gt;System.OutOfMemoryException&lt;br /&gt;System.OverflowException&lt;br /&gt;System.PlatformNotSupportedException&lt;br /&gt;System.RankException&lt;br /&gt;System.Reflection.AmbiguousMatchException&lt;br /&gt;System.Reflection.CustomAttributeFormatException&lt;br /&gt;System.Reflection.InvalidFilterCriteriaException&lt;br /&gt;System.Reflection.ReflectionTypeLoadException&lt;br /&gt;System.Reflection.TargetException&lt;br /&gt;System.Reflection.TargetInvocationException&lt;br /&gt;System.Reflection.TargetParameterCountException&lt;br /&gt;System.Resources.MissingManifestResourceException&lt;br /&gt;System.Runtime.InteropServices.COMException&lt;br /&gt;System.Runtime.InteropServices.ExternalException&lt;br /&gt;System.Runtime.InteropServices.InvalidComObjectException&lt;br /&gt;System.Runtime.InteropServices.InvalidOleVariantTypeException&lt;br /&gt;System.Runtime.InteropServices.MarshalDirectiveException&lt;br /&gt;System.Runtime.InteropServices.SafeArrayRankMismatchException&lt;br /&gt;System.Runtime.InteropServices.SafeArrayTypeMismatchException&lt;br /&gt;System.Runtime.InteropServices.SEHException&lt;br /&gt;System.Runtime.Remoting.MetadataServices.SUDSGeneratorException&lt;br /&gt;System.Runtime.Remoting.MetadataServices.SUDSParserException&lt;br /&gt;System.Runtime.Remoting.RemotingException&lt;br /&gt;System.Runtime.Remoting.RemotingTimeoutException&lt;br /&gt;System.Runtime.Remoting.ServerException&lt;br /&gt;System.Runtime.Serialization.SerializationException&lt;br /&gt;System.Security.Cryptography.CryptographicException&lt;br /&gt;System.Security.Cryptography.CryptographicUnexpectedOperationException&lt;br /&gt;System.Security.Policy.PolicyException&lt;br /&gt;System.Security.SecurityException&lt;br /&gt;System.Security.VerificationException&lt;br /&gt;System.Security.XmlSyntaxException&lt;br /&gt;System.ServiceProcess.TimeoutException&lt;br /&gt;System.StackOverflowException&lt;br /&gt;System.SystemException&lt;br /&gt;System.Threading.SynchronizationLockException&lt;br /&gt;System.Threading.ThreadAbortException&lt;br /&gt;System.Threading.ThreadInterruptedException&lt;br /&gt;System.Threading.ThreadStateException&lt;br /&gt;System.Threading.ThreadStopException&lt;br /&gt;System.TypeInitializationException&lt;br /&gt;System.TypeLoadException&lt;br /&gt;System.TypeUnloadedException&lt;br /&gt;System.UnauthorizedAccessException&lt;br /&gt;System.UriFormatException&lt;br /&gt;System.Web.HttpApplication+CancelModuleException&lt;br /&gt;System.Web.HttpCompileException&lt;br /&gt;System.Web.HttpException&lt;br /&gt;System.Web.HttpParseException&lt;br /&gt;System.Web.HttpRequestValidationException&lt;br /&gt;System.Web.HttpUnhandledException&lt;br /&gt;System.Web.Services.Discovery.InvalidContentTypeException&lt;br /&gt;System.Web.Services.Discovery.InvalidDocumentContentsException&lt;br /&gt;System.Web.Services.Protocols.SoapException&lt;br /&gt;System.Web.Services.Protocols.SoapHeaderException&lt;br /&gt;System.Windows.Forms.AxHost+InvalidActiveXStateException&lt;br /&gt;System.Xml.Schema.XmlSchemaException&lt;br /&gt;System.Xml.XmlException&lt;br /&gt;System.Xml.XPath.XPathException&lt;br /&gt;System.Xml.Xsl.XsltCompileException&lt;br /&gt;System.Xml.Xsl.XsltException&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/2303107198162993728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/2303107198162993728' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/2303107198162993728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/2303107198162993728'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2008/09/net-exception-list.html' title='.net Exception list'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-99529116877486382</id><published>2008-07-09T13:54:00.004-04:00</published><updated>2008-07-09T15:18:24.750-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="footnote"/><category scheme="http://www.blogger.com/atom/ns#" term="function"/><category scheme="http://www.blogger.com/atom/ns#" term="xsl"/><title type='text'>Xsl function to testing if text only contains footnote marks</title><content type='html'>&lt;span style=&quot;font-size:100%;&quot;&gt;The situation come up were I had a table of data and in on of the columns it had just footnote marks.  Well I had to merge these footnote marks over to the previous column, but in order to do this I needed to know if the only value in the cell were marks.  So I realize there are many ways to do this but I thought this was a cool way.   It reads in an external xml file with all the footnote refs I want to search for the ref value is a regex.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 102, 255);font-size:78%;&quot; &gt;&amp;lt;footnotes&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 102, 255);;font-size:78%&quot;&gt;  &amp;lt;footnote ref=&quot;\*&quot;/&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 102, 255);font-size:78%;&quot; &gt;  &amp;lt;footnote ref=&quot;\+&quot;/&gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 255);font-size:78%;&quot; &gt;  &amp;lt;footnote ref=&quot;†&quot;/&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 255);font-size:78%;&quot; &gt;  &amp;lt;footnote ref=&quot;\([a-z]\)&quot;/&gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(51, 102, 255);font-size:78%;&quot; &gt;  &amp;lt;footnote ref=&quot;\([1-9]\)&quot;/&gt;&lt;br /&gt;&amp;lt;/footnotes&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;I then concat the refs together with a | and do a replace on the string value.  If nothing is left then it is a footnote ref.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;&amp;lt;!-- Reads all possible footnote ref marks from a footnotes.xml file and if pText only contains footnote marks returns true otherwise false --&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;&amp;lt;xsl:function name=&quot;txt:IsFootnoteRef&quot; as=&quot;xs:boolean&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;  &amp;lt;xsl:param name=&quot;pText&quot; as=&quot;xs:string&quot;/&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;  &amp;lt;xsl:variable name=&quot;vFootnotes&quot; select=&quot; document(&#39;./footnotes.xml&#39;)/footnotes/footnote&quot;/&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;  &amp;lt;xsl:choose&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;     &amp;lt;xsl:when test=&quot;not($vFootnotes)&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;       &amp;lt;xsl:value-of select=&quot;false()&quot;/&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;     &amp;lt;/xsl:when&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;     &amp;lt;xsl:when test=&quot;not($pText)&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;        &amp;lt;xsl:value-of select=&quot;false()&quot;/&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;     &amp;lt;/xsl:when&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;     &amp;lt;xsl:when test=&quot;normalize-space($pText) = &#39;&#39; &quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;        &amp;lt;xsl:value-of select=&quot;false()&quot;/&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;     &amp;lt;/xsl:when&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;     &amp;lt;xsl:otherwise&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;        &amp;lt;xsl:variable name=&quot;vFootnoteRef&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;           &amp;lt;xsl:value-of select=&quot;$vFootnotes/@ref&quot; separator=&quot;|&quot;/&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;        &amp;lt;/xsl:variable&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;  &amp;lt;xsl:choose&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;           &amp;lt;xsl:when test=&quot; normalize-space(replace($pText, $vFootnoteRef , &#39;&#39; , &#39;i&#39;)) = &#39;&#39; &quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;              &amp;lt;xsl:value-of select=&quot;true()&quot;/&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;           &amp;lt;/xsl:when&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;           &amp;lt;xsl:otherwise&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;              &amp;lt;xsl:value-of select=&quot;false()&quot;/&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;           &amp;lt;/xsl:otherwise&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;        &amp;lt;/xsl:choose&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;     &amp;lt;/xsl:otherwise&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;  &amp;lt;/xsl:choose&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 204, 255);&quot;&gt;&amp;lt;/xsl:function&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/99529116877486382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/99529116877486382' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/99529116877486382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/99529116877486382'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2008/07/xsl-function-to-testing-if-text-only.html' title='Xsl function to testing if text only contains footnote marks'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-530186016643170842</id><published>2008-03-04T13:38:00.004-05:00</published><updated>2008-03-04T14:41:27.742-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="attributes"/><category scheme="http://www.blogger.com/atom/ns#" term="compare"/><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><category scheme="http://www.blogger.com/atom/ns#" term="xsl"/><title type='text'>Comparing XML attributes with parents attributes</title><content type='html'>I had a need to test if all/most of the attributes of a child node were equal to its parent and strip out the child node if true.&lt;br /&gt;&lt;p&gt;My XML structure was basically:&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;PARAGRAPH&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;style&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;=&#39;heading1&#39; &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;emphasis&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;=&#39;true&#39; &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;font&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;=&#39;arial&#39; &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;number&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;=&#39;30&#39; indent=’10’&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;SPECIALTEXT &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;style&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;=&#39;heading1&#39; &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;emphasis&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;=&#39;true&#39; &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;font&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;=&#39;arial&#39; &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;number&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;=&#39;31&#39;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;Helloworld&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;/SPECIALTEXT&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;/PARAGRAPH&amp;gt;&lt;/span&gt;&lt;p&gt; &lt;/p&gt;Output needed to be:&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;PARAGRAPH&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;style&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;=&#39;heading1&#39; &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;emphasis&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;=&#39;true&#39; &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;font&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;=&#39;arial&#39; &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;number&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;=&#39;30&#39;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;Helloworld&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;/PARAGRAPH&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;Now this only works on the first level after the PARAGRAPH but that’s all I needed, and it could be changed to do this recursively I guess.  Basically I am matching on any paragraph that contains a child element SPECIALTEXT with the same style attribute and calling the template CompareKeyAttributes.&lt;br /&gt;PARAGRAPH has more attributes than SPECIALTEXT in most cases so I compare only the ones that exist in SPECIALTEXT.&lt;br /&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;CompareKeyAttributes will return a string of all the&lt;br /&gt;attributes that don’t match so then I just check if  I care that the attribute&lt;br /&gt;is different and output accordingly.&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);&quot;&gt; &lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:template&lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt; match&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;PARAGRAPH[SPECIALTEXT[@Style=./@Style] ] &quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;;font-size:78%;color:black;&quot;  &gt;    &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:copy&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:apply-templates&lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt; select&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;@*&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:for-each&lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt; select&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot; child::*&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:variable&lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt; name&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;RESULT&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:call-template&lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt; name&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;CompareKeyAttributes&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:with-param&lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt; name&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;PARA&quot; &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;select&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;..&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:with-param&lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt; name&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;SPEC&quot; &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;select&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;.&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;/xsl:call-template&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;/xsl:variable&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:choose&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:when&lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;test&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&quot;$RESULT=&#39;number&#39; &lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:apply-templates&lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt; select&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;child::node()&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;/xsl:when&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:otherwise&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:copy&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:apply-templates&lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt; select&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;@*|node()&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;/xsl:copy&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;/xsl:otherwise&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;/xsl:choose&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;/xsl:for-each&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;/xsl:copy&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;/xsl:template&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt; &lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:template&lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt; name&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;CompareKeyAttributes&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:param &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;name&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;PARA&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:param &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;name&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;SPEC&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:for-each&lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt; select&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;$SPEC/@*&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:variable&lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt; name&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;SPEC_ATT&quot; &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;select&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;name()&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:variable&lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt; name&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;PARA_ATT&quot; &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;select&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;$PARA/@*[name()= $SPEC_ATT]&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:choose&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:when &lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt;test&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;$PARA_ATT != .&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;xsl:value-of&lt;/span&gt;&lt;span style=&quot;color: rgb(245, 132, 76);font-size:78%;&quot; &gt; select&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 128, 64);font-size:78%;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:78%;&quot; &gt;&quot;name()&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 150);font-size:78%;&quot; &gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;/xsl:when&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;/xsl:choose&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;/xsl:for-each&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style=&quot;&quot;&gt;&lt;span style=&quot;color: rgb(0, 100, 200);font-size:78%;&quot; &gt;&amp;lt;/xsl:template&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;Let me know if you find this useful or have anyway to make it better.  Enjoy</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/530186016643170842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/530186016643170842' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/530186016643170842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/530186016643170842'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2008/03/comparing-xml-attributes-with-parents.html' title='Comparing XML attributes with parents attributes'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-3347057624627153310</id><published>2008-02-19T12:42:00.003-05:00</published><updated>2008-02-19T12:46:24.979-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MOSS upgrade SP1"/><title type='text'>Upgrading MOSS2007 to SP1</title><content type='html'>Jason had some good references for upgrading MOSS07 to SP1.  I have tried the upgrade on my development server with out any issues, but that is a single server env.  I will try the upgrade next week on QA servers but anyway here is the link &lt;a href=&quot;http://blogs.informationhub.com/jnadrowski/archive/2008/01/11/24045.aspx&quot;&gt;http://blogs.informationhub.com/jnadrowski/archive/2008/01/11/24045.aspx&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/3347057624627153310/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/3347057624627153310' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/3347057624627153310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/3347057624627153310'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2008/02/upgrading-moss2007-to-sp1.html' title='Upgrading MOSS2007 to SP1'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-4783726439204761643</id><published>2008-01-02T10:26:00.000-05:00</published><updated>2008-01-02T12:55:50.968-05:00</updated><title type='text'>Changing Virtual Hard Drive from IDE to SCSI</title><content type='html'>&lt;p&gt;Well I created  virtual server with a single Virtual IDE hard drive (VHD)  that ran out of space so I decided I was going to find a way to enlarge it and also switch to SCSI, because I read it was better performing.  Well I found alot of post about expanding the hard drive and I will post the details of that in another post.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here I want to post the steps to switching to a SCSI drive.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Open the Virtual Server Web Administration site and select configure your specific Virtual Machine  &lt;/li&gt;&lt;li&gt;In the Virtual Machine  Configuration windows, select Add SCSI Adapter ID 7  &lt;/li&gt;&lt;li&gt;Make sure you leave your boot disk as IDE disk  &lt;/li&gt;&lt;li&gt;Start your virtual machine  &lt;/li&gt;&lt;li&gt;You should see the following when the adapter is registered &quot;Adaptec AIC-7870 PCI SCSI Adapter&quot;.  The virtual machine will now be able to boot with SCSI but this SCSI driver is very slow. &lt;/li&gt;&lt;li&gt;Right-click on the Adaptec driver and select Update Driver  &lt;/li&gt;&lt;li&gt;Choose the Install from a list or specific location and Have Disk options  &lt;/li&gt;&lt;li&gt;Browse to the C:\Program Files\Virtual Machine Additions folder and click OK  &lt;/li&gt;&lt;li&gt;The Microsoft Virtual Machine PCI SCSI Controller driver should now be installed  &lt;/li&gt;&lt;li&gt;Shutdown your virtual machine&lt;/li&gt;&lt;li&gt;In the Virtual Server Virtual Machine configuration select hard disks in the configuration section  &lt;/li&gt;&lt;li&gt;Change your boot hard disk to the SCSI ID 0  &lt;/li&gt;&lt;li&gt;Click OK  &lt;/li&gt;&lt;li&gt;Start the virtual machine&lt;/li&gt;&lt;/ol&gt;good luck and remember backups..</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/4783726439204761643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/4783726439204761643' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/4783726439204761643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/4783726439204761643'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2008/01/changing-virtual-hard-drive-from-ide-to.html' title='Changing Virtual Hard Drive from IDE to SCSI'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-2357380039407544535</id><published>2007-10-30T10:13:00.000-04:00</published><updated>2007-10-30T10:58:07.394-04:00</updated><title type='text'>The Local Security Authority cannot be contacted</title><content type='html'>Where to start... I have setup a MOSS 2007 site running on Windows Server 2003 R2 with sp2 and all current updates. The site is setup to allow anonymous access as well as integrated Windows login.  Everything seems fine, no errors on the server all is running smoothly as long as you enter the correct password.  If you miss type your password, instead of prompting you 3 time like IIS should, it immediately displays &quot;The Local Security Authority cannot be contacted&quot;. The only thing you can do from here is close your browser and start over again.  I have been trying to track down this problem for weeks now with little to no luck, I even wiped out the server and reinstalled all components to no avail.&lt;br /&gt;&lt;br /&gt;the web server does register the error:&lt;br /&gt;&lt;br /&gt;Event Type:    Failure Audit&lt;br /&gt;Event Source:    Security&lt;br /&gt;Event Category:    Logon/Logoff&lt;br /&gt;Event ID:    537&lt;br /&gt;Date:        10/30/2007&lt;br /&gt;Time:        10:53:03 AM&lt;br /&gt;User:        NT AUTHORITY\SYSTEM&lt;br /&gt;Computer:    XXXX-XXX&lt;br /&gt;Description:&lt;br /&gt;Logon Failure:&lt;br /&gt;     Reason:        An error occurred during logon&lt;br /&gt;     User Name:    XXXX@XXXX.XXX&lt;br /&gt;     Domain:       &lt;br /&gt;     Logon Type:    3&lt;br /&gt;     Logon Process:    NtLmSsp&lt;br /&gt;     Authentication Package:    NTLM&lt;br /&gt;     Workstation Name:    TELESTO&lt;br /&gt;     Status code:    0xC0000225&lt;br /&gt;     Substatus code:    0x0&lt;br /&gt;     Caller User Name:    -&lt;br /&gt;     Caller Domain:    -&lt;br /&gt;     Caller Logon ID:    -&lt;br /&gt;     Caller Process ID:    -&lt;br /&gt;     Transited Services:    -&lt;br /&gt;     Source Network Address:    192.###.##.###&lt;br /&gt;     Source Port:    2705&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.&lt;br /&gt;&lt;br /&gt;While I am looking into this more if anyone has any ideas PLEASE let me know.&lt;br /&gt;&lt;br /&gt;One more tidbit it does not have the same problem on all computers,  some workstations seem to work as expected.</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/2357380039407544535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/2357380039407544535' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/2357380039407544535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/2357380039407544535'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2007/10/local-security-authority-cannot-be.html' title='The Local Security Authority cannot be contacted'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-954411204466428878</id><published>2007-10-03T14:02:00.000-04:00</published><updated>2007-10-03T14:15:09.270-04:00</updated><title type='text'>Recursively adding files to Visual Source Safe</title><content type='html'>Ok first off, I have to say I hate Visual Source Safe (VSS)!&lt;br /&gt;Actually hate isn&#39;t right I &lt;span style=&quot;font-weight: bold;&quot;&gt;despise&lt;/span&gt; it, I &lt;span style=&quot;font-weight: bold;&quot;&gt;loath&lt;/span&gt; it, it is the &lt;span style=&quot;font-weight: bold;&quot;&gt;worst&lt;/span&gt; source control software I have ever used! Well I feel better getting that of my chest.&lt;br /&gt;&lt;br /&gt;Anyway back to the reason for this post.  If you need to recursively add files and folders to VSS you simple drag the folder from Windows Explorer and drop in in the correct location in your VSS project.&lt;br /&gt;You might think there is a menu option to do this but there isn&#39;t.  You may also think well if I hit insert I will be asked to recursively add, and you would be wrong.  Then you may think Let me look in the doc, maybe it is a command line option, good luck.&lt;br /&gt;&lt;br /&gt;Anyway I hope I am not the only id10t to forget how to do this and had to go hunting for it.</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/954411204466428878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/954411204466428878' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/954411204466428878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/954411204466428878'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2007/10/recursively-adding-files-to-visual.html' title='Recursively adding files to Visual Source Safe'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-6354347477719360883</id><published>2007-09-07T10:36:00.000-04:00</published><updated>2007-09-07T14:32:40.812-04:00</updated><title type='text'>Redirecting DOS stdout stderr</title><content type='html'>&lt;p&gt;Every time I need to redirect DOS output I have to go look it up.  There is only so much space in my brain and unless I want to forget how to speak something had to go. Well I got tired of searching thru different sites to get what I wanted, so the last time I came across this info (this happens to be from &lt;a href=&quot;http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true&quot; &gt;Microsoft&lt;/a&gt;) I posted it here.&lt;/p&gt;&lt;br /&gt;&lt;h2&gt;Using command redirection operators&lt;/h2&gt;&lt;p&gt;The following table lists operators that you can use to redirect command input and output streams.&lt;/p&gt; &lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt; &lt;thead&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td&gt; Redirection operator&lt;/td&gt; &lt;td style=&quot;border-right: solid 1px #CCCCCC&quot;&gt; Description&lt;/td&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr valign=&quot;top&quot; class=&quot;record&quot;&gt; &lt;td&gt; &lt;p&gt; &lt;b&gt;&amp;gt;&lt;/b&gt;&lt;/p&gt; &lt;/td&gt; &lt;td style=&quot;border-right: solid 1px #CCCCCC&quot;&gt; &lt;p&gt;Writes the command output to a file or a device, such as a printer, instead of the Command Prompt window.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td&gt;&lt;p&gt;&lt;b&gt;&amp;lt;&lt;/b&gt;&lt;/p&gt; &lt;/td&gt; &lt;td style=&quot;border-right: solid 1px #CCCCCC&quot;&gt; &lt;p&gt;Reads the command input from a file, instead of reading input from the keyboard.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td&gt; &lt;p class=&quot;lastInCell&quot;&gt; &lt;b&gt;&amp;gt;&amp;gt;&lt;/b&gt;&lt;/p&gt; &lt;/td&gt; &lt;td style=&quot;border-right: solid 1px #CCCCCC&quot;&gt; &lt;p class=&quot;lastInCell&quot;&gt; Appends the command output to the end of a file without deleting the information that is already in the file.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td&gt; &lt;p&gt;&lt;b&gt;&amp;gt;&amp;amp;&lt;/b&gt;&lt;/p&gt; &lt;/td&gt; &lt;td style=&quot;border-right: solid 1px #CCCCCC&quot;&gt; &lt;p&gt;Writes the output from one handle to the input of another handle.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr valign=&quot;top&quot; class=&quot;record&quot;&gt; &lt;td&gt; &lt;p&gt; &lt;b&gt;&amp;lt;&amp;amp;&lt;/b&gt;&lt;/p&gt; &lt;/td&gt; &lt;td style=&quot;border-right: solid 1px #CCCCCC&quot;&gt; &lt;p&gt; Reads the input from one handle and writes it to the output of another handle.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr valign=&quot;top&quot; class=&quot;evenRecord&quot;&gt; &lt;td&gt; &lt;p class=&quot;lastInCell&quot;&gt; &lt;b&gt;|&lt;/b&gt;&lt;/p&gt; &lt;/td&gt; &lt;td style=&quot;border-right: solid 1px #CCCCCC&quot;&gt; &lt;p class=&quot;lastInCell&quot;&gt; Reads the output from one command and writes it to the input of another command. Also known as a pipe. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;&lt;p&gt;By default, you send the command input (that is, the STDIN handle) from your keyboard to Cmd.exe, and then Cmd.exe sends the command output (that is, the STDOUT handle) to the Command Prompt window.&lt;/p&gt; &lt;p&gt; The following table lists the available handles.&lt;/p&gt; &lt;table cellspacing=&quot;0&quot; class=&quot;dataTable&quot; id=&quot;EMC&quot; cellpadding=&quot;0&quot;&gt; &lt;thead&gt; &lt;tr valign=&quot;top&quot; class=&quot;stdHeader&quot;&gt; &lt;td id=&quot;colEOC&quot;&gt; Handle&lt;/td&gt; &lt;td id=&quot;colERC&quot;&gt; Numeric equivalent of handle&lt;/td&gt; &lt;td id=&quot;colEUC&quot; style=&quot;border-right: solid 1px #CCCCCC&quot;&gt; Description&lt;/td&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr valign=&quot;top&quot; class=&quot;record&quot;&gt; &lt;td&gt; &lt;p class=&quot;lastInCell&quot;&gt; STDIN&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p class=&quot;lastInCell&quot;&gt; 0&lt;/p&gt; &lt;/td&gt; &lt;td style=&quot;border-right: solid 1px #CCCCCC&quot;&gt; &lt;p class=&quot;lastInCell&quot;&gt; Keyboard input&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr valign=&quot;top&quot; class=&quot;evenRecord&quot;&gt; &lt;td&gt; &lt;p class=&quot;lastInCell&quot;&gt; STDOUT&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p class=&quot;lastInCell&quot;&gt; 1&lt;/p&gt; &lt;/td&gt; &lt;td style=&quot;border-right: solid 1px #CCCCCC&quot;&gt; &lt;p class=&quot;lastInCell&quot;&gt; Output to the Command Prompt window&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr valign=&quot;top&quot; class=&quot;record&quot;&gt; &lt;td&gt; &lt;p class=&quot;lastInCell&quot;&gt; STDERR&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p&gt; 2&lt;/p&gt; &lt;/td&gt; &lt;td style=&quot;border-right: solid 1px #CCCCCC&quot;&gt; &lt;p&gt; Error output to the Command Prompt window&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td&gt; &lt;p class=&quot;lastInCell&quot;&gt; UNDEFINED&lt;/p&gt; &lt;/td&gt; &lt;td&gt; &lt;p class=&quot;lastInCell&quot;&gt; 3-9&lt;/p&gt; &lt;/td&gt; &lt;td style=&quot;border-right: solid 1px #CCCCCC&quot;&gt; &lt;p class=&quot;lastInCell&quot;&gt; These handles are defined individually by the application and are specific to each tool.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;&lt;p&gt;The numbers zero through nine (that is, 0-9) represent the first 10 handles. You can use Cmd.exe to run a program and redirect any of the first 10 handles for the program. To specify which handle you want to use, type the number of the handle before the redirection operator. If you do not define a handle, the default &amp;lt; redirection input operator is zero (0) and the default &amp;gt; redirection output operator is one (1). After you type the &amp;lt; or &amp;gt; operator, you must specify where you want to read or write the data. You can specify a file name or another existing handle.&lt;/p&gt; &lt;p&gt; To specify redirection to existing handles, use the ampersand (&amp;amp;) character followed by the handle number that you want to redirect (that is, &lt;b&gt;&amp;amp;&lt;/b&gt;&lt;i&gt;handle#&lt;/i&gt;). For example, the following command redirects handle 2 (that is, STDERR) into handle 1 (that is, STDOUT):&lt;/p&gt; &lt;p&gt; &lt;b&gt;1&amp;lt;&amp;amp;2&lt;/b&gt;&lt;/p&gt; &lt;h2&gt; Duplicating handles &lt;/h2&gt; &lt;p&gt; The &amp;amp; redirection operator duplicates output or input from one specified handle to another specified handle. For example, to send &lt;b&gt;dir&lt;/b&gt; output to File.txt and send the error output to File.txt, type:&lt;/p&gt; &lt;p&gt; &lt;b&gt;dir&amp;gt;c:\file.txt 2&amp;gt;&amp;amp;1&lt;/b&gt;&lt;/p&gt; &lt;p&gt; When you duplicate a handle, you duplicate all characteristics of the original occurrence of the handle. For example, if a handle has write-only access, all duplicates of that handle have write-only access. You cannot duplicate a handle with read-only access into a handle with write-only access.&lt;/p&gt; &lt;h2&gt; Redirecting command input (&amp;lt;)&lt;/h2&gt; &lt;p&gt; To redirect command input from the keyboard to a file or device, use the &amp;lt; operator. For example, to get the command input for the &lt;b&gt;sort&lt;/b&gt; command from File.txt: &lt;/p&gt; &lt;p&gt; &lt;b&gt;sort&amp;lt;file.txt &lt;/b&gt; &lt;/p&gt; &lt;p&gt; The contents of File.txt appear in the Command Prompt window as an alphabetized list.&lt;/p&gt; &lt;p&gt; The &amp;lt; operator opens the specified file name with read-only access. As a result, you cannot write to the file when you use this operator. For example, if you start a program with &amp;lt;&amp;amp;2, all attempts to read handle 0 fail because handle 2 is initially opened with write-only access.&lt;/p&gt;&lt;h2&gt; Redirecting command output (&amp;gt;)&lt;/h2&gt; &lt;p&gt; Almost all commands send output to your Command Prompt window. Even commands that send output to a drive or printer display messages and prompts in the Command Prompt window. &lt;/p&gt; &lt;p&gt; To redirect command output from the Command Prompt window to a file or device, use the &amp;gt; operator. You can use this operator with most commands. For example, to redirect &lt;b&gt;dir&lt;/b&gt; output to Dirlist.txt: &lt;/p&gt; &lt;p&gt; &lt;b&gt;dir&amp;gt;dirlist.txt &lt;/b&gt; &lt;/p&gt; &lt;p&gt; If Dirlist.txt does not exist, Cmd.exe creates it. If Dirlist.txt exists, Cmd.exe replaces the information in the file with the output from the &lt;b&gt;dir&lt;/b&gt; command. &lt;/p&gt; &lt;p&gt; To run the &lt;b&gt;netsh routing dump&lt;/b&gt; command and then send the command output to Route.cfg, type:&lt;/p&gt; &lt;p&gt; &lt;b&gt;netsh routing dump&lt;/b&gt;&amp;gt;&lt;b&gt;c:\route.cfg&lt;/b&gt;&lt;/p&gt; &lt;p&gt; The &amp;gt; operator opens the specified file with write-only access. As a result, you cannot read the file when you use this operator. For example, if you start a program with redirection &amp;gt;&amp;amp;0, all attempts to write handle 1 fail because handle 0 is initially opened with read-only access.&lt;/p&gt; &lt;h3&gt; &lt;/h3&gt; &lt;p&gt; &lt;b&gt;Note&lt;/b&gt;&lt;/p&gt; &lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&gt; &lt;tr&gt; &lt;td class=&quot;listBullet&quot; valign=&quot;top&quot;&gt; &amp;#8226;&lt;/td&gt; &lt;td class=&quot;listItem&quot;&gt; &lt;p&gt; One is the default handle for the &amp;gt; redirection output operator. &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;h2&gt; Using the &amp;lt;&amp;amp; operator to redirect input and duplicate&lt;/h2&gt; &lt;p&gt; To use the redirection input operator &amp;lt;&amp;amp;, the file you specify must already exist. If the input file exists, Cmd.exe opens it as read-only and sends the characters contained in the file as input to the command as if they were input from the keyboard. If you specify a handle, Cmd.exe duplicates the handle you specify onto the existing handle in the system.&lt;/p&gt; &lt;p&gt; For example, to open File.txt as input read to handle 0 (that is, STDIN), type:&lt;/p&gt; &lt;p&gt; &lt;b&gt;&amp;lt;&lt;/b&gt;&lt;b&gt;file.txt&lt;/b&gt;&lt;/p&gt; &lt;p&gt; To open File.txt, sort the contents and then send the output to the Command Prompt window (that is, STDOUT), type:&lt;/p&gt; &lt;p&gt; &lt;b&gt;sort&amp;lt;&lt;/b&gt;&lt;b&gt;file.txt&lt;/b&gt; &lt;/p&gt; &lt;p&gt; To find File.txt, and then redirect handle 1 (that is, STDOUT) and handle 2 (that is, STDERR) to the Search.txt, type:&lt;/p&gt; &lt;p&gt; &lt;b&gt;findfile file.txt&amp;gt;search.txt 2&amp;lt;&amp;amp;1&lt;/b&gt;&lt;/p&gt; &lt;p&gt; To duplicate a user-defined handle 3 as input read to handle 0 (that is, STDIN), type:&lt;/p&gt; &lt;p&gt; &lt;b&gt;&amp;lt;&amp;amp;3&lt;/b&gt;&lt;/p&gt; &lt;h2&gt; Using the &amp;gt;&amp;amp; operator to redirect output and duplicate&lt;/h2&gt; &lt;p&gt; If you redirect output to a file and you specify an existing file name, Cmd.exe opens the file as write-only and overwrites the file&#39;s contents. If you specify a handle, Cmd.exe duplicates the file onto the existing handle.&lt;/p&gt; &lt;p&gt; To duplicate a user-defined handle 3 into handle 1, type:&lt;/p&gt; &lt;p&gt; &lt;b&gt;&amp;gt;&amp;amp;3&lt;/b&gt;&lt;/p&gt; &lt;p&gt; To redirect all of the output, including handle 2 (that is, STDERR), from the &lt;b&gt;ipconfig&lt;/b&gt; command to handle 1 (that is, STDOUT), and then redirect the ouput to Output.log, type:&lt;/p&gt; &lt;p&gt; &lt;b&gt;ipconfig.exe&amp;gt;&amp;gt;output.log 2&amp;gt;&amp;amp;1&lt;/b&gt;&lt;/p&gt; &lt;h2&gt; Using the &amp;gt;&amp;gt; redirection operator to append output&lt;/h2&gt; &lt;p&gt; To add the output from a command to the end of a file without losing any of the information already in the file, use two consecutive greater than signs (that is, &amp;gt;&amp;gt;). For example, the following command appends the directory list produced by the &lt;b&gt;dir&lt;/b&gt; command to the Dirlist.txt file: &lt;/p&gt; &lt;p&gt; &lt;b&gt;dir&amp;gt;&amp;gt;dirlist.txt &lt;/b&gt; &lt;/p&gt; &lt;p&gt; To append the output of the &lt;b&gt;netstat&lt;/b&gt; command to the end of Tcpinfo.txt, type:&lt;/p&gt; &lt;p&gt; &lt;b&gt;netstat&amp;gt;&amp;gt;tcpinfo.txt&lt;/b&gt;&lt;/p&gt; &lt;h2&gt; Using the pipe operator (|) &lt;/h2&gt; &lt;p&gt; The pipe operator (|) takes the output (by default, STDOUT) of one command and directs it into the input (by default, STDIN) of another command. For example, the following command sorts a directory:&lt;/p&gt; &lt;p&gt; &lt;b&gt;dir | sort&lt;/b&gt;&lt;/p&gt; &lt;p&gt; In this example, both commands start simultaneously, but then the &lt;b&gt;sort&lt;/b&gt; command pauses until it receives the &lt;b&gt;dir&lt;/b&gt; command&#39;s output. The &lt;b&gt;sort&lt;/b&gt; command uses the &lt;b&gt;dir&lt;/b&gt; command&#39;s output as its input, and then sends its output to handle 1 (that is, STDOUT).&lt;/p&gt; &lt;h2&gt; Combining commands with redirection operators&lt;/h2&gt; &lt;p&gt; You can create custom commands by combining filter commands with other commands and file names. For example, you can use the following command to store the names of files that contain the string &quot;LOG&quot;: &lt;/p&gt; &lt;p&gt; &lt;b&gt;dir /b | find &quot;LOG&quot; &amp;gt; loglist.txt &lt;/b&gt; &lt;/p&gt; &lt;p&gt; The &lt;b&gt;dir&lt;/b&gt; command&#39;s output is sent through the &lt;b&gt;find&lt;/b&gt; filter command. File names that contain the string &quot;LOG&quot; are stored as a list of file names (for example, NetshConfig.log, Logdat.svd, and Mylog.bat) in the Loglist.txt file. &lt;/p&gt; &lt;p&gt; To use more than one filter in the same command, separate the filters with a pipe (|). For example, the following command searches every directory on drive C:, finds the file names that include the string &quot;Log&quot;, and then displays them in one Command Prompt window at a time:&lt;/p&gt; &lt;p&gt; &lt;b&gt;dir c:\ /s /b | find &quot;LOG&quot; | more &lt;/b&gt; &lt;/p&gt; &lt;p&gt; By using a pipe (|), you direct Cmd.exe to send the &lt;b&gt;dir&lt;/b&gt; command output through the &lt;b&gt;find&lt;/b&gt; filter command. The &lt;b&gt;find &lt;/b&gt;command selects only file names that contain the string &quot;LOG.&quot; The &lt;b&gt;more &lt;/b&gt;command displays the file names that are selected by the &lt;b&gt;find &lt;/b&gt;command, one Command Prompt window at a time. For more information about filter commands, see &lt;a href=&quot;/resources/documentation/windows/xp/all/proddocs/en-us/filters.mspx&quot;&gt;Using filters&lt;/a&gt;&lt;/p&gt; &lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/6354347477719360883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/6354347477719360883' title='27 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/6354347477719360883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/6354347477719360883'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2007/09/every-time-i-need-to-redirect-dos.html' title='Redirecting DOS stdout stderr'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>27</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1028236585843827010.post-8688129567081679800</id><published>2007-08-22T13:41:00.000-04:00</published><updated>2007-08-22T14:07:01.721-04:00</updated><title type='text'>Upgrading GuidanceAutomationExtensions and GuidanceAutomationToolkit</title><content type='html'>Well silly me I went and checked if there was and update to the GuidanceAutomationExtensions and GuidanceAutomationToolkit and low and behold there was. &lt;br /&gt;So I downloaded the new installs and went about the task of installing the new versions.  Well they still don&#39;t have an upgrade path in the installation program so I had to go and uninstall the old products.   I had the &quot;Web Service Software Factory - December 2006 (refresh)&quot; installed as well so I started there.   As I expected this uninstall did not go well. &lt;br /&gt;After trying multiple time to uninstall (with reboots and everything else I could think of) I accidentally installed the &quot;Web Client Software Factory - January 2007&quot;.  Well to my surprise the Web Service Factory now uninstalled.  Well I assumed that was the hard part, and boy was I wrong.  Next after uninstalling the accidental install of &quot;Web Client Factory&quot; I tried uninstalling &quot;Enterprise Library April 2007&quot;.  This went as good as the Web Service Factory.  So I thought maybe something in my environment got corrupted and i repaired the GuidanceAutomationExtensions, Toolkit and Enterprise Library.  Still no joy. &lt;br /&gt;After doing a lot of googling I came across &lt;a href=&quot;http://savij.com/2007/05/24/uninstalling-guidance-automation-extentions/&quot;&gt;Savij&lt;/a&gt;  blog.  His/Her problem wasn&#39;t the same as mine but the solution worked.&lt;br /&gt;I tracked down the file RecipeFramework.xml in Documents and Settings\All Users\Application Data\Microsoft\Recipe Framework folder.  I removed&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;GuidancePackage Name=&quot;StrongNamingGuidancePackage&quot; Version=&quot;1.0&quot; Caption=&quot;Strong Naming Guidance Package&quot; Description=&quot;Guidance Package that simplifies strong-naming of multiple projects&quot; Host=&quot;VisualStudio&quot; Guid=&quot;2d4b99e7-3126-4452-8882-edfd826ea78a&quot; ConfigurationFile=&quot;C:\Program Files\Microsoft Enterprise Library 3.0 - April 2007\Strong Naming Guidance Package\StrongNamingGuidancePackage.xml&quot; Timestamp=&quot;633113779240000000&quot;&lt;br /&gt;&lt;br /&gt;GuidancePackage Name=&quot;GuidanceBlockFactory&quot; Version=&quot;1.0&quot; Caption=&quot;Application Block Software Factory&quot; Description=&quot;Application Block Software Factory&quot; Host=&quot;VisualStudio&quot; Guid=&quot;8643B63B-A2A4-4ccc-933E-379645A3002E&quot; ConfigurationFile=&quot;C:\Program Files\Microsoft Enterprise Library 3.0 - April 2007\Application Block Software Factory\BlockFactory.xml&quot; Timestamp=&quot;633113779040000000&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;from the GuidancePackages elements and tried to uninstall GuidanceAutomationExtensions again. &lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Hooray&lt;/span&gt;, it worked. &lt;br /&gt;The only thing left now was to try the Enterprise Library and to my surprise that uninstalled successfully also.&lt;br /&gt;&lt;br /&gt;Now I am of to try and reinstall it all again.</content><link rel='replies' type='application/atom+xml' href='http://shaunedonohue.blogspot.com/feeds/8688129567081679800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1028236585843827010/8688129567081679800' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/8688129567081679800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1028236585843827010/posts/default/8688129567081679800'/><link rel='alternate' type='text/html' href='http://shaunedonohue.blogspot.com/2007/08/upgrading-guidanceautomationextensions.html' title='Upgrading GuidanceAutomationExtensions and GuidanceAutomationToolkit'/><author><name>Shaune</name><uri>http://www.blogger.com/profile/14678096394667258061</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>