<?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/category/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>Testing Large Lists in SharePoint</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=410</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=410#comments</comments>
		<pubDate>Tue, 26 Oct 2010 16:05:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Large Lists]]></category>
		<category><![CDATA[Load Testing]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2010/10/26/testing-large-lists-in-sharepoint/</guid>
		<description><![CDATA[Today I needed to do some testing around large lists, views, queries, etc as I’m working with a proposed feature.&#160; I realize there is a lot of documentation around this in terms of keeping a view under 2000 items, or not having more than 2000 items in any folder. These are recommendations that have been [...]]]></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%3D410"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D410&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Today I needed to do some testing around large lists, views, queries, etc as I’m working with a proposed feature.&#160; I realize there is a lot of documentation around this in terms of keeping a view under 2000 items, or not having more than 2000 items in any folder.</p>
<p>These are recommendations that have been backed up with data, however, sometimes nothing beats just testing everything out for yourself.&#160; How is my farm or this feature going to react when a list gets too large?</p>
<p>I found the SharePoint 2007 Test Data Population Tool that enables you to quickly load up your farm with test data.</p>
<p>MOSS &#8211; <a href="http://sptdatapop.codeplex.com/releases/view/1214">http://sptdatapop.codeplex.com/releases/view/1214</a></p>
<p>WSS &#8211; <a href="http://sptdatapop.codeplex.com/releases/view/1141">http://sptdatapop.codeplex.com/releases/view/1141</a></p>
<p>There are certain features that are available in WSS that aren’t in the MOSS version, so even if you have MOSS, you’ll probably want both.&#160; This tool made in very easy for me to fill up a test list with as many items as I wanted with 3 short lines in an XML file and a simple command point to the XML file and the URL to the site containing the list.</p>
<p>There is a ton of additional functionality in these tools also as far as creating sites, site collections, load testing, etc. that I haven’t even begun to explore.&#160; So, if you want to do some testing around what your SharePoint farm can handle, I would recommend adding this to your tool belt.&#160; Just make sure you don’t run this against a production farm if you are testing the limits <img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://www.benstegink.com/wp-content/uploads/2010/10/wlEmoticon-smile.png" />.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=410/feed/</wfw:commentRss>
		<slash:comments>1</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>SharePoint Discussion Board &#8211; Safari, Firefox and Chrome</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=418</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=418#comments</comments>
		<pubDate>Fri, 23 Jul 2010 19:51:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Customizations]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Discussion Board]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Quest]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[Telerik]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2010/07/23/sharepoint-discussion-board-safari-firefox-and-chrome/</guid>
		<description><![CDATA[If you’re like us, chances are you have users accessing SharePoint from several different browsers.&#160; SharePoint 2007 can bring about many challenges for users not wanting to Internet Explorer, one of which is replying to threads in a SharePoint Discussion board. To be perfectly honest I’ve never been a huge fan of the discussion board [...]]]></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%3D418"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D418&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>If you’re like us, chances are you have users accessing SharePoint from several different browsers.&#160; SharePoint 2007 can bring about many challenges for users not wanting to Internet Explorer, one of which is replying to threads in a SharePoint Discussion board.</p>
<p>To be perfectly honest I’ve never been a huge fan of the discussion board in SharePoint, so I haven’t often paid much attention to it.&#160; However, since switching jobs, I have found the users here love the discussion board.&#160; The first thing I did to make it even better for users, was to download the <a href="http://sharepointforall.com/media/g/util/tags/discussion/qdiscussionview/default.aspx" target="_blank">Quest Discussion board web part</a>, to give users a much nicer interface for viewing posts.</p>
<p>Recently, more and more of our users have been accessing discussion boards from a browser other than IE.&#160; When replying to a discussion, this brings up and ugly mess of HTML for the end users if they are replying from FireFox, Safari or Chrome. </p>
<p><a href="http://www.benstegink.com/wp-content/uploads/2010/07/image.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" class="wlDisabledImage" title="image" border="0" alt="image" src="http://www.benstegink.com/wp-content/uploads/2010/07/image_thumb.png" width="422" height="326" /></a></p>
<p>We had three options for solving this:</p>
<p>1. Training – Make sure all users know that when replying to a discussion, they are not to touch the HTML, but simply add their response above it.&#160; Feasible…but definitely not the best idea.</p>
<p>2. Require all users to use IE – hahaha…yeah right! Parts of our environment are accessible to our users from home as well as a subset of our users having the ability to choose if they want a MAC or a PC.&#160; This just won’t happen.</p>
<p>3. Find a way for users to edit rich test (eliminating the HTML) when responding to or posting a new item in a discussion board.</p>
<p>Thanks to <a href="http://www.telerik.com" target="_blank">Telerik</a>, we were able to take approach #3.&#160; The <a href="http://www.telerik.com/community/free-products.aspx" target="_blank">Telerik RadEditor Lite</a> (bottom of the page) provides two features.&#160; One feature to use the RadEditor for Rich Text fields when using a browser other than IE and the second feature to use the RAdEditor for IE as well.&#160; After adding and deploying the solution to the SharePoint farm and activating the feature on your SharePoint site, when you edit a Rich Text field from a browser other than IE, instead of the ugly html you are given a nice, easy to use Rich Text field from Telerik.</p>
<p><a href="http://www.benstegink.com/wp-content/uploads/2010/07/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" class="wlDisabledImage" title="image" border="0" alt="image" src="http://www.benstegink.com/wp-content/uploads/2010/07/image_thumb1.png" width="491" height="379" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=418/feed/</wfw:commentRss>
		<slash:comments>5</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>
	</channel>
</rss>

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

