<?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; Articles</title>
	<atom:link href="http://www.whitworth.org/category/articles/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.whitworth.org</link>
	<description>insights from managing a microsoft enterprise infrastructure</description>
	<lastBuildDate>Tue, 05 Apr 2011 21:02:05 +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>How to manually install the SqlQueryGrid web part</title>
		<link>http://www.whitworth.org/2009/03/17/how-to-manually-install-the-sqlquerygrid-web-part/</link>
		<comments>http://www.whitworth.org/2009/03/17/how-to-manually-install-the-sqlquerygrid-web-part/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 15:08:19 +0000</pubDate>
		<dc:creator>rwhitworth</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Sharepoint Customization]]></category>

		<guid isPermaLink="false">http://www.whitworth.org/?p=654</guid>
		<description><![CDATA[Years ago (5 years ago actually), I created a web part for Sharepoint that allowed you to display data from a SQL Server database as a simple table in Sharepoint. Since that time, Sharepoint Designer has added the dataview web part, which gives you much more control over connecting to and formatting data from external [...]]]></description>
			<content:encoded><![CDATA[<p>Years ago (5 years ago actually), I created a web part for Sharepoint that allowed you to display data from a SQL Server database as a simple table in Sharepoint. Since that time, Sharepoint Designer has added the dataview web part, which gives you much more control over connecting to and formatting data from external data sources. However, sometimes, you may want to just go to the data without having to use Sharepoint designer. You can read the <a href="http://www.whitworth.org/2004/08/29/sql-query-grid-web-part-for-sharepoint/">original article here</a>, but if you decide to try the steps below, use the link in the steps, since it is a slightly updated version of the web part.</p>
<p>Anyway, I get lots of requests from people asking if this web part will work in MOSS 2007/wss 3.0, so I thought I would answer that question. The answer is: yes, with some manual work on your part. I have not had the time to create a new setup program for the web part, so you will have to do the steps manually to get it working on your Sharepoint server. I plan to update the setup soon, like within the next couple of months, but for those of you who do not want to wait, here are the manual steps. </p>
<ol>
<li>Download the zip file <a href="http://www.whitworth.org/downloads/SQLQueryGrid_1_000_StyleUpdate/sqlquerygrid_1_000_styleupdate.zip">here </a></li>
<li>Unzip the file to a directory on your sharepoint server, doesn&#8217;t matter where, just remember where you unzip it</li>
<li>Once unzipped, browse to SqlQueryWebPart -&gt; SqlQueryGridSetup -&gt; Release and you will see a file called SqlQueryGridSetup.CAB</li>
<li>Right click on the SqlQueryGridSetup.cab file and choose open. We need two files from this cab, SqlQueryGrid.dll and SqlQueryWP.dwp. Copy them to the root of the directory you created in step 2.</li>
<li>Bring up a separate windows explorer window on the server and browse to c:\windows\assembly. Drag the file SqlQueryGrid.dll into the assembly folder. This makes the dll available to all websites</li>
<li>In Windows Explorer, browse to the folder where your sharepoint site is located, for example c:\inetpub\wwwroot\wss\virtualdirectories\&lt;sitename&gt; and open the web.config file</li>
<li>Find the tag SafeControls tag and you should see several SafeControl Entries. After the last one (right before the closing SafeControls tag) add this line:
<pre class="brush: xml">&lt;SafeControl Assembly=&quot;SqlQueryGrid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ad5cb0df57c0fdff&quot; Namespace=&quot;SqlQueryGrid&quot; TypeName=&quot;*&quot; Safe=&quot;True&quot; /&gt;</pre>
</li>
<li>Save the web.config file</li>
<li>The last step is to upload the SqlQueryWP.dwp file to your web part gallery. Open Internet Explorer, and go to http:///_catalogs/wp/Forms/AllItems.aspx. Click the upload button and upload the dwp file. You should now be able to browse to this web part and add it to a page.</li>
</ol>
<p>Please let me know if you have any issues, I am going to try to update the installer to work with wss 3, but I think these steps should be fine as a workaround for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.whitworth.org/2009/03/17/how-to-manually-install-the-sqlquerygrid-web-part/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plugin upgrade Failed in WordPress Using IIS 7</title>
		<link>http://www.whitworth.org/2009/03/10/plugin-upgrade-failed-in-wordpress-using-iis-7/</link>
		<comments>http://www.whitworth.org/2009/03/10/plugin-upgrade-failed-in-wordpress-using-iis-7/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 21:08:09 +0000</pubDate>
		<dc:creator>rwhitworth</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[IIS 7]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.whitworth.org/?p=631</guid>
		<description><![CDATA[Since I have been running WordPress on IIS 7, I have been unable to use the WordPress integrated Plugin update features. When I am in plugin manager, and click on the link that says Upgrade Automatically, I get the following error:
Upgrade Plugin
Downloading update from http://downloads.wordpress.org/plugin/download-monitor.2.2.3.zip
Unpacking the update
Removing the old version of the plugin
Could not remove [...]]]></description>
			<content:encoded><![CDATA[<p>Since I have been running WordPress on IIS 7, I have been unable to use the WordPress integrated Plugin update features. When I am in plugin manager, and click on the link that says Upgrade Automatically, I get the following error:</p>
<p>Upgrade Plugin<br />
Downloading update from http://downloads.wordpress.org/plugin/download-monitor.2.2.3.zip<br />
Unpacking the update<br />
Removing the old version of the plugin<br />
Could not remove the old plugin<br />
Plugin upgrade Failed</p>
<p>With some help from <a href="http://www.pburch.com/blog">Patrick Burch</a>, I found out this can be fixed by providing Physical Path Credentials in IIS. In previous versions of IIS, you could only use this feature when using UNC paths. It mainly existed as a way to connect to a virtual directory on a remote machine using a fixed set of credentials. In IIS 7, this feature was expanded so that it could also be used with local directories. I have searched for a good security guide on IIS 7 with WordPress, but most of what I have seen is geared towards WordPress on Apache. So, I have played around with a couple of settings to try to enable one click plugin upgrades while at the same time keeping a secure configuration. </p>
<p>DISCLAIMER: I have to admit that I have not read the security guide for WordPress, and I am only mildly familiar with the new security settings in IIS 7. So there is a possibility that what I have done to fix this problem may open some kind of security hole. You must make your own determination when changing security settings on your servers. I am only reporting what worked for me to fix a specific issue. I will not be held responsible for security changes you make to your own systems.</p>
<ol>
<li>Make sure your Application Pool identity is a user account (not Network Service)</li>
<li>In IIS Manager, right-click on your website &#8211;&gt; Manage Web &#8211;&gt; Advanced Settings</li>
<li>Click the &#8230; button in the Physical Path Credentials box.</li>
<li>Specify the account you are using for the Application Pool Identity</li>
<li>Find the wp-content folder under your web site, right click and choose Edit Permissions&#8230;</li>
<li>Go to the Security Tab, then click Add and enter the Application Pool Identity account. Give the account modify rights</li>
<li>Click OK until you have closed out of the security dialog</li>
<li>Reset IIS</li>
<li>Test plugin update</li>
</ol>
<p>We could have given rights to just the plugins directory, but you will still need the ability to do uploads as well, so I just went with wp-content</p>
<p>Please feel free to comment if you are an expert on this subject and see problems with this post.</p>
<p> </p>
<pre class="wrap">
<h2> </h2>
<h2> </h2>

 

 </pre>
]]></content:encoded>
			<wfw:commentRss>http://www.whitworth.org/2009/03/10/plugin-upgrade-failed-in-wordpress-using-iis-7/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Rounded Corners in Sharepoint Webpart Title Bar Using JQuery</title>
		<link>http://www.whitworth.org/2009/03/09/rounded-corners-in-sharepoint/</link>
		<comments>http://www.whitworth.org/2009/03/09/rounded-corners-in-sharepoint/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 20:29:50 +0000</pubDate>
		<dc:creator>rwhitworth</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Rounded Corners]]></category>
		<category><![CDATA[Sharepoint Customization]]></category>

		<guid isPermaLink="false">http://www.whitworth.org/2009/03/09/rounded/</guid>
		<description><![CDATA[Goal
A web part title bar with scripted rounded corners that can be displayed with or without a border.

Background
I wanted to create Sharepoint web part title bars with curved corners, and my search of the web led me to a couple of really good articles that got me started. Heather Solomon’s Post on Branding Sharepoint discusses [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Goal</strong></p>
<p>A web part title bar with scripted rounded corners that can be displayed with or without a border.</p>
<p><a href="http://www.whitworth.org/wp-content/uploads/image.png"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="image" src="http://www.whitworth.org/wp-content/uploads/image-thumb.png" border="0" alt="image" width="515" height="136" /></a></p>
<p><strong>Background</strong></p>
<p>I wanted to create Sharepoint web part title bars with curved corners, and my search of the web led me to a couple of really good articles that got me started. <a href="http://www.heathersolomon.com/blog/articles/brandsppart3a.aspx">Heather Solomon’s Post on Branding Sharepoint</a> discusses how you can use gif files of the rounded corners to do this. I knew I did not want to use images since there are plenty of scripting solutions out there for creating rounded corners on the fly, but Heather’s post was invaluable in knowing which styles I would need to modify. As I am sure you have heard, Sharepoint is a horrible mix of tables, css styles, and inline styles, so it was great that someone had already waded through this problem and documented it.</p>
<p>I had been following <a href="http://www.endusersharepoint.com/?s=paul+grenier">Paul Grenier’s</a> series about JQuery for Sharepoint at the EndUserSharepoint site, so I started searching for a way to do rounded corners with JQuery. I found a JQuery Plugin for Corner’s that is <a href="http://www.malsup.com/jquery/corner/">documented here</a>.</p>
<p>I did not want to get into editing master pages, or creating custom style sheets for my solution, I wanted to keep it a simple solution that could be added on a page in a content editor web part, and would only affect the rendering of that page. Obviously, if you are interested in having curved web part corners on every page of your site, then you could adapt this solution for that. But for demo purposes, my solution has the following guidelines:</p>
<ol>
<li>The jquery script libraries are stored as two files in a document library on the site.</li>
<li>A content editor web part contains a reference to the two script libraries.</li>
<li>The content editor web part also has a couple of styles defined that override the styles inherited by the site</li>
<li>The content editor web part has all of the scripts.</li>
</ol>
<p>So, while this is not the best solution for a site wide change, it is perfect for testing and getting a feel for what you can do.</p>
<p><strong>Solution</strong></p>
<ol>
<li>Pick a document library on your site to store the two jquery library files. Upload these two files to the document library
<ol>
<li><a href="http://www.whitworth.org/downloads/jquery-1.3.1.js">jquery-1.3.1.js</a> – This is version 1.3.1 of the jquery.js library</li>
<li><a href="http://www.whitworth.org/downloads/jquery.corner.js">jquery.corner.js</a> – This is a rounded corner plug-in for jquery.</li>
</ol>
</li>
<li>Edit the page you want the rounded corner’s to appear on, and add a Content Editor Webpart. Edit the web part, choose Source Editor, and paste the following code into the web part, without the line numbers. Be sure to adjust the line where the script libraries are referenced to point to the document library you used for step 1.</li>
</ol>
<pre class="brush: xml">

&lt;style type=&quot;text/css&quot;&gt;

.ms-WPHeader TD h3 {
margin: 0;
padding: 3px 0px 2px 5px;
height:24px;
}

.ms-HoverCellInActive {
margin: 0;
padding: 3px 0px 3px 0px;
height: 10px;
//}

.ms-WPBorder {
border-color: #85B2ED;
border-width: 1px;
}

&lt;/style&gt;

&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;a href=&quot;http://site/Documents/jquery-1.3.1.js%22%3E%3C/script&quot;&gt;http://site/Documents/jquery-1.3.1.js&quot;&gt;&lt;/script&lt;/a&gt;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;a href=&quot;http://site/Documents/jquery.corner.js%22%3E%3C/script&quot;&gt;http://site/Documents/jquery.corner.js&quot;&gt;&lt;/script&lt;/a&gt;&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
//Change these variables
var backColor = &quot;#85B2ED&quot;
var textColor = &quot;white&quot;

AddWebPartCorners();

function AddWebPartCorners(){
    $(&quot;.ms-WPHeader TD h3&quot;).css(&quot;color&quot;,textColor);
    $(&quot;.ms-WPHeader TD h3 a:link, .ms-WPHeader TD h3 a:visited&quot;).css(&quot;color&quot;,textColor);
    $(&quot;.ms-WPHeader TD h3&quot;).css(&quot;background-color&quot;,backColor).corner(&quot;tl 7px&quot;);
    $(&quot;.ms-WPHeader td&quot;).css(&quot;padding-right&quot;,&quot;0px&quot;);
    $(&quot;.ms-WPHeader td&quot;).css(&quot;border-bottom&quot;,&quot;0px&quot;);
    $(&quot;.ms-HoverCellInActive&quot;).css(&quot;background-color&quot;,backColor).corner(&quot;tr 7px&quot;);
}
&lt;/script&gt;
</pre>
<p><strong>How Does it Work?</strong></p>
<p>Lines 1-20 provide overrides for a couple of styles that are set by Sharepoint in the Core.css file. There are 3 classes we are concerned with here, .<strong>ms-WPHeader TD h3</strong>, .<strong>ms-HoverCellInActive</strong>, and .<strong>ms-WPBorder</strong>.</p>
<p> </p>
<table border="1" cellspacing="0" cellpadding="2" width="604">
<tbody>
<tr>
<td width="423" valign="top">Web Part Title (.ms-WPHeader TD h3)</td>
<td width="179" valign="top">.ms-HoverCellInActive</td>
</tr>
</tbody>
</table>
<p>Above is a sample of the table that is used for the Web Part Header. It consists of one row and two columns. Here is an overview of each style.</p>
<ol>
<li>.ms-WPHeader TD h3 – This is the style for the the web part title column. I is  I use it to hard code a height and control the padding. I tried finding a way around this, but, the problem is that the .ms-HoverCellInActive tag is a div, and from what I have researched, you can’t set the height of a div to fully fill a table cell unless that table cell has a height.</li>
<li>.ms-HoverCellInActive – This is the style for the second column in the header. It is the portion of the web part where the menu selector is placed. It is also the place where we need to have the second rounded corner. Again, I am hard coding a height here, and setting the padding so that this div lines up with the first column.</li>
<li>.ms-WPBorder – This is the style that controls the border of the content portion of the web part. I wanted to be able to match the border with the color I use for the web part title bar, so I just copied the style for it into here. You need to set this color manually to match whatever color you choose for the web part title bar.</li>
<li>.ms-WPHeader td<strong> –</strong> This style is not labeled above, but it controls the style for each column in addition to the styles above. I am handling the styling of the <strong>.ms-WPHeader td</strong> with script, so it is not defined in the style section. But basically it is used to remove the bottom border of the web part title bar and more importantly to remove the right padding for the HoverCell. If this right padding is not removed, the web part title bar does not cleanly line up with the border on the right side.</li>
</ol>
<p>Lines 22-23 add a reference to our two script libraries. Remember to point these to the location where you downloaded them. It could be a relevant site link, but for my purposes I didn’t want to have to change the line based on which level of the site it was placed at.</p>
<p>Lines 25-40 are where the actual rounding work is done. This is a script block.</p>
<p>Line 27 and 28 are variables used to hold the background color of the Webpart title bar and the text color. If you are using a dark background color you will most likely want to change the text color to a light color.</p>
<p>Line 30 is just a call to the function defined in Lines 32-38</p>
<p>As for the function, most of the code should be self-explanatory. Lines 33 and 34 just set the color of the text.</p>
<p>Line 35 sets the background color of the first column, and then calls the actual corner function of our library. Because this is the first column, I am only rounding the top-left corner (tl) with a radius of 7px.</p>
<p>In lines 36 and 37, I am changing the style for .ms-WPHeader td. This is used to remove the padding for the HoverCell column, and to remove the bottom border of both columns.</p>
<p>And finally, line 38 sets the background of the HoverCell column and rounds the top right corner of it</p>
<p>   </p>
<p><strong>What I have and have not Tested</strong></p>
<p>Working with stylesheets requires that you take into account different browsers that might access your site. In my case, this is an internal intranet site where the browser is controlled. So, I have only verified this with IE 7. I did test in Firefox, and it did not work, but Sharepoint has other problems with Firefox anyway. I have tested on both a MOSS site and a WSS team site. On a WSS team site, the Links web part does not appear to be styled the same as others, so I will have to research that further. There may be other web parts that do not use the same styles. If you run across others, let me know. I tested using the default theme, and also with a theme we had customized internally.</p>
<p><strong>Where to go from here?</strong></p>
<p>I’m not sure how much more work I will put into this, as it accomplishes the goal I set out to achieve. But others may want to build on this or may have a better way to handle the css. <a href="http://weblogs.asp.net/jan/default.aspx">Jan Tielens</a> has written a <a href="http://weblogs.asp.net/jan/archive/2008/11/20/sharepoint-2007-and-jquery-1.aspx">Feature for Sharepoint</a> that will include the JQuery library for you (though I’m not sure that it will include the jquery.corner plugin), and I plan to investigate that. As stated above, <a href="http://www.endusersharepoint.com/?s=paul+grenier">Paul Grenier</a> has a huge collection of cool things you can do with JQuery and Sharepoint. If you want to round the corners of the quick launch bar, there is an <a href="http://sharethelearning.blogspot.com/2008/11/jquery-in-sharepoint-example-rounded.html">article at Share The Learning for that</a>. I had a few problems getting it to work, but it was a great resource for this project. And finally, if you want to include any of this site wide, <a href="http://www.heathersolomon.com/blog/">Heather Solomon</a> is the place to go for customization tips.</p>
<p> </p>
<p><a href="http://www.whitworth.org/wp-content/uploads/image1.png"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="image" src="http://www.whitworth.org/wp-content/uploads/image-thumb1.png" border="0" alt="image" width="766" height="476" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whitworth.org/2009/03/09/rounded-corners-in-sharepoint/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Scott Hanselman &#8211; Ten Awesome Things I Remember About Computers</title>
		<link>http://www.whitworth.org/2009/03/05/scott-hanselman-ten-awesome-things-i-remember-about-computers/</link>
		<comments>http://www.whitworth.org/2009/03/05/scott-hanselman-ten-awesome-things-i-remember-about-computers/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 04:11:30 +0000</pubDate>
		<dc:creator>rwhitworth</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://www.whitworth.org/?p=595</guid>
		<description><![CDATA[What a great piece of nostalgia. Scott Hanselman recounts Ten Awesome Things he remembers about computers.  To this list I would like to add the first computer I actually owned, the ADAM. I thought it was the coolest thing in the world (it came with a printer).

And I love the mention of Compute magazine. Code samples [...]]]></description>
			<content:encoded><![CDATA[<p>What a great piece of nostalgia. Scott Hanselman recounts <a href="http://www.hanselman.com/blog/10AwesomeThingsIRememberAboutComputers.aspx" target="_blank">Ten Awesome Things</a> he remembers about computers.  To this list I would like to add the first computer I actually owned, the ADAM. I thought it was the coolest thing in the world (it came with a printer).</p>
<p><img class="alignnone size-full wp-image-596" title="adampic2" src="http://www.whitworth.org/wp-content/uploads/adampic2.jpg" alt="adampic2" width="428" height="208" /></p>
<p>And I love the mention of Compute magazine. Code samples you couldn&#8217;t download. Thanks Scott!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.whitworth.org/2009/03/05/scott-hanselman-ten-awesome-things-i-remember-about-computers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Migrating to Wordpress</title>
		<link>http://www.whitworth.org/2008/07/28/hello-world/</link>
		<comments>http://www.whitworth.org/2008/07/28/hello-world/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 20:08:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Windows Server 2008]]></category>

		<guid isPermaLink="false">http://blog.whitworth.org/?p=1</guid>
		<description><![CDATA[With all of the new support for php in Windows Server 2008, I had to try Wordpress as my blog engine. I&#8217;ve used dasBlog for years now and I have been mostly happy with it, but the lack of themes for it has always bothered me. If I&#8217;m inspired by seeing my page, then I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>With all of the new support for php in Windows Server 2008, I had to try Wordpress as my blog engine. I&#8217;ve used dasBlog for years now and I have been mostly happy with it, but the lack of themes for it has always bothered me. If I&#8217;m inspired by seeing my page, then I&#8217;m more likely to post. I hope to post on what it took to get wordpress running on Windows Server. Most of the documentation is geared towards a linux environment, and the posts I have seen that do relate to Windows leave out what I feel are important details.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.whitworth.org/2008/07/28/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make your job more difficult by using My Documents Redirection and Offline Caching &#8211; Part 1</title>
		<link>http://www.whitworth.org/2008/01/28/make-your-job-more-difficult-by-using-my-documents-redirection-and-offline-caching-part-1/</link>
		<comments>http://www.whitworth.org/2008/01/28/make-your-job-more-difficult-by-using-my-documents-redirection-and-offline-caching-part-1/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 16:33:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Network Administration]]></category>
		<category><![CDATA[Offline Files]]></category>

		<guid isPermaLink="false">http://www.whitworth.org/Blog/PermaLink,guid,7b1b332a-9d93-472f-80f6-c49434744394.aspx</guid>
		<description><![CDATA[Â 
Maybe later I will write an introduction to that title, but for now, just know that
I am in charge of a corporate network that has been using My Documents redirection
in combination with Offline Caching for many, many years. I am convinced the cost
overhead involved with this technology far outweighs and productivity gains that we
get. Don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Â </p>
<blockquote><p>Maybe later I will write an introduction to that title, but for now, just know that<br />
I am in charge of a corporate network that has been using My Documents redirection<br />
in combination with Offline Caching for many, many years. I am convinced the cost<br />
overhead involved with this technology far outweighs and productivity gains that we<br />
get. Don&#8217;t get me wrong, I believe offline caching has its place, just not as an all<br />
encompassing corporate policy. Also, this is not meant to bash Microsoft. I just want<br />
them to realize the real world frustrations that come from using a technology they<br />
promote so heavily.</p>
<p><strong>Reason Number 1</strong></p>
<p><strong>File caching is done on a per-system basis, so files cached by users other<br />
than the primary user who log onto the computer will have their files permanently<br />
added to the offline cache, even if they never plan to login to the system again.<br />
The only way to override this is to manually enter the primary user name in a registry<br />
key, and remember to change it whenever the primary user of the computer changes.</strong></p>
<p>One thing many people don&#8217;t realize is that offline file caching is not per-user,<br />
but per system. Take this scenario:</p>
<p><em>You are redirecting documents administratively by using My Documents redirection<br />
in group policy and choosing to make the files available offline. The primary user<br />
of the computer logs in and logs off, synchronizing his My Documents folder. Now a<br />
local cached copy exists for all of the files in his My Documents folder.</em></p>
<p><em>Now an administrator comes along, and he logs into the computer. Because he has<br />
the same group policy, his My Documents folder is redirected and made available offline.<br />
Now the offline file has files that appear like this:</em></p>
<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td width="200" valign="top"><em>File Name</em></td>
<td width="200" valign="top"><em>File Path</em></td>
</tr>
<tr>
<td width="200" valign="top"><em>text1.txt</em></td>
<td width="200" valign="top"><a href="file://\\server\share\home\user1"><em>\\server\share\home\user1</em></a></td>
</tr>
<tr>
<td width="200" valign="top"><em>text2.txt</em></td>
<td width="200" valign="top"><a href="file://\\server\share\home\user1"><em>\\server\share\home\user1</em></a></td>
</tr>
<tr>
<td width="200" valign="top"><em>text1.txt</em></td>
<td width="200" valign="top"><a href="file://\\server\share\home\admin"><em></em></a><a href="file://\\server\share\home\admin1">\\server\share\home\admin<br />
</a>1&gt;</td>
</tr>
<tr>
<td width="200" valign="top"><em>text2.txt</em></td>
<td width="200" valign="top"><a href="file://\\server\share\home\admin"><em></em></a><a href="file://\\server\share\home\admin1">\\server\share\home\admin<br />
</a>1&gt;</td>
</tr>
</tbody>
</table>
<p><em></em>Â </p>
<p><em>User 1 now logs back into the computer, and when he goes to log off, his files<br />
and the administrators files are synchronized. Supposedly, offline caching tries to<br />
deal with this by looking at network security and making sure user1 only tries to<br />
synchronize files he has permissions to. But the admin files are still there.</em></p>
<p><em>On top of that, lets say you decide <a href="file://\\server\share">\\server\share</a> is<br />
a bad design for home shares because it is tied to a server. So you decide to change<br />
the path for all home shares to <a href="file://\\domain\dfs\home">\\domain\dfs\home</a>.<br />
Even if you get this working correctly for user1, you may still have problems because<br />
admin1 is still pointing to the old removed share in the cache. This means you need<br />
to run csccmd and move shares so that all the shares are moved.</em></p>
<p>Anyway, one way to deal with all of this was added in a hotfix that was included in<br />
Windows XP SP2. As the article explains, you are given the option to set registry<br />
keys and designate the primary user of the computer. In the future, all other user<br />
files cached are discarded at logoff.</p>
<p>Below is the KB Article (KB 811660) that references the registry changes that need<br />
to be made.</p></blockquote>
<p><a href="http://support.microsoft.com/kb/811660">Files that you add to the Offline<br />
Files folder on a Windows XP-based computer are synchronized when another person uses<br />
the computer</a></p>
<p><img src="http://www.whitworth.org/Blog/aggbug.ashx?id=7b1b332a-9d93-472f-80f6-c49434744394" alt="" width="0" height="0" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whitworth.org/2008/01/28/make-your-job-more-difficult-by-using-my-documents-redirection-and-offline-caching-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OneNote 2007 and Sharepoint 2007</title>
		<link>http://www.whitworth.org/2006/12/28/onenote-2007-and-sharepoint-2007/</link>
		<comments>http://www.whitworth.org/2006/12/28/onenote-2007-and-sharepoint-2007/#comments</comments>
		<pubDate>Thu, 28 Dec 2006 05:29:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Sharepoint Admin]]></category>

		<guid isPermaLink="false">http://www.whitworth.org/Blog/PermaLink,guid,c4fb942d-2014-4eed-a4a4-f2e66280995d.aspx</guid>
		<description><![CDATA[I have a desktop computer and laptop computer, and I&#8217;ve been getting back into OneNote
lately. This time around I wanted one copy of my Notebook I could access from my laptop
at home or from the desktop at the office, so I decided to put the entire notebook
in Sharepoint.
I created the notebook on the My Site [...]]]></description>
			<content:encoded><![CDATA[<p>I have a desktop computer and laptop computer, and I&#8217;ve been getting back into OneNote<br />
lately. This time around I wanted one copy of my Notebook I could access from my laptop<br />
at home or from the desktop at the office, so I decided to put the entire notebook<br />
in Sharepoint.</p>
<p>I created the notebook on the My Site page in the Personal Documents library. But<br />
I occassionally get sync errors when moving between locations like this:</p>
<p><strong>This section contains changes that cannot be synced because access to the<br />
section file is denied. correct the file permissions or save your copy of this section<br />
elsewhere.</strong></p>
<p>I have seen this error before, and I have seen it resolve itself, but tonight I decided<br />
to try to find an explanation when it popped up at home. It appeared only one section<br />
was causing the problem. This section appeared to be pointing to a valid sharepoint<br />
location if i hovered over it in OneNote. So I decided to clear out any reference<br />
to it on my laptop and just pull down the web copy. To do this, I closed OneNote and<br />
then browsed to C:UsersusernameAppDataLocalMicrosoftOneNote12.0 and deleted<br />
the file called OneNoteOfflineCache.onecache. I also moved the folder for the notebook<br />
that existed in the backup folder. When I started OneNote again, I showed my notebook<br />
with no sections, but as I synced every section appeared.</p>
<p>Obviously the danger here is that I could have made changes on the notebook at home<br />
that had never synced with sharepoint. Deleting the offline cache in this scenario<br />
would probably cause me to lose data, so if you follow my instructions, make sure<br />
you have a backup of the notes.</p>
<p>I will continue to watch for the problem and post if I find any other answers.</p>
<p> </p>
<p> </p>
<p><img src="http://www.whitworth.org/Blog/aggbug.ashx?id=c4fb942d-2014-4eed-a4a4-f2e66280995d" alt="" width="0" height="0" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whitworth.org/2006/12/28/onenote-2007-and-sharepoint-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Excel Web Services and Query Tables</title>
		<link>http://www.whitworth.org/2006/07/12/excel-web-services-and-query-tables/</link>
		<comments>http://www.whitworth.org/2006/07/12/excel-web-services-and-query-tables/#comments</comments>
		<pubDate>Wed, 12 Jul 2006 21:05:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Sharepoint Admin]]></category>

		<guid isPermaLink="false">http://www.whitworth.org/Blog/PermaLink,guid,b399d63c-1f9b-4305-aaba-dd1b2e3b4c4e.aspx</guid>
		<description><![CDATA[
FYI, by design you cannot publish an Excel workbook that is linked to a sql table
in Excel Web Services for Sharepoint 2007. You can, however,&#160;publish an Excel
workbook that is linked to a sql analysis services cube.


]]></description>
			<content:encoded><![CDATA[<p class=citation>
FYI, by design you cannot publish an Excel workbook that is linked to a sql table<br />
in Excel Web Services for Sharepoint 2007. You can, however,&nbsp;publish an Excel<br />
workbook that is linked to a sql analysis services cube.
</p>
<p><img width="0" height="0" src="http://www.whitworth.org/Blog/aggbug.ashx?id=b399d63c-1f9b-4305-aaba-dd1b2e3b4c4e" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whitworth.org/2006/07/12/excel-web-services-and-query-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Location of Registry Files in Windows</title>
		<link>http://www.whitworth.org/2006/06/14/location-of-registry-files-in-windows/</link>
		<comments>http://www.whitworth.org/2006/06/14/location-of-registry-files-in-windows/#comments</comments>
		<pubDate>Wed, 14 Jun 2006 14:15:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Network Administration]]></category>

		<guid isPermaLink="false">http://www.whitworth.org/Blog/PermaLink,guid,142fb1b5-5ab6-4c73-bae3-dc247160345b.aspx</guid>
		<description><![CDATA[
I had a need today to find out what the value for a certain registry key was in the
past. To do this, I needed to restore the actual registry file as it looked it before
(to a different location of course).


In Windows NT/2000/XP/2003 the system registry resides in the following files:


NTUSER.DAT. &#8211; this file contains the&#160;HKEY_CURRENT_USER [...]]]></description>
			<content:encoded><![CDATA[<p>
I had a need today to find out what the value for a certain registry key was in the<br />
past. To do this, I needed to restore the actual registry file as it looked it before<br />
(to a different location of course).
</p>
<p class=normal>
In Windows NT/2000/XP/2003 the system registry resides in the following files:
</p>
<p class=normal>
NTUSER.DAT. &#8211; this file contains the&nbsp;HKEY_CURRENT_USER hive
</p>
<p class=normal>
SAM. &#8211; this file contains the&nbsp;HKEY_LOCAL_MACHIVE\SAM hive
</p>
<p class=normal>
SOFTWARE.&nbsp; this file contains the&nbsp;HKEY_LOCAL_MACHIVE\SOFTWARE hive
</p>
<p class=normal>
SECURITY. this file contains the&nbsp;HKEY_LOCAL_MACHIVE\SECURITY hive
</p>
<p class=normal>
SYSTEM. this file contains all other subhives of HKEY_LOCAL_MACHIVE such as SYSTEM
</p>
<p class=normal>
NTUSER.DAT is located in the Documents and Settings\&lt;username&gt; folder. The other<br />
four files are located in the Windows\system32\config folder. Sometimes, you can also<br />
find copies of registry files in the Windows\repair folder
</p>
<p class=normal>
Make sure to choose load hive from regedit (not import).
</p>
<p><img width="0" height="0" src="http://www.whitworth.org/Blog/aggbug.ashx?id=142fb1b5-5ab6-4c73-bae3-dc247160345b" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whitworth.org/2006/06/14/location-of-registry-files-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.557 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2011-10-01 11:06:53 -->

