<?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/"
	>

<channel>
	<title>Waiting Impatiently</title>
	<atom:link href="http://waitingimpatiently.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://waitingimpatiently.com</link>
	<description>Life and times of a networking programmer. .NET, TFS, Sharepoint and servers.</description>
	<pubDate>Mon, 23 Aug 2010 18:17:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Truncate log file in 2008 (no backup)</title>
		<link>http://waitingimpatiently.com/index.php/2010/08/23/truncate-log-file-in-2008-no-backup/</link>
		<comments>http://waitingimpatiently.com/index.php/2010/08/23/truncate-log-file-in-2008-no-backup/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 18:16:03 +0000</pubDate>
		<dc:creator>Chris Auer</dc:creator>
		
		<category><![CDATA[Chris]]></category>

		<guid isPermaLink="false">http://waitingimpatiently.com/?p=77</guid>
		<description><![CDATA[ use [WSS_Content]
select * FROM sys.database_files
ALTER DATABASE [WSS_Content] SET RECOVERY SIMPLE WITH NO_WAIT
DBCC SHRINKFILE(WSS_Content_log, 1)
ALTER DATABASE [WSS_Content] SET RECOVERY FULL WITH NO_WAIT
]]></description>
			<content:encoded><![CDATA[<p> <span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"><span style="FONT-FAMILY: ; COLOR: #0000ff; FONT-SIZE: x-small"><span style="FONT-FAMILY: ; COLOR: #0000ff; FONT-SIZE: x-small">use </span></span></span></span><span style="font-size: x-small;">[WSS_Content]</span></p>
<div><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"><span style="FONT-FAMILY: ; COLOR: #0000ff; FONT-SIZE: x-small"><span style="FONT-FAMILY: ; COLOR: #0000ff; FONT-SIZE: x-small">select * </span></span></span></span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">FROM</span></span><span style="font-size: x-small;"> </span><span style="color: #008000; font-size: x-small;"><span style="color: #008000; font-size: x-small;">sys</span></span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">.</span></span><span style="color: #008000; font-size: x-small;"><span style="color: #008000; font-size: x-small;">database_files</span></span></div>
<p><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"><span style="FONT-FAMILY: ; COLOR: #0000ff; FONT-SIZE: x-small"><span style="FONT-FAMILY: ; COLOR: #0000ff; FONT-SIZE: x-small">ALTER<span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"> </span></span></span></span></span></span></span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">DATABASE</span></span><span style="font-size: x-small;"> [WSS_Content] </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">SET</span></span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">RECOVERY</span></span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">SIMPLE</span></span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">WITH</span></span><span style="font-size: x-small;"> NO_WAIT</span></p>
<p><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"><span style="FONT-FAMILY: ; COLOR: #0000ff; FONT-SIZE: x-small"><span style="FONT-FAMILY: ; COLOR: #0000ff; FONT-SIZE: x-small">DBCC<span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"> </span></span></span></span></span></span></span><span style="font-size: x-small;">SHRINKFILE</span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">(</span></span><span style="font-size: x-small;">WSS_Content_log</span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">,</span></span><span style="font-size: x-small;"> 1</span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">)</span></span></p>
<p><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"><span style="FONT-FAMILY: ; COLOR: #0000ff; FONT-SIZE: x-small"><span style="FONT-FAMILY: ; COLOR: #0000ff; FONT-SIZE: x-small">ALTER<span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"> </span></span></span></span></span></span></span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">DATABASE</span></span><span style="font-size: x-small;"> [WSS_Content] </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">SET</span></span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">RECOVERY</span></span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">FULL</span></span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">WITH</span></span><span style="font-size: x-small;"> NO_WAIT</span></p>
]]></content:encoded>
			<wfw:commentRss>http://waitingimpatiently.com/index.php/2010/08/23/truncate-log-file-in-2008-no-backup/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hide all the SharePoint goodies when in anonymous mode</title>
		<link>http://waitingimpatiently.com/index.php/2009/12/11/hide-all-the-sharepoint-goodies-when-in-anonymous-mode/</link>
		<comments>http://waitingimpatiently.com/index.php/2009/12/11/hide-all-the-sharepoint-goodies-when-in-anonymous-mode/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 21:18:23 +0000</pubDate>
		<dc:creator>Chris Auer</dc:creator>
		
		<category><![CDATA[Chris]]></category>

		<guid isPermaLink="false">http://waitingimpatiently.com/?p=75</guid>
		<description><![CDATA[When you are in anonymous mode, published, you dont want any of the SharePoint scripts to be running like named.dll. The way to hide it is to wrapped the SharePoint scripts in a security tab. Thus security trimming the scripts and SharePoint overriding CSS classes.
 
&#60;Sharepoint:SPSecurityTrimmedControl PermissionsString=&#8221;BrowseDirectories&#8221; runat=&#8221;server&#8221;&#62;
  &#60;!&#8211;showing sharepoint scripts &#8211;&#62;
  &#60;SharePoint:ScriptLink name=&#8221;init.js&#8221; runat=&#8221;server&#8221;/&#62;
  &#60;Sharepoint:CssLink runat=&#8221;server&#8221;/&#62;
&#60;/Sharepoint:SPSecurityTrimmedControl&#62;
]]></description>
			<content:encoded><![CDATA[<p>When you are in anonymous mode, published, you dont want any of the SharePoint scripts to be running like named.dll. The way to hide it is to wrapped the SharePoint scripts in a security tab. Thus security trimming the scripts and SharePoint overriding CSS classes.</p>
<p> </p>
<p>&lt;Sharepoint:SPSecurityTrimmedControl PermissionsString=&#8221;BrowseDirectories&#8221; runat=&#8221;server&#8221;&gt;<br />
  &lt;!&#8211;showing sharepoint scripts &#8211;&gt;<br />
  &lt;SharePoint:ScriptLink name=&#8221;init.js&#8221; runat=&#8221;server&#8221;/&gt;<br />
  &lt;Sharepoint:CssLink runat=&#8221;server&#8221;/&gt;<br />
&lt;/Sharepoint:SPSecurityTrimmedControl&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://waitingimpatiently.com/index.php/2009/12/11/hide-all-the-sharepoint-goodies-when-in-anonymous-mode/feed/</wfw:commentRss>
		</item>
		<item>
		<title>This product requires ASP.NET v2.0 to be set to &#8216;Allow&#8217; in the list of IIS Web Server Extensions</title>
		<link>http://waitingimpatiently.com/index.php/2009/07/24/this-product-requires-aspnet-v20-to-be-set-to-allow-in-the-list-of-iis-web-server-extensions/</link>
		<comments>http://waitingimpatiently.com/index.php/2009/07/24/this-product-requires-aspnet-v20-to-be-set-to-allow-in-the-list-of-iis-web-server-extensions/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 15:11:00 +0000</pubDate>
		<dc:creator>Chris Auer</dc:creator>
		
		<category><![CDATA[Chris]]></category>

		<guid isPermaLink="false">http://waitingimpatiently.com/?p=73</guid>
		<description><![CDATA[I think there might be an issue with .NET 2.0 SP2 that causes my normal fix of &#8220;click the reinstall button on .NET 2.0&#8243; to fix this issue. i recently ran into this issue again and it didnt work. What did work is the commands below. Bascially it is uninstalling and reinstalling via regiis.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727&#62;aspnet_regiis -u   [...]]]></description>
			<content:encoded><![CDATA[<p>I think there might be an issue with .NET 2.0 SP2 that causes my normal fix of &#8220;click the reinstall button on .NET 2.0&#8243; to fix this issue. i recently ran into this issue again and it didnt work. What did work is the commands below. Bascially it is uninstalling and reinstalling via regiis.</p>
<p>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727&gt;aspnet_regiis -u   (uninstall)</p>
<p align="left">C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727&gt;aspnet_regiis -i   (reinstall)</p>
]]></content:encoded>
			<wfw:commentRss>http://waitingimpatiently.com/index.php/2009/07/24/this-product-requires-aspnet-v20-to-be-set-to-allow-in-the-list-of-iis-web-server-extensions/feed/</wfw:commentRss>
		</item>
		<item>
		<title>the search service is currently offline. visit the services on server page in sharepoint central administration to verify whether the service is enabled. this might also be because an indexer move is in progress</title>
		<link>http://waitingimpatiently.com/index.php/2009/07/08/the-search-service-is-currently-offline-visit-the-services-on-server-page-in-sharepoint-central-administration-to-verify-whether-the-service-is-enabled-this-might-also-be-because-an-indexer-move-is/</link>
		<comments>http://waitingimpatiently.com/index.php/2009/07/08/the-search-service-is-currently-offline-visit-the-services-on-server-page-in-sharepoint-central-administration-to-verify-whether-the-service-is-enabled-this-might-also-be-because-an-indexer-move-is/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 04:08:09 +0000</pubDate>
		<dc:creator>Chris Auer</dc:creator>
		
		<category><![CDATA[Chris]]></category>

		<guid isPermaLink="false">http://waitingimpatiently.com/?p=71</guid>
		<description><![CDATA[Why did this happen? No idea. How did I fix it, read below.

Open central admin
Goto Operations
Goto Services on server and located your index server
On &#8220;Office SharePoint Server Search&#8221; click &#8220;Stop&#8221;. This deconfigures it.
Now click &#8220;start&#8221;
Then click &#8220;Shared Services Administration&#8221;, hover over the failing SSP and select edit.
You will notice now the indexer is not selected. [...]]]></description>
			<content:encoded><![CDATA[<p>Why did this happen? No idea. How did I fix it, read below.</p>
<ol>
<li>Open central admin</li>
<li>Goto Operations</li>
<li>Goto Services on server and located your index server</li>
<li>On &#8220;Office SharePoint Server Search&#8221; click &#8220;Stop&#8221;. This deconfigures it.</li>
<li>Now click &#8220;start&#8221;</li>
<li>Then click &#8220;Shared Services Administration&#8221;, hover over the failing SSP and select edit.</li>
<li>You will notice now the indexer is not selected. Select it from the drop down.</li>
<li>HERE IS THE IMPORTANT PART. The server you have selected is probably the same server as you used before. If it is, go to that server and locate the indexer files. It is in the textbox right below the drop down you just used. For me it was &#8220;F:\Program Files\Microsoft Office Servers\12.0\Data\Office Server\Applications&#8221;. In there you will find a folder with Guid name. At the end of that folder add &#8220;_old&#8221;. Now go back to your SSP and click OK. Wait 1 minute and the index will recreate the guid folder.</li>
<li>Tada, all fixed.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://waitingimpatiently.com/index.php/2009/07/08/the-search-service-is-currently-offline-visit-the-services-on-server-page-in-sharepoint-central-administration-to-verify-whether-the-service-is-enabled-this-might-also-be-because-an-indexer-move-is/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Remove hiberfil.sys on Server 2008</title>
		<link>http://waitingimpatiently.com/index.php/2009/07/08/remove-hiberfilsys-on-server-2008/</link>
		<comments>http://waitingimpatiently.com/index.php/2009/07/08/remove-hiberfilsys-on-server-2008/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 17:59:03 +0000</pubDate>
		<dc:creator>Chris Auer</dc:creator>
		
		<category><![CDATA[Chris]]></category>

		<guid isPermaLink="false">http://waitingimpatiently.com/?p=69</guid>
		<description><![CDATA[For what ever reason server 2008 creates a file on the OS drive for hybrinating the same size as the RAM that is in the server. Not sure how many servers hybrinate, but not mine.
To turn it off just run this from command line
powercfg -h off
Enjoy.
]]></description>
			<content:encoded><![CDATA[<p>For what ever reason server 2008 creates a file on the OS drive for hybrinating the same size as the RAM that is in the server. Not sure how many servers hybrinate, but not mine.</p>
<p>To turn it off just run this from command line</p>
<p>powercfg -h off</p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://waitingimpatiently.com/index.php/2009/07/08/remove-hiberfilsys-on-server-2008/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Disable Roaming Profiles In GPO</title>
		<link>http://waitingimpatiently.com/index.php/2009/05/19/disable-roaming-profiles-in-gpo/</link>
		<comments>http://waitingimpatiently.com/index.php/2009/05/19/disable-roaming-profiles-in-gpo/#comments</comments>
		<pubDate>Wed, 20 May 2009 00:24:54 +0000</pubDate>
		<dc:creator>Chris Auer</dc:creator>
		
		<category><![CDATA[Chris]]></category>

		<guid isPermaLink="false">http://waitingimpatiently.com/?p=67</guid>
		<description><![CDATA[Open you local GPO using MMC or using the GPO editor in your AD. Then enable &#8220;Only allow local user profiles&#8221; in Computer Config -&#62; Administrative Templates -&#62; System -&#62; User Profiles
If you completly want to disable roaming profiles on your Terminal Server
you also have to enable &#8220;Prevent Roaming Profile changes from propagating to
the server&#8221;.

]]></description>
			<content:encoded><![CDATA[<p>Open you local GPO using MMC or using the GPO editor in your AD.<span class="postbody"> Then enable &#8220;Only allow local user profiles&#8221; in Computer <a id="KonaLink1" class="kLink" style="text-decoration: underline ! important; position: static;" href="http://help.lockergnome.com/windows2/Disabling-roaming-profiles-terminal-server--ftopict180599.html#" target="undefined"><span style="color: blue ! important; font-weight: 400; font-size: 12px; position: static;"></span></a>Config -&gt; Administrative Templates -&gt; System -&gt; User Profiles</p>
<p>If you completly want to disable roaming profiles on your Terminal Server<br />
you also have to enable &#8220;Prevent Roaming Profile changes from propagating to<br />
the server&#8221;.<br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://waitingimpatiently.com/index.php/2009/05/19/disable-roaming-profiles-in-gpo/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Force a truncation of a SQL log</title>
		<link>http://waitingimpatiently.com/index.php/2009/05/11/force-a-truncation-of-a-sql-log/</link>
		<comments>http://waitingimpatiently.com/index.php/2009/05/11/force-a-truncation-of-a-sql-log/#comments</comments>
		<pubDate>Mon, 11 May 2009 14:15:42 +0000</pubDate>
		<dc:creator>Chris Auer</dc:creator>
		
		<category><![CDATA[Chris]]></category>

		<guid isPermaLink="false">http://waitingimpatiently.com/?p=64</guid>
		<description><![CDATA[I ran into an issue recently with a log file that would not shrink. All the DB Truncates that I ran would not shrink it. The fix is to just detach the DB, rename the log file and reattach. That will create a new log file from scratch.
Detail are here
sp_detach_db [YourDatabaseName]
then
sp_attach_db @dbname = N&#8216;YourDatabaseName&#8217;,
@filename1 = [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into an issue recently with a log file that would not shrink. All the DB Truncates that I ran would not shrink it. The fix is to just detach the DB, rename the log file and reattach. That will create a new log file from scratch.</p>
<p>Detail are <a href="http://social.msdn.microsoft.com/forums/en-US/sqldatabaseengine/thread/98a70bc6-7fbe-4b1d-8c8e-90ca0639a884/">here</a></p>
<p>sp_detach_db<span style="font-size: x-small;"> [YourDatabaseName]</span></p>
<p><span style="font-size: x-small;">then</span></p>
<p>sp_attach_db<span style="font-size: x-small;"> @dbname </span><span style="font-size: x-small; color: #808080;">=</span><span style="font-size: x-small;"> N</span><span style="font-size: x-small; color: #ff0000;">&#8216;YourDatabaseName&#8217;</span><span style="font-size: x-small; color: #808080;">,<br />
</span><span style="font-size: x-small;">@filename1 </span><span style="font-size: x-small; color: #808080;">=</span><span style="font-size: x-small;"> N</span><span style="font-size: x-small; color: #ff0000;">&#8216;D:\Microsoft SQL Server1\MSSQL\Data\<span style="color: #000000;">YourDatabaseName</span>.MDF&#8217;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://waitingimpatiently.com/index.php/2009/05/11/force-a-truncation-of-a-sql-log/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Access denied on search crawl for SharePoint 2007</title>
		<link>http://waitingimpatiently.com/index.php/2009/05/07/access-denied-on-search-crawl-for-sharepoint-2007/</link>
		<comments>http://waitingimpatiently.com/index.php/2009/05/07/access-denied-on-search-crawl-for-sharepoint-2007/#comments</comments>
		<pubDate>Fri, 08 May 2009 01:52:45 +0000</pubDate>
		<dc:creator>Chris Auer</dc:creator>
		
		<category><![CDATA[Chris]]></category>

		<guid isPermaLink="false">http://waitingimpatiently.com/?p=62</guid>
		<description><![CDATA[I have no idea why, but more and more I am seeing search crawls result in error of &#8220;access is denied&#8221;. The issue is that the web server is not allowing authentication to sites that are localhost (or local). The fix is simple, but I wish I knew why this was creeping up more.
Fix is [...]]]></description>
			<content:encoded><![CDATA[<p>I have no idea why, but more and more I am seeing search crawls result in error of &#8220;access is denied&#8221;. The issue is that the web server is not allowing authentication to sites that are localhost (or local). The fix is simple, but I wish I knew why this was creeping up more.</p>
<p>Fix is <a href="http://support.microsoft.com/kb/896861">here</a></p>
<p>In short do the follow. The reboot is necessary.</p>
<h3 id="tocHeadRef">Method 2: Disable the loopback check</h3>
<p><script type="text/javascript">
                loadTOCNode(2, 'workaround');
            </script>Follow these steps:</p>
<ol>
<li>Click <strong class="uiterm">Start</strong>, click <strong class="uiterm">Run</strong>, type <span class="userInput">regedit</span>, and then click <strong class="uiterm">OK</strong>.</li>
<li>In Registry Editor, locate and then click the following registry key:
<div class="indent"><strong class="uiterm">HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa</strong></div>
</li>
<li>Right-click <strong class="uiterm">Lsa</strong>, point to <strong class="uiterm">New</strong>, and then click <strong class="uiterm">DWORD Value</strong>.</li>
<li>Type <span class="userInput">DisableLoopbackCheck</span>, and then press ENTER.</li>
<li>Right-click <strong class="uiterm">DisableLoopbackCheck</strong>, and then click <strong class="uiterm">Modify</strong>.</li>
<li>In the <strong class="uiterm">Value data</strong> box, type <span class="userInput">1</span>, and then click <strong class="uiterm">OK</strong>.</li>
<li>Quit Registry Editor, and then restart your computer.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://waitingimpatiently.com/index.php/2009/05/07/access-denied-on-search-crawl-for-sharepoint-2007/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Register .NET user for an App Pool</title>
		<link>http://waitingimpatiently.com/index.php/2009/04/30/register-net-user-for-an-app-pool/</link>
		<comments>http://waitingimpatiently.com/index.php/2009/04/30/register-net-user-for-an-app-pool/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 18:25:09 +0000</pubDate>
		<dc:creator>Chris Auer</dc:creator>
		
		<category><![CDATA[Chris]]></category>

		<guid isPermaLink="false">http://waitingimpatiently.com/?p=59</guid>
		<description><![CDATA[Sometime in a non AD environment you need a user to run an App Pool so you can do cross server work (i.e. SQL). Before you can use the user in the App Pool identity you have to tell ASP.NET that they should be allow to run ASP.NET.
Simple command to run from the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 directory
aspnet_regiis.exe [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime in a non AD environment you need a user to run an App Pool so you can do cross server work (i.e. SQL). Before you can use the user in the App Pool identity you have to tell ASP.NET that they should be allow to run ASP.NET.</p>
<p>Simple command to run from the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 directory</p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small; font-family: Calibri;">aspnet_regiis.exe –ga [UserName]</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"> </p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small; font-family: Calibri;">This will tell ASP.NET to allow this user to access temp directories and the assembly code.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://waitingimpatiently.com/index.php/2009/04/30/register-net-user-for-an-app-pool/feed/</wfw:commentRss>
		</item>
		<item>
		<title>User cannot be found</title>
		<link>http://waitingimpatiently.com/index.php/2009/03/23/46/</link>
		<comments>http://waitingimpatiently.com/index.php/2009/03/23/46/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 20:19:29 +0000</pubDate>
		<dc:creator>Chris Auer</dc:creator>
		
		<category><![CDATA[Share Point]]></category>

		<guid isPermaLink="false">http://waitingimpatiently.com/?p=46</guid>
		<description><![CDATA[User cannot be found.   at Microsoft.SharePoint.SPUserCollection.GetByID(Int32 id)
   at Microsoft.SharePoint.Publishing.CommonUtilities.LookUpUser(SPWeb web, String userLookupValue)
   at Microsoft.SharePoint.Publishing.CommonUtilities.GetUserFieldValue(SPListItem item, Guid fieldId)
   at Microsoft.SharePoint.Publishing.PublishingPage.get_Contact()
   at Microsoft.SharePoint.Publishing.Internal.CodeBehind.PageSettingsPage.LoadValues()
   at Microsoft.SharePoint.Publishing.Internal.CodeBehind.BasePageSettingsPage.OnLoad(EventArgs e)
   at Microsoft.SharePoint.Publishing.Internal.CodeBehind.PageSettingsPage.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
An odd thing can happened in SharePoint. If you add a user named Joe Smith to a server, then add that user to SharePoint. Later you need to completely remove [...]]]></description>
			<content:encoded><![CDATA[<p><em>User cannot be found.   at Microsoft.SharePoint.SPUserCollection.GetByID(Int32 id)<br />
   at Microsoft.SharePoint.Publishing.CommonUtilities.LookUpUser(SPWeb web, String userLookupValue)<br />
   at Microsoft.SharePoint.Publishing.CommonUtilities.GetUserFieldValue(SPListItem item, Guid fieldId)<br />
   at Microsoft.SharePoint.Publishing.PublishingPage.get_Contact()<br />
   at Microsoft.SharePoint.Publishing.Internal.CodeBehind.PageSettingsPage.LoadValues()<br />
   at Microsoft.SharePoint.Publishing.Internal.CodeBehind.BasePageSettingsPage.OnLoad(EventArgs e)<br />
   at Microsoft.SharePoint.Publishing.Internal.CodeBehind.PageSettingsPage.OnLoad(EventArgs e)<br />
   at System.Web.UI.Control.LoadRecursive()<br />
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)</em></p>
<p>An odd thing can happened in SharePoint. If you add a user named Joe Smith to a server, then add that user to SharePoint. Later you need to completely remove that user. So you delete the user from the server and you completely remove the user from sharepoint. (removed them from the user collection, not just the site)</p>
<p>One day comes and low and behold you need to add Joe Smith to the server again. You create a new user account for Joe on the server and add Joe to SharePoint. The only issue is that SharePoint doesnt resurrect the user from SharePoint. It creates a new one. And now when you are in a page that was originally created by the 1st Joe Smith you get the error above. Yippy.</p>
<p>If you run the SQL below you will find the two Joe Smith accounts.</p>
<p><code><span style="color: #ffff00;"><span style="font-size: xx-small;"><span style="font-size: xx-small;"><span style="font-size: xx-small;"><span style="font-size: xx-small;">SELECT </span></span></span></span><span style="font-size: xx-small;"><span style="font-size: xx-small;">*</span></span><span style="font-size: xx-small;"> </span><span style="font-size: xx-small;"><span style="font-size: xx-small;">FROM</span></span><span style="font-size: xx-small;"> UserInfo </span><span style="font-size: xx-small;"><span style="font-size: xx-small;">WHERE</span></span><span style="font-size: xx-small;"> tp_Login </span><span style="font-size: xx-small;"><span style="font-size: xx-small;">=</span></span><span style="font-size: xx-small;"> </span><span style="font-size: xx-small;"><span style="font-size: xx-small;">&#8216;MYSERVER\Joe.Smith&#8217;</span></span></span></code></p>
<p>You will get results like this</p>
<p> </p>
<div id="attachment_47" class="wp-caption alignnone" style="width: 662px"><img class="size-full wp-image-47" title="nouser1" src="http://waitingimpatiently.com/wp-content/uploads/2009/03/nouser1.jpg" alt="No User SQL" width="652" height="60" /><p class="wp-caption-text">No User SQL</p></div>
<p> The field tp_ID is the SharePoint UserID. The field sp_Deleted tells SharePoint if the user has been deleted. When you manually flag a user as deleted, all you have to do is to put the user&#8217;s ID in the tp_Deleted field. Notice that the user 19 has 19 in the tp_Deleted field.</p>
<p>So to resurrect the user 19 I need to kill user 16 since they both have the same username. The way I do that is simple</p>
<div></div>
<p><code></p>
<div><span style="font-size: xx-small; color: #0000ff;"><span style="font-size: xx-small; color: #0000ff;"><span style="font-size: xx-small; color: #0000ff;"><span style="font-size: xx-small;"><span style="color: #ffff00;">UPDATE </span></span></span></span></span><span style="font-size: xx-small; color: #0000ff;"><span style="font-size: xx-small; color: #0000ff;"><span style="font-size: xx-small; color: #0000ff;"><span style="font-size: xx-small; color: #0000ff;"><span style="font-size: xx-small; color: #0000ff;"><span style="color: #ffff00;"><span style="font-size: xx-small;">UserInfo </span><span style="font-size: xx-small;"><span style="font-size: xx-small;">SET</span></span><span style="font-size: xx-small;"> tp_Deleted </span><span style="font-size: xx-small;"><span style="font-size: xx-small;">=</span></span><span style="font-size: xx-small;"> 16 </span><span style="font-size: xx-small;"><span style="font-size: xx-small;">WHERE</span></span><span style="font-size: xx-small;"> tp_ID </span><span style="font-size: xx-small;"><span style="font-size: xx-small;">=</span></span><span style="font-size: xx-small;"> </span></span><span style="font-size: xx-small; color: #ff0000;"><span style="font-size: xx-small;"><span style="color: #ffff00;">&#8216;16&#8242;<br />
</span></span></span></span></span></span></span></span><span style="font-size: xx-small; color: #0000ff;"><span style="font-size: xx-small; color: #0000ff;"><span style="font-size: xx-small; color: #0000ff;"><span style="font-size: xx-small;"><span style="color: #ffff00;">UPDATE </span></span></span></span></span><span style="font-size: xx-small; color: #0000ff;"><span style="font-size: xx-small; color: #0000ff;"><span style="font-size: xx-small; color: #0000ff;"><span style="font-size: xx-small; color: #0000ff;"><span style="font-size: xx-small;"><span style="color: #ffff00;"><span style="font-size: xx-small;">UserInfo </span><span style="font-size: xx-small;"><span style="font-size: xx-small;">SET</span></span><span style="font-size: xx-small;"> tp_Deleted </span><span style="font-size: xx-small;"><span style="font-size: xx-small;">=</span></span><span style="font-size: xx-small;"> 0 </span><span style="font-size: xx-small;"><span style="font-size: xx-small;">WHERE</span></span><span style="font-size: xx-small;"> tp_ID </span><span style="font-size: xx-small;"><span style="font-size: xx-small;">=</span></span><span style="font-size: xx-small;"> </span><span style="font-size: xx-small;"><span style="font-size: xx-small;">&#8216;19&#8242;</span></span></span></span></span></span></span><span style="font-size: xx-small; color: #0000ff;"> </span></span></div>
<div><span style="font-size: xx-small; color: #0000ff;"> </span></div>
<p>The SQL above will set user 16 to deleted by adding 16 to their tp_Deleted field. Changing user 19&#8217;s tp_Deleted field to 19 makes them active and all pages will work when you try and view page properties.</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p></code></p>
<div>I hope this help anyone who runs into the same issue. I was a pain to try and diagnose why it wouldnt work and I think there is a fix for it coming from MS. But this server is on SP1 and it still does it.</div>
<div><code>NOTE: This sinerio will work if you just delete a user from SharePoint completely and need to edit their pages. Just put a "0" in the tp_deleted.</code></div>
]]></content:encoded>
			<wfw:commentRss>http://waitingimpatiently.com/index.php/2009/03/23/46/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
