<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress.com" -->
<rss version="0.92">
<channel>
	<title>Edward Wilde</title>
	<link>http://blogs.edwardwilde.com</link>
	<description>.Net &#38; SharePoint Developer / Architect</description>
	<lastBuildDate>Tue, 02 Mar 2010 13:30:37 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Toolbox &#8211;&gt; &quot;Choose items&quot; crashes Visual Studio</title>
		<description><![CDATA[If you ever encounter a crash when choosing the items to display in Visual Studios toolbox, then try this solution:
&#160;

Start Visual Studio in safe mode using:&#160; Start-&#62;Run-&#62;devenv /safemode
In the Toolbox “Choose items”, accept any error message the appear
Restart Visual Studio as per normal and the problem should be fixed.

       [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blogs.edwardwilde.com&blog=9417511&post=354&subd=edwardwilde&ref=&feed=1" />]]></description>
		<link>http://blogs.edwardwilde.com/2010/03/02/toolbox-choose-items-crashes-visual-studio/</link>
			</item>
	<item>
		<title>Cannot change the lookup list of the lookup field.</title>
		<description><![CDATA[Ever get this error message
SPException &#8220;Cannot change the lookup list of the lookup field.&#8221;
Once a lookup field (SPFieldLookup) has had it&#8217;s LookupList and LookupWebId set you can&#8217;t change them.
There is a good reason for this if your lookup field is used in multiple lists or already has data entered, you would effectively break the referential [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blogs.edwardwilde.com&blog=9417511&post=346&subd=edwardwilde&ref=&feed=1" />]]></description>
		<link>http://blogs.edwardwilde.com/2010/02/08/cannot-change-the-lookup-list-of-the-lookup-field/</link>
			</item>
	<item>
		<title>Engine RunWorkflow: System.Workflow.ComponentModel.Compiler.WorkflowValidationFailedException: The workflow failed validation.</title>
		<description><![CDATA[Getting this error message today:
Engine RunWorkflow: System.Workflow.ComponentModel.Compiler.WorkflowValidationFailedException: The workflow failed validation.&#160;&#160;&#160;&#160; at System.Workflow.Runtime.WorkflowDefinitionDispenser.ValidateDefinition(Activity root, Boolean isNewType, ITypeProvider typeProvider)&#160;&#160;&#160;&#160; at System.Workflow.Runtime.WorkflowDefinitionDispenser.LoadRootActivity(Type workflowType, Boolean createDefinition, Boolean initForRuntime)&#160;&#160;&#160;&#160; at System.Workflow.Runtime.WorkflowDefinitionDispenser.GetRootActivity(Type workflowType, Boolean createNew, Boolean initForRuntime)&#160;&#160;&#160;&#160; at System.Workflow.Runtime.WorkflowRuntime.InitializeExecutor(Guid instanceId, CreationContext context, WorkflowExecutor executor, WorkflowInstance workflowInstance)&#160;&#160;&#160;&#160; at System.Workflow.Runtime.WorkflowRuntime.Load(Guid key, CreationContext context, WorkflowInstance workflowInstance)&#160;&#160;&#160;&#160; at System.Workflow.Runtime.WorkflowRuntime.GetWorkflowExecutor(Guid instanceId, CreationContext context)&#160;&#160;&#160;&#160; at System.Workflow.Runtime.WorkflowRuntime.InternalCreateWorkflow(CreationContext [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blogs.edwardwilde.com&blog=9417511&post=319&subd=edwardwilde&ref=&feed=1" />]]></description>
		<link>http://blogs.edwardwilde.com/2010/01/21/engine-runworkflow-system-workflow-componentmodel-compiler-workflowvalidationfailedexception-the-workflow-failed-validation/</link>
			</item>
	<item>
		<title>An error occured while validating or updating the directory service connection. No update was performed.</title>
		<description><![CDATA[I got this error whilst trying to get User Profiles to work. Things to check:
&#160;

Domain name is correct
If using custom sources, try creating a new custom source and deleting the old one

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blogs.edwardwilde.com&blog=9417511&post=318&subd=edwardwilde&ref=&feed=1" />]]></description>
		<link>http://blogs.edwardwilde.com/2010/01/11/an-error-occured-while-validating-or-updating-the-directory-service-connection-no-update-was-performed/</link>
			</item>
	<item>
		<title>SharePoint custom workflow activity. &#8220;Failed to load toolbox item. It will be removed from toolbox.&#8221;</title>
		<description><![CDATA[I was getting this error message in Visual Studio 2008 when adding a custom activity to an existing workflow.
&#160;
Solution
This worked for me, your mileage, may and probably will vary. 
It was necessary for me to un-gac the workflow project, then the custom activities could be added to the design surface as expected. 
   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blogs.edwardwilde.com&blog=9417511&post=317&subd=edwardwilde&ref=&feed=1" />]]></description>
		<link>http://blogs.edwardwilde.com/2009/12/27/sharepoint-custom-workflow-activity-failed-to-load-toolbox-item-it-will-be-removed-from-toolbox/</link>
			</item>
	<item>
		<title>Safe mode did not start successfully. Could not load file or assembly</title>
		<description><![CDATA[Ever get any of these errors?
 
The DataSourceID of &#8216;TopNavigationMenu&#8217; must be the ID of a control of type IHierarchicalDataSource.&#160; A control with ID &#8216;topSiteMap&#8217; could not be found.&#160;&#160; at System.Web.UI.WebControls.HierarchicalDataBoundControl.GetDataSource()    &#160;&#160; at System.Web.UI.WebControls.HierarchicalDataBoundControl.ConnectToHierarchicalDataSource()     &#160;&#160; at System.Web.UI.WebControls.HierarchicalDataBoundControl.OnLoad(EventArgs e)     &#160;&#160; at System.Web.UI.Control.LoadRecursive()    [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blogs.edwardwilde.com&blog=9417511&post=315&subd=edwardwilde&ref=&feed=1" />]]></description>
		<link>http://blogs.edwardwilde.com/2009/12/22/safe-mode-did-not-start-successfully-could-not-load-file-or-assembly/</link>
			</item>
	<item>
		<title>Programmatically determine is a feature is activated or even installed</title>
		<description><![CDATA[Okay so ever needed to see if a particular web or site feature is activated? Well if it&#8217;s activated it will be in the SPWeb.Features SPFeatureCollection or SPSite.Features. If it&#8217;s not activated it won&#8217;t be. Simple.
To check if a feature is installed examine the feature definitions collection on the SPFarm object, below are a couple [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blogs.edwardwilde.com&blog=9417511&post=308&subd=edwardwilde&ref=&feed=1" />]]></description>
		<link>http://blogs.edwardwilde.com/2009/12/17/programmatically-determine-is-a-feature-is-activated-or-even-installed/</link>
			</item>
	<item>
		<title>The imported project &#8220;C:\Program Files\MSBuild\Microsoft.Office.InfoPath.targets&#8221; was not found</title>
		<description><![CDATA[If you get this error message, which I did this morning opening up someone else&#8217;s SharePoint solution, make sure you have InfoPath installed.

&#160;
Once I installed the InfoPath client application&#160; with .Net Programmability Support, see below, the targets file was installed to the MSBuild directory.

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blogs.edwardwilde.com&blog=9417511&post=307&subd=edwardwilde&ref=&feed=1" />]]></description>
		<link>http://blogs.edwardwilde.com/2009/12/17/the-imported-project-cprogram-filesmsbuildmicrosoft-office-infopath-targets-was-not-found/</link>
			</item>
	<item>
		<title>You cannot customize permission levels in a web site with inherited permission levels.   at Microsoft.SharePoint.SPRoleDefinitionCollection.Add(SPRoleDefinition role)</title>
		<description><![CDATA[Okay simple solution here: Make sure that if you are not the root SPWeb and you want to add custom role definitions i.e. SPRoleDefinitions call SPRoleDefinitionCollection.BreakInheritance(bool,bool)

if (!web.IsRootWeb &#38;&#38; !web.HasUniqueRoleDefinitions)
{
      web.RoleDefinitions.BreakInheritance(true, false);
}

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blogs.edwardwilde.com&blog=9417511&post=298&subd=edwardwilde&ref=&feed=1" />]]></description>
		<link>http://blogs.edwardwilde.com/2009/12/16/you-cannot-customize-permission-levels-in-a-web-site-with-inherited-permission-levels-at-microsoft-sharepoint-sproledefinitioncollection-addsproledefinition-role/</link>
			</item>
	<item>
		<title>Server Out Of Memory &#8211; There is no memory on the server to run your program. Please contact your administrator with this problem.   at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String&amp; bstrWebTemplate, Int32&amp; plWebTemplateId)</title>
		<description><![CDATA[There are lots of reasons this error message can occur, see: http://www.google.com/search?q=sharepoint+Server+Out+Of+Memory. In my case it happened when a new site was being provisioned using a custom site definition during the ApplyWebTemplate call.
Turned out the there were subtle errors in my onet.xml. In particular I was referencing some document templates using an incorrect path:

&#60;Project Title=&#34;$Resources:onet_TeamWebSite;&#34; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blogs.edwardwilde.com&blog=9417511&post=297&subd=edwardwilde&ref=&feed=1" />]]></description>
		<link>http://blogs.edwardwilde.com/2009/12/15/server-out-of-memory-there-is-no-memory-on-the-server-to-run-your-program-please-contact-your-administrator-with-this-problem-at-microsoft-sharepoint-library-sprequestinternalclass-applywebtempl/</link>
			</item>
</channel>
</rss>
