<?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>Ben There, Done That &#187; SharePoint 2007</title>
	<atom:link href="http://www.benstegink.com/tag/sharepoint-2007/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benstegink.com</link>
	<description>Another SharePoint Blog about where I've been and what I've done</description>
	<lastBuildDate>Thu, 19 May 2011 02:40:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>SharePoint Timer Job &#8211; Error during encryption or decryption</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=405</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=405#comments</comments>
		<pubDate>Thu, 13 Jan 2011 19:58:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Provisioning]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Timer Job]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2011/01/13/sharepoint-provisioning-job-error-during-encryption-or-decryption/</guid>
		<description><![CDATA[The other day I went to deploy a solution to our SharePoint farm and got the following error in the Solution Management in Central Administration.&#160; Some important background info is that this solution first created a Web Application. We have a 4 server farm and the solution wasn’t deploying to any of the servers.&#160; Looking [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D405"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D405&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The other day I went to deploy a solution to our SharePoint farm and got the following error in the Solution Management in Central Administration.&#160; Some important background info is that this solution first created a Web Application.</p>
<p><a href="http://www.benstegink.com/wp-content/uploads/2011/01/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.benstegink.com/wp-content/uploads/2011/01/image_thumb.png" width="454" height="293" /></a></p>
<p>We have a 4 server farm and the solution wasn’t deploying to any of the servers.&#160; Looking at the event log, we had several different errors all containing the text (the event ID for all of them was 6398):</p>
<p>Error during encryption or decryption. System error code 997.   <br />Error during encryption or decryption. System error code 0.    <br />Error during encryption or decryption. System error code 122.</p>
<p>All of these were based on a time job provisioning something, either the web application or the solution, or come to find out, some of our search services were having errors starting.&#160; The web application for this solution was being created on one of our servers, but failing on the other three (this was what was actually holding up the solution from being deployed).</p>
<p>After doing some searching everyone gave two options:</p>
<p>1. Recreate your SharePoint Configuration database…yeah right, this is going to be our VERY LAST attempt.</p>
<p>2. Run stsadm –o updatefarmcredentials (if you want to stop reading here, run this command first and it should fix the errors listed above…ONLY if this doesn’t work consider recreating your SharePoint Configuration database)</p>
<p>Neither one of these really seemed to make sense, we created all 4 servers in the farm from scratch, install SharePoint on all of them at the same time, created about 8 web applications that had all provisioned fine already, and never made any changes to user credentials (as some posts suggested).&#160; Since the web application was being created fine on Server 1, we started looking at servers 2-4 as to what happened that would block a web application from being provisioned.&#160; We couldn’t find anything.</p>
<p>Finally, we looked at Server 1.&#160; This server had a timer job running with a different credentials than Servers 2 – 4.&#160; Come to find out, when the install had been done, for some reason SharePoint was installed on Server 1 with one set of credentials and on Servers 2 – 4 with a complete different set of credentials.&#160; After realizing this, we conceded to the fact that yes, user credentials are probably all messed up in our SharePoint Configuration database.&#160; We ran the stsadm –o updatefarmcredentials command this morning and all of a sudden the web application could be created, search services started and solutions were able to be deployed.</p>
<p>&#160;</p>
<p>I’m still baffled as to how our original 8 web applications were created and how solutions were properly deployed previously, but hey, at least everything is fixed now and set up properly.</p>
<!-- AdSense Now! Redux V1.80 -->
<!-- Post[count: 2] -->
<div class="adsense adsense-leadout" style="text-align:center;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "pub-6672311120604391";
/* 234x60, created 6/24/10 */
google_ad_slot = "7863309956";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=405/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check User Permissions on a SharePoint Site using C#</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=406</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=406#comments</comments>
		<pubDate>Wed, 08 Dec 2010 15:20:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Web Parts]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Navigation]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2010/12/08/check-user-permissions-on-a-sharepoint-site-using-c/</guid>
		<description><![CDATA[Another SharePoint 2007 development post from the non developer, so feel free to offer any suggestions and comments around my code as I’m still learning.&#160; I know, I should be doing this on SharePoint 2010.&#160; Trust me, I’m trying to get us there. Anyways, a brief background on what I’m trying to accomplish. I’m working [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D406"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D406&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Another SharePoint 2007 development post from the non developer, so feel free to offer any suggestions and comments around my code as I’m still learning.&#160; I know, I should be doing this on SharePoint 2010.&#160; Trust me, I’m trying to get us there.</p>
<p>Anyways, a brief background on what I’m trying to accomplish. I’m working on a navigation solution for our current intranet that queries a list of SharePoint sites that have been requested, approved and created via our site request process.&#160; The query results are then filter based on if the current user has access to the site.&#160; This list contains variety of sites, site collections and sub-sites that are spread out across 3 different web applications.&#160; The solution then displays those sites in a web part for users to have “quick access” to their collaboration sites.&#160; It’s basically a way to provide navigation (contained in a web part) across site collections and web applications automatically off a list of sites.</p>
<p>In order to check for access I decided to use the DoesUserHavePermissions() function.&#160; However, after writing this function:</p>
<pre class="code"><span style="color: blue">private bool </span>UserAccessToSite(<span style="color: #2b91af">String </span>user, <span style="color: #2b91af">SPWeb </span>testWeb, <span style="color: #2b91af">SPSite </span>testSite){
    <span style="color: blue">bool </span>access = <span style="color: blue">false</span>;
    <span style="color: blue">try</span>{
        access = testWeb.DoesUserHavePermissions(user, <span style="color: #2b91af">SPBasePermissions</span>.EmptyMask);
        <span style="color: blue">return </span>access;
    }
    <span style="color: blue">catch</span>{
        access = <span style="color: blue">false</span>;
        <span style="color: blue">return </span>access;
    }
}</pre>
<p>I was getting the following error stating that the “List does not exist”</p>
<p><a href="http://www.benstegink.com/wp-content/uploads/2010/12/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.benstegink.com/wp-content/uploads/2010/12/image_thumb.png" width="600" height="103" /></a></p>
<p>I tried a variety of different approaches just to get it to return false if the user has Access Denied to the site.&#160; After a bunch of different tries and some searching online, I ran across <a href="http://blog.krichie.com/2007/10/25/when-spwebdoesuserhavepermissions-spwebdoesnotwork-true/" target="_blank">this post</a> by Krichie that solved the problem for me.</p>
<p>Right before checking DoesUserHavePermissions I had to add the line SPSite.CatchAccessDeneidExceptoin=false;</p>
<p>So, the final code that is now working is:</p>
<pre class="code"><span style="color: blue">private bool </span>UserAccessToSite(<span style="color: #2b91af">String </span>user, <span style="color: #2b91af">SPWeb </span>testWeb, <span style="color: #2b91af">SPSite </span>testSite){
    <span style="color: blue">bool </span>access = <span style="color: blue">false</span>;
    <span style="color: blue">try</span>{
        testSite.CatchAccessDeniedException = <span style="color: blue">false</span>;
        access = testWeb.DoesUserHavePermissions(user, <span style="color: #2b91af">SPBasePermissions</span>.EmptyMask);
        <span style="color: blue">return </span>access;
    }
    <span style="color: blue">catch</span>{
        access = <span style="color: blue">false</span>;
        <span style="color: blue">return </span>access;
    }
}</pre>
<p>My web part is now configured in order to query the list and only return a link to a SharePoint site if the user currently logged into SharePoint has access to that site.&#160; I still have some work to do on the web part and the rest of the solution, so as I continue this adventure I’ll try to post any other updates.&#160; Who knows, maybe once I finish it I’ll even post the whole solution up here.</p>
<p>Again, feel free to correct my code or offer other suggestions as I continue to delve into the SharePoint development space.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=406/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SharePoint 2007 Navigation, Documents, Lists and Anonymous Access</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=412</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=412#comments</comments>
		<pubDate>Fri, 01 Oct 2010 13:17:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Documents]]></category>
		<category><![CDATA[Features]]></category>
		<category><![CDATA[Lists]]></category>
		<category><![CDATA[Navigation]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2010/10/01/sharepoint-2007-navigation-and-anonymous-access/</guid>
		<description><![CDATA[I had this problem today on one of our sites that has anonymous access enabled.&#160; We wanted to link to some PDF files in our quick launch navigation, so, naturally, we logged into the site and manually added the links. However, when we tested the site with anonymous access the links weren’t there! So, next [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D412"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D412&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I had this problem today on one of our sites that has anonymous access enabled.&#160; We wanted to link to some PDF files in our quick launch navigation, so, naturally, we logged into the site and manually added the links.</p>
<p>However, when we tested the site with anonymous access the links weren’t there! So, next step, check the document library.&#160; It was inheriting permissions, and I could even manually type in the URL to the document library and the PDFs using anonymous access and view everything just fine.</p>
<p>So, time to start digging.&#160; Fortunately I found a thread on a discussion board that pointed me here &#8211; <a href="http://support.microsoft.com/kb/927082/en-us?spid=11373&amp;sid=200">http://support.microsoft.com/kb/927082/en-us?spid=11373&amp;sid=200</a>.&#160; Apparently when you turn on Anonymous access, Microsoft doesn’t think you could really want everything to be anonymous access.&#160; Anywho…I figured it was worth a shot, so I logged into the server, disabled the feature running the command in the KB article linked above, turned anonymous access off and back on and what do you know.&#160; It worked!!!</p>
<p>So, if you are having any trouble with certain lists, documents, navigation, etc.&#160; Give this solution a shot.&#160; As of yet I’m not aware of negative impacts to disabling this feature, but if I find any I’ll definitely update this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=412/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upcoming Events Web Part</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=414</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=414#comments</comments>
		<pubDate>Tue, 28 Sep 2010 14:54:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Web Parts]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[UpcomingEventsWebPart]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/?p=426</guid>
		<description><![CDATA[I’ve actually done it, a SharePoint Administrator writing a web part.&#160; Granted this web part is in it’s earliest stages, but it performs the task I needed it to. So, what does it do? It’s a very simple SharePoint 2007 web part (So far I have only tested it on MOSS 2007 Standard Edition) that [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D414"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D414&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I’ve actually done it, a SharePoint Administrator writing a web part.&#160; Granted this web part is in it’s earliest stages, but it performs the task I needed it to.</p>
<p>So, what does it do? It’s a very simple SharePoint 2007 web part (So far I have only tested it on MOSS 2007 Standard Edition) that takes a URL (must be absolute at this point in time) and the name of a SharePoint Calendar list and displays the events on the calendar for the given week.&#160; It can be placed on any page or site within your web application and query a calendar on any other site.</p>
<p>Also, the key issue that got me writing this web part is that is correctly handles recurring appointments on your SharePoint calendar.&#160; If you have recurring appointments, this web part will show the correct start and end time for ONLY the recurring event in the current week rather than the end date for the last recurring appointment.&#160; Here is a screen shot displaying the web part returning a variety of different events scheduled in the same week.</p>
<p><a href="http://www.benstegink.com/wp-content/uploads/2010/09/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.benstegink.com/wp-content/uploads/2010/09/image_thumb.png" width="317" height="210" /></a></p>
<p>Granted, it’s nothing fancy, but for me it was a big deal coming from a SharePoint Administrator background.&#160; There are also lots of bugs to it and errors that aren’t properly handled.&#160; But, it’s a start.</p>
<p>If you want to play with the web part, you can download the solution file below.&#160; Just remember, it’s free, it’s my first real web part and there are definitely several bugs.&#160; So, if you choose to try it out:</p>
<p>1.&#160; Don’t complain about it not working the way you want or about bugs…remember it’s FREE.&#160; </p>
<p>2.&#160; If you do find a bug or have suggestions to improve it, I welcome the comments and suggests and we’ll see what I can do as time allows.</p>
<p>3.&#160; There is no warranty, guarantee, etc, etc…pretty much, I’m providing it free as is.&#160; If you choose to install it in your farm that is your choice and your responsibility.&#160; By downloading this web part you are agreeing not to hold me responsible for any negative effect or impact it has on your SharePoint environment.&#160; Again, if it does something weird, feel free to let me know and I’ll do my best to help you, but there are no guarantees.</p>
<p>If you still choose to try the web part you can download it <a href="http://www.benstegink.com/webparts/UpcomingEventsWebPart.wsp" target="_blank">here</a>.&#160; To install and use the web part:</p>
<p>1.&#160; Download the .wsp file</p>
<p>2.&#160; Add the solution to your farm</p>
<p>3.&#160; Deploy the solution</p>
<p>4.&#160; Activate the Site Collection Feature “Upcoming Events Web Part”</p>
<p>5.&#160; Add the web part to your page</p>
<p>6.&#160; Open the Web Part Properties and in the respective boxes enter an Absolute URL for the page where your Calendar List is located as well as the Calendar Name.</p>
<p>7.&#160; Click OK.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=414/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET Security Vulnerability Resources</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=415</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=415#comments</comments>
		<pubDate>Wed, 22 Sep 2010 12:40:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint Foundation]]></category>
		<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[WSSv2]]></category>
		<category><![CDATA[WSSv3]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2010/09/22/asp-net-security-vulnerability/</guid>
		<description><![CDATA[***Update: Today Microsoft is releasing as out-of-band security update to address this issues. - SharePoint Team Blog Announcement &#8211; http://blogs.msdn.com/b/sharepoint/ &#160; I’m sure by now all of you have heard about the ASP.NET security vulnerability and there are plenty of references out there about it and how to fix it so I’m not going to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D415"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D415&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><font color="#ff0000">***Update: Today Microsoft is releasing as out-of-band security update to address this issues.</font></p>
<p><font color="#ff0000">- SharePoint Team Blog Announcement &#8211; </font><a title="http://blogs.msdn.com/b/sharepoint/" href="http://blogs.msdn.com/b/sharepoint/"><font color="#0000ff">http://blogs.msdn.com/b/sharepoint/</font></a></p>
<p>&#160;</p>
<p>I’m sure by now all of you have heard about the ASP.NET security vulnerability and there are plenty of references out there about it and how to fix it so I’m not going to go into much detail here.&#160; The key point is yes, it effects WSS 2.0, SharePoint 2007 (WSS 3.0 and MOSS) and SharePoint 2010 (Foundation and Server).</p>
<p>The best references I have found so far, and I will refer you to rather than writing it all up myself are&quot;:</p>
<p>1. <a href="http://blogs.msdn.com/b/sharepoint/archive/2010/09/21/security-advisory-2416728-vulnerability-in-asp-net-and-sharepoint.aspx" target="_blank">The Microsoft SharePoint Team Blog</a>, this is where the fixes are documented that you can put in place until a patch is released.</p>
<p>2. <a href="http://weblogs.asp.net/scottgu/archive/2010/09/20/frequently-asked-questions-about-the-asp-net-security-vulnerability.aspx" target="_blank">Scott Guthrie’s Blog</a>, this contains a very good list of FAQs about the vulnerability.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=415/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom SharePoint .ASPX form&#8211;&#8220;Could Not Load Type&#8221;</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=419</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=419#comments</comments>
		<pubDate>Thu, 08 Jul 2010 19:08:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[.aspx]]></category>
		<category><![CDATA[Forms]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2010/07/08/custom-sharepoint-aspx-formcould-not-load-type/</guid>
		<description><![CDATA[This is starting to get dangerous…I’m blogging about SharePoint development twice in a row.&#160; Again, this may be something very basic to most SharePoint developers, but as I learn, I enjoy blogging about issues I’ve discovered and things I’ve learned as I continue to develop more. My next venture into SharePoint development is to create [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D419"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D419&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This is starting to get dangerous…I’m blogging about SharePoint development twice in a row.&#160; Again, this may be something very basic to most SharePoint developers, but as I learn, I enjoy blogging about issues I’ve discovered and things I’ve learned as I continue to develop more.</p>
<p>My next venture into SharePoint development is to create some custom .ASPX forms for use within our SharePoint environment.&#160; For our situation, InfoPath Forms Services would make much more sense, unfortunately, we only have SharePoint 2007 Standard with no plans to go to Enterprise.</p>
<p>So, I created a very basic .ASPX file with an equally as simple .cs (code behind file), packaged it all up as solution and deployed it.&#160; However, when I went to access the site, I encounter a “Could Not Load Type…” error.&#160; After a quick search on Google, I found &#8211; <a href="http://blogs.catapultsystems.com/matthew/archive/2007/12/07/could-not-load-type-error.aspx">http://blogs.catapultsystems.com/matthew/archive/2007/12/07/could-not-load-type-error.aspx</a> between that post and the post by Andrew Connell that was referenced there I was able to solve my problem.</p>
<p>When I had created my .aspx file I had failed to use the “5 part name” to reference the assembly file.&#160; I had put Inherits=”NewForm.NewForm” rather than Inherits=”NewForm.NewForm, NewForm, Version=1.0.0.0, Culture=neutral, PublicKeyToken=*********”</p>
<p>As soon as I changed my .aspx file to use the 5 part name and redeployed my solution everything worked perfectly!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=419/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset Search Index &#8211; SharePoint Timer Job</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=420</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=420#comments</comments>
		<pubDate>Thu, 08 Jul 2010 01:54:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Timer Job]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2010/07/07/reset-search-index-sharepoint-timer-job/</guid>
		<description><![CDATA[We have been having an issue with our search indexing and crawling in one of our SharePoint farms.&#160; The problem is that after an undetermined set of time, pretty much all search queries wind up returning several results that show nothing but an IE icon.&#160; The result isn’t attached or any page or give any [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D420"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D420&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>We have been having an issue with our search indexing and crawling in one of our SharePoint farms.&#160; The problem is that after an undetermined set of time, pretty much all search queries wind up returning several results that show nothing but an IE icon.&#160; The result isn’t attached or any page or give any textual information.&#160; Obviously best case would be to figure out what causes this error, but at this point in time we haven’t been able to find the problem.</p>
<p>However, what we have discovered is that simply resetting the search index and running a full crawl will solve the issue.</p>
<p>So…until we can solve the issues, I wrote a small SharePoint timer job that simply resets our search index right before a scheduled full crawl runs.&#160; I used Andrew Connell’s post (<a href="http://www.andrewconnell.com/blog/articles/CreatingCustomSharePointTimerJobs.aspx">http://www.andrewconnell.com/blog/articles/CreatingCustomSharePointTimerJobs.aspx</a>) to develop the Timer Job, Solution and Feature and modified it and was able to find the following code on <a href="http://www.sharepointdev.net/sharepoint--development-programming/programmatically-reset-all-crawled-content-41959.shtml">http://www.sharepointdev.net/sharepoint&#8211;development-programming/programmatically-reset-all-crawled-content-41959.shtml</a> that I inserted into the timer job frame work in order to automatically reset our index on a regular schedule to minimize the risk of our search issue effecting the end users.</p>
<pre class="code"><span style="color: blue">try
</span>{
    <span style="color: #2b91af">SearchContext </span>sc = <span style="color: #2b91af">SearchContext</span>.GetContext(ServerContext.Default);
    sc.Reset(<span style="color: blue">true</span>);
}
<span style="color: blue">catch </span>(<span style="color: #2b91af">Exception </span>ex)
{
    <span style="color: blue">throw new </span><span style="color: #2b91af">InvalidOperationException</span>(<span style="color: #a31515">&quot;Unable to reset content index.&quot;</span>, ex);
}</pre>
<p>For some of you, this may not seem like much, but coming from the SharePoint Administration/Configuration side of SharePoint and having very little real development experience I was rather proud of myself.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=420/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Explorer, SharePoint, init.js error</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=422</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=422#comments</comments>
		<pubDate>Tue, 01 Jun 2010 13:38:13 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[Office 2007]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2010/06/01/internet-explorer-sharepoint-init-js-error/</guid>
		<description><![CDATA[The other day I had an annoying problem accessing SharePoint sites.&#160; I am running Windows 7, IE8 and Office 2007 and Office 2010 Beta. Any internal SharePoint site continued to throw the error of element not found for init.js It only happened on my desktop (my laptop worked just fine).&#160; I tried clearing the temporary [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D422"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D422&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The other day I had an annoying problem accessing SharePoint sites.&#160; I am running Windows 7, IE8 and Office 2007 and Office 2010 Beta.</p>
<p>Any internal SharePoint site continued to throw the error of element not found for init.js</p>
<p>It only happened on my desktop (my laptop worked just fine).&#160; I tried clearing the temporary internet files, browser cache, even uninstalling and reinstalling IE8.</p>
<p>Nothing worked, I finally found the solution here &#8211; <a title="http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/41e1874f-7825-4bfe-ba4c-37255d198df2" href="http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/41e1874f-7825-4bfe-ba4c-37255d198df2">http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/41e1874f-7825-4bfe-ba4c-37255d198df2</a></p>
<p>So, I opened up SharePoint Designer 2007, ran the diagnostic tool in the Help menu, restarted IE and everything was back to working as normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=422/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SharePoint List &#8211; View Paged by First Letter</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=425</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=425#comments</comments>
		<pubDate>Fri, 26 Mar 2010 23:40:40 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Customizations]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Lists]]></category>
		<category><![CDATA[Paging]]></category>
		<category><![CDATA[XSLT]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2010/03/26/sharepoint-list-view-paged-by-first-letter/</guid>
		<description><![CDATA[Have you ever had a long SharePoint list that you wanted paged by the first letter of a column rather than by simply picking the number of items you wanted on each page? That’s exactly what I ran into the other day.&#160; I had a list just short of 3000 medications that medical staff at [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D425"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D425&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Have you ever had a long SharePoint list that you wanted paged by the first letter of a column rather than by simply picking the number of items you wanted on each page?</p>
<p>That’s exactly what I ran into the other day.&#160; I had a list just short of 3000 medications that medical staff at work needs to reference.&#160; They needed the list to be sorted alphabetically and be able to quickly jump to the various medications based on the first letter of the medication name.</p>
<p>After doing some searching I found this post that solved the issues and performed exactly as I was hoping &#8211; <a title="http://mdasblog.wordpress.com/2009/06/19/alpha-selection-of-list-items/" href="http://mdasblog.wordpress.com/2009/06/19/alpha-selection-of-list-items/">http://mdasblog.wordpress.com/2009/06/19/alpha-selection-of-list-items/</a></p>
<p>Additionally, here is a tutorial video that was posted in the comments of the blog posting that was very helpful.</p>
<div style="padding-bottom: 0px; padding-left: 0px; width: 425px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:9fd0fe09-67f9-45b9-bb03-372399cf1147" class="wlWriterEditableSmartContent">
<div><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/OyhgFF5pyEw&amp;hl=en"></param><embed src="http://www.youtube.com/v/OyhgFF5pyEw&amp;hl=en" type="application/x-shockwave-flash" width="425" height="355"></embed></object></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=425/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint Memory Leak</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=429</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=429#comments</comments>
		<pubDate>Mon, 15 Feb 2010 17:27:21 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Customizations]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Memory Leak]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2010/02/15/sharepoint-memory-leak/</guid>
		<description><![CDATA[As discovered by Todd Carter there is a memory leak in SharePoint 2007.&#160; He has outlined the details as well as a work around to the fix the memory leak. I decided to do some testing with it, however, when I compiled the dll, placed it into the GAC, and changed my global.asax file, I [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D429"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D429&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>As discovered by <a href="http://todd-carter.com">Todd Carter</a> there is a memory leak in SharePoint 2007.&#160; He has outlined the details as well as a <a href="http://todd-carter.com/post/2010/02/08/SharePointe28099s-Sasquatch-Memory-Leak.aspx">work around to the fix the memory leak</a>.</p>
<p>I decided to do some testing with it, however, when I compiled the dll, placed it into the GAC, and changed my global.asax file, I started getting this error: “Could not load file or assembly ‘[Assembly Name]’ or one of its dependencies.&#160; The system cannot find the file specified.”</p>
<p>After digging into this error for a while I discovered my problem.&#160; This may be fairly obvious to developers out there <img src='http://www.benstegink.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , but coming at this from more of a SharePoint administrator type roll, I missed this one step that isn’t outlined in the steps provided by Todd.</p>
<p>After deploying your dll to the GAC, you need to open up your web.config and place </p>
<p>&lt;add assembly=&quot;[Assembly Name], Version=[Version Number], Culture=neutral, PublicKeyToken=[Public Key Token]&quot; /&gt;</p>
<p>in the web.config file of the web application you wish to apply your fix to.&#160; This line should be added between &lt;assemblies&gt; and &lt;/assemblies&gt; in the web.config file.</p>
<p>All of the information: Assembly Name, Version Number and the Public Key Token can be found by right clicking on your dll in the GAC and viewing the properties of the dll.</p>
<p>Once I added the assembly to my web.config for the web applications I was trying to apply the fix to, everything worked as expected.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=429/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.680 seconds -->

