<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rickey Whitworth&#039;s Blog &#187; Sharepoint Designer</title>
	<atom:link href="http://www.whitworth.org/tag/sharepoint-designer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.whitworth.org</link>
	<description>insights from managing a microsoft enterprise infrastructure</description>
	<lastBuildDate>Tue, 22 Jun 2010 17:12:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Sharepoint Designer Dataview Webpart Errors</title>
		<link>http://www.whitworth.org/2009/03/05/566/</link>
		<comments>http://www.whitworth.org/2009/03/05/566/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 15:33:02 +0000</pubDate>
		<dc:creator>rwhitworth</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Sharepoint Admin]]></category>
		<category><![CDATA[Sharepoint Designer]]></category>

		<guid isPermaLink="false">http://www.whitworth.org/?p=566</guid>
		<description><![CDATA[I recently spent several days trying to solve a Sharepoint / Sharepoint Designer problem and thought I would share the solution here.
 
Symptom 1
A web part page with a dataview web part that connected to a SQL Server datasource was giving the following error message and stack trace:
Server Error in ‘/’ Application
The type is not registered [...]]]></description>
			<content:encoded><![CDATA[<p>I recently spent several days trying to solve a Sharepoint / Sharepoint Designer problem and thought I would share the solution here.</p>
<p> </p>
<h3>Symptom 1</h3>
<p>A web part page with a dataview web part that connected to a SQL Server datasource was giving the following error message and stack trace:</p>
<blockquote><p><span style="color: #ff0000;">Server Error in ‘/’ Application</span></p>
<p><span style="color: #800000;">The type is not registered as safe</span></p>
<p><strong>Stack Trace:</strong></p>
<p> </p>
<p><span style="font-size: x-small;">[UnsafeControlException: The type is not registered as safe.]</span></p>
<p><span style="font-size: x-small;">   Microsoft.SharePoint.EditingPageParser.VerifyControlOnSafeList(String dscXml, RegisterDirectiveManager registerDirectiveManager, SPWeb web) +948</span></p>
<p><span style="font-size: x-small;">   Microsoft.SharePoint.WebPartPages.DataFormWebPart.get_DataSources() +186</span></p>
<p><span style="font-size: x-small;">   Microsoft.SharePoint.WebPartPages.DataFormWebPart.AddDataSourceControls() +69</span></p>
<p><span style="font-size: x-small;">   Microsoft.SharePoint.WebPartPages.DataFormWebPart.CreateChildControls() +1583</span></p>
<p><span style="font-size: x-small;">   System.Web.UI.Control.EnsureChildControls() +87</span></p>
<p><span style="font-size: x-small;">   System.Web.UI.Control.PreRenderRecursiveInternal() +44</span></p>
<p><span style="font-size: x-small;">   System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +42</span></p>
<p><span style="font-size: x-small;">   System.Web.UI.Control.PreRenderRecursiveInternal() +171</span></p>
<p><span style="font-size: x-small;">   System.Web.UI.Control.PreRenderRecursiveInternal() +171</span></p>
<p><span style="font-size: x-small;">   System.Web.UI.Control.PreRenderRecursiveInternal() +171</span></p>
<p><span style="font-size: x-small;">   System.Web.UI.Control.PreRenderRecursiveInternal() +171</span></p>
<p><span style="font-size: x-small;">   System.Web.UI.Control.PreRenderRecursiveInternal() +171</span></p>
<p><span style="font-size: x-small;">   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842</span></p></blockquote>
<p>The Sharepoint site had many pages with similar dataview web parts, and most of these were still working. The only clear difference with this one was that it was connected to a form web part on the page.</p>
<h3>Symptom 2</h3>
<p>After opening the Sharepoint site, or any of its subsites, I was unable to view data for either existing database connections or new database connections. For example, when clicking Manage Data Sources, I could see the database connection that had been defined. If I clicked the drop down box and chose ‘Show Data’, I received the following error:</p>
<blockquote><p>&#8220;The server returned a non-specific error when trying to get data from the data source. Check the format and content of your query and try again. If the problem persists, contact the server administrator.&#8221;</p></blockquote>
<p>If I tried to define a new database connection, I could connect to the database, and I could see the schema because a list of tables was being returned. However, as soon as I clicked ‘Show Data’ I got the same error above.</p>
<h3>Root Cause</h3>
<p>The problem was a missing section of XML in the web.config file that defines the SQL Data Sources. The web.config file was the first place I looked, since the ‘Type is not registered as safe’ usually means there is not a safe control entry in the file. However, in this case, the control was not a custom web part, it was a default Sharepoint web part, and it looked like all of the defaults were listed in Safe Controls.</p>
<p>After doing some file comparisons with some older web.config files, we discovered that the following code was missing from the current web.config file.</p>
<pre class="brush: xml">
&lt;pages enableSessionState=&quot;false&quot; enableViewState=&quot;true&quot; enableViewStateMac=&quot;true&quot; validateRequest=&quot;false&quot; pageParserFilterType=&quot;Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; asyncTimeout=&quot;30&quot;&gt;
 &lt;namespaces&gt;
 &lt;remove namespace=&quot;System.Web.UI.WebControls.WebParts&quot; /&gt;
 &lt;/namespaces&gt;
 &lt;tagMapping&gt;
  &lt;add tagType=&quot;System.Web.UI.WebControls.SqlDataSource, System.Web,  Version=2.0.0.0, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a&quot;
mappedTagType=&quot;Microsoft.SharePoint.WebControls.SPSqlDataSource, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; /&gt;
 &lt;/tagMapping&gt;
&lt;/pages&gt;
</pre>
<p>We were able to trace the problem back to a web part installation of Lightning Tools Forum that happened a couple of weeks ago. The Lightning Tools Forum web part consisted of two features. One of them was a .Net Framework 3.5 Feature that added all of the entries needed for .Net 3.5 into the web.config file. We had some problems with this feature, and during troubleshooting, it was activated and deactivated several times. So either the deactivation removed the section, or it was accidentally removed by me in the process. (On a side note, We got the Lightning Tools Forum web part to work without the .net 3.5 feature)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.whitworth.org/2009/03/05/566/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customizing the Content Query Web Part and Custom Item Styles</title>
		<link>http://www.whitworth.org/2009/02/18/customizing-the-content-query-web-part-and-custom-item-styles/</link>
		<comments>http://www.whitworth.org/2009/02/18/customizing-the-content-query-web-part-and-custom-item-styles/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 22:12:07 +0000</pubDate>
		<dc:creator>rwhitworth</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Sharepoint Customization]]></category>
		<category><![CDATA[Sharepoint Designer]]></category>

		<guid isPermaLink="false">http://www.whitworth.org/?p=454</guid>
		<description><![CDATA[&#160;
With Microsoft Office SharePoint Server (MOSS) 2007 and Windows SharePoint Services (WSS) 3.0, we can use the Content Query Web Part (CQW or CQWP) to display SharePoint content from another source on a SharePoint page. This web part is rather nifty and one of my new favorite things about MOSS 2007.&#160; At first glance you [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<blockquote><p>With Microsoft Office SharePoint Server (MOSS) 2007 and Windows SharePoint Services (WSS) 3.0, we can use the <strong>Content Query Web Part </strong>(CQW or CQWP) to display SharePoint content from another source on a SharePoint page. This web part is rather nifty and one of my new favorite things about MOSS 2007.&#160; At first glance you tend to pass it by, then when you see what it can do, it is pretty cool.&#160; Imagine if you will, creating a list in SharePoint 2003 and then adding it as a web part to your WSS home page or SPS portal area.&#160; You are then limited to controlling the view through the Web Part Tool Pane by hiding or showing various columns.&#160;&#160; With the CQWP, you can now control how that content is displayed. You can wrap HTML code and styles to format the display nearly however you wish.&#160; Here is a quick example of a CQWP used on the ShareSquared.com site:</p>
</blockquote>
<p><a href="http://www.heathersolomon.com/blog/articles/CustomItemStyle.aspx">Customizing the Content Query Web Part and Custom Item Styles</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whitworth.org/2009/02/18/customizing-the-content-query-web-part-and-custom-item-styles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Master-Detail views with Web Part connections using Flickr</title>
		<link>http://www.whitworth.org/2009/02/13/microsoft-sharepoint-designer-team-blog-creating-master-detail-views-with-web-part-connections-using-flickr-services-as-a-data-source/</link>
		<comments>http://www.whitworth.org/2009/02/13/microsoft-sharepoint-designer-team-blog-creating-master-detail-views-with-web-part-connections-using-flickr-services-as-a-data-source/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 15:36:31 +0000</pubDate>
		<dc:creator>rwhitworth</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Sharepoint Designer]]></category>

		<guid isPermaLink="false">http://www.whitworth.org/?p=450</guid>
		<description><![CDATA[ 

Creating Master-Detail views with Web Part connections using Flickr Services as a Data Source
Hi everyone, Allan Smith here. I’m a Software Development Engineer in Test on the SharePoint Designer Data team. I have a great example of using a server-side script data source to create Master-Detail views using the DataFormWebPart. My finished example is show [...]]]></description>
			<content:encoded><![CDATA[<p> </p>
<blockquote>
<h6>Creating Master-Detail views with Web Part connections using Flickr Services as a Data Source</h6>
<p>Hi everyone, Allan Smith here. I’m a Software Development Engineer in Test on the SharePoint Designer Data team. I have a great example of using a server-side script data source to create Master-Detail views using the DataFormWebPart. My finished example is show in this screen shot:</p>
<p><a href="http://blogs.msdn.com/blogfiles/sharepointdesigner/WindowsLiveWriter/CreatingMasterDetailviewswithWebPartconn_F481/clip_image002_2.jpg"><img src="http://blogs.msdn.com/blogfiles/sharepointdesigner/WindowsLiveWriter/CreatingMasterDetailviewswithWebPartconn_F481/clip_image002_thumb.jpg" border="0" alt="clip_image002" width="404" height="433" /></a></p>
<p>I will use <a href="http://www.flickr.com">Flickr</a> services as my data source in this example thus there are a few pre-requisites before we can get started. Flickr requires an API key in order to use their service but this is easy to setup by visiting their site at <a href="http://www.flickr.com/services/api/">http://www.flickr.com/services/api/</a>. I also recommend reading through their API methods to see what is available via this service.</p></blockquote>
<p><a href="http://blogs.msdn.com/sharepointdesigner/archive/2008/08/22/creating-master-detail-views-with-web-part-connections-using-flickr-services-as-a-data-source.aspx">Microsoft SharePoint Designer Team Blog : Creating Master-Detail views with Web Part connections using Flickr Services as a Data Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whitworth.org/2009/02/13/microsoft-sharepoint-designer-team-blog-creating-master-detail-views-with-web-part-connections-using-flickr-services-as-a-data-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Error Creating Control&#8221; when using Microsoft Office SharePoint Designer 2007</title>
		<link>http://www.whitworth.org/2009/02/09/error-creating-control-when-using-microsoft-office-sharepoint-designer-2007/</link>
		<comments>http://www.whitworth.org/2009/02/09/error-creating-control-when-using-microsoft-office-sharepoint-designer-2007/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 22:11:03 +0000</pubDate>
		<dc:creator>rwhitworth</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Sharepoint Designer]]></category>

		<guid isPermaLink="false">http://www.whitworth.org/?p=448</guid>
		<description><![CDATA[Thanks to Jeremy Jameson for the following

If, like me, you happen to encounter the following user experience when attempting to edit a master page&#8230;

Figure 1: SharePoint Designer &#8211; &#8220;Error Creating Control&#8221;
See full-sized image.

&#8230;then follow these steps to resolve the issue:

Start Control Panel and then open Administrative Tools.
In Windows Vista, right-click Microsoft .NET Framework 2.0 Configuration and click [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="http://blogs.msdn.com/jjameson/default.aspx">Jeremy Jameson</a> for the following</p>
<div class="BlogPostContent">
<p>If, like me, you happen to encounter the following user experience when attempting to edit a master page&#8230;</p>
<div class="image"><img title="SharePoint Designer - &quot;Error Creating Control&quot;" src="http://blogs.msdn.com/photos/jjameson/images/1930020/500x254.aspx" alt="SharePoint Designer - &quot;Error Creating Control&quot;" width="500" height="254" /></div>
<div class="caption">Figure 1: SharePoint Designer &#8211; &#8220;Error Creating Control&#8221;</div>
<div class="imageLink"><a href="http://blogs.msdn.com/photos/jjameson/images/1930020/original.aspx" target="_blank">See full-sized image.</a></div>
</div>
<p>&#8230;then follow these steps to resolve the issue:</p>
<ol>
<li>Start <strong>Control Panel</strong> and then open <strong>Administrative Tools</strong>.</li>
<li>In Windows Vista, right-click <strong>Microsoft .NET Framework 2.0 Configuration</strong> and click <strong>Run as administrator</strong>. If you are not using Windows Vista, then right-click and select <strong>Run as&#8230; </strong>and specify an account that is a member of the local Administrators group (because you don&#8217;t normally login with an administrative account, right?). Enter the appropriate credentials to start the configuration console.</li>
<li>In the <strong>.NET Framework 2.0 Configuration</strong> console, in the tree on the left, expand <strong>My Computer</strong>, and click <strong>Runtime Security Policy</strong>.</li>
<li>In the <strong>Code Access Security Policy</strong> window on the right, in the <strong>Tasks</strong> section, click <strong>Adjust Zone Security</strong>.</li>
<li>In the <strong>Security Adjustment Wizard</strong>, ensure <strong>Make changes to this computer</strong> is selected and then click <strong>Next</strong>.</li>
<li>Select <strong>Local Intranet</strong>, in the <strong>Choose the level of trust for assemblies from this zone</strong> section, click and drag the slider to <strong>Full Trust</strong>, and then click <strong>Next</strong>.</li>
<li>Confirm the setting in the <strong>Summary of changes</strong> and then click <strong>Finish</strong>.</li>
</ol>
<p>Restart SharePoint Designer and you should be &#8220;good-to-go.&#8221;</p>
<p><a href="http://blogs.msdn.com/jjameson/archive/2007/03/22/error-creating-control-when-using-microsoft-office-sharepoint-designer-2007.aspx">http://blogs.msdn.com/jjameson/archive/2007/03/22/error-creating-control-when-using-microsoft-office-sharepoint-designer-2007.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whitworth.org/2009/02/09/error-creating-control-when-using-microsoft-office-sharepoint-designer-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint Designer Workflow Limitations</title>
		<link>http://www.whitworth.org/2007/09/11/sharepoint-designer-workflow-limitations/</link>
		<comments>http://www.whitworth.org/2007/09/11/sharepoint-designer-workflow-limitations/#comments</comments>
		<pubDate>Tue, 11 Sep 2007 18:07:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[Sharepoint Designer]]></category>

		<guid isPermaLink="false">http://www.whitworth.org/Blog/PermaLink,guid,bf3d58c0-7e1e-42aa-bf53-cc31718325b7.aspx</guid>
		<description><![CDATA[
&#160;

SharePoint Designer workflows are have some great benefits: they are relatively
easy to create, don&#8217;t require any code, and can be created and maintained by power
users, not just developers.&#160; However, there are several limitations to SharePoint
Designer workflows and you can hit these edges relatively quickly.&#160; Before deciding
to go down the SharePoint Designer workflow path, you might [...]]]></description>
			<content:encoded><![CDATA[<p>
&nbsp;
</p>
<blockquote><p>SharePoint Designer workflows are have some great benefits: they are relatively<br />
easy to create, don&#8217;t require any code, and can be created and maintained by power<br />
users, not just developers.&nbsp; However, there are several limitations to SharePoint<br />
Designer workflows and you can hit these edges relatively quickly.&nbsp; Before deciding<br />
to go down the SharePoint Designer workflow path, you might want to understand these<br />
edges as you may have to do more work to create the solution.&nbsp; Nearly all of<br />
these limitations listed further below can be solved through one or more of the following<br />
techniques:</p></blockquote>
<p>
<a href="http://blogs.threewill.com/implementingsharepoint/Lists/Posts/Post.aspx?ID=3">SharePoint<br />
Designer Workflow Limitations &#8211; Implementing SharePoint Blog</a>
</p>
<p><img width="0" height="0" src="http://www.whitworth.org/Blog/aggbug.ashx?id=bf3d58c0-7e1e-42aa-bf53-cc31718325b7" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whitworth.org/2007/09/11/sharepoint-designer-workflow-limitations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.885 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-07-15 07:35:30 -->
