<?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>Edwin Vriethoff &#187; Errors</title>
	<atom:link href="http://edwin.vriethoff.net/category/errors/feed/" rel="self" type="application/rss+xml" />
	<link>http://edwin.vriethoff.net</link>
	<description>Edwin Vriethoff</description>
	<lastBuildDate>Fri, 04 Jun 2010 06:16:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Front-end file system cache problems might occur after a SharePoint configuration database restore.</title>
		<link>http://edwin.vriethoff.net/2010/03/25/front-end-file-system-cache-problems-might-occur-after-a-sharepoint-configuration-database-restore/</link>
		<comments>http://edwin.vriethoff.net/2010/03/25/front-end-file-system-cache-problems-might-occur-after-a-sharepoint-configuration-database-restore/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 16:41:57 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[Configuration database]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[Infopath]]></category>
		<category><![CDATA[KB]]></category>
		<category><![CDATA[WSP]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/?p=370</guid>
		<description><![CDATA[Last week I was working at a client who just restored one of their SharePoint environments because of a site error. Everything was functioning like normal, until we discovered a major issue with the InfoPath forms publishing mechanism.
For some of the Infopath forms we received an error while upgrading the form to a newer version. The [...]]]></description>
			<content:encoded><![CDATA[<p><img title="database_restore_file_cache_problems" src="http://edwin.vriethoff.net/wp-content/database_restore_file_cache_problems.jpg" alt="database_restore_file_cache_problems" width="140" height="142" align="left" />Last week I was working at a client who just restored one of their SharePoint environments because of a site error. Everything was functioning like normal, until we discovered a major issue with the InfoPath forms publishing mechanism.</p>
<p>For some of the Infopath forms we received an error while upgrading the form to a newer version. The error statement told us that we could not update the form because of an object in the database with the same ID.</p>
<p>To resolve the error we tried to remove the existing form, but instead of removing the form, SharePoint decided to do the opposite and it tried to start some kind of upgrade process. We had no more options to upgrade or even delete the existing form.</p>
<p><span id="more-370"></span>We knew that SharePoint generates a WSP for each InfoPath form that is published in the Central Administration. The deployment status of each WSP file can be seen in the Solution Management section. Right here we found the source of our problem. The Solution Management page informed us that the WSP package of the forms where Globally deployed, but they gave an Error status. The error status blocked every option to retract or re-deploy the WSP. Looking at the error details the following message was displayed:</p>
<div class="Code">SharePointServer : C:\WINDOWS\Temp\solution-fc4c343f-f8f7-4724-b6c0-8e658496bda9\form-template_myform.wsp could not be created because the contents could not be found under id 4795693a-2ec7-4a92-810f-eb9931a498e6 in the configuration database.</div>
<p>Somehow the environment was thinking that the content of the missing WSP package was deployed.</p>
<p>Finally the IT Pro of our client found the solution for the problem in <a href="http://support.microsoft.com/kb/939308" onclick="javascript:pageTracker._trackPageview('/outbound/article/support.microsoft.com');" target="_blank">KB939308</a>. It turns out that after a database restore, the contents of the file system cache on the front-end servers can be different from that of the contents of the configuration database.</p>
<p>The only way to fix this is by performing some manual steps:</p>
<ol>
<li>All the XML configuration files have to be removed from the SharePoint config directory.</li>
<li>The contents of the cache.ini file has to be cleared.</li>
<li>The Windows SharePoint Services Timer has to be restarted.</li>
</ol>
<p>A detailed guide of these steps is provided in the description of <a href="http://support.microsoft.com/kb/939308" onclick="javascript:pageTracker._trackPageview('/outbound/article/support.microsoft.com');" target="_blank">KB939308</a>.</p>
<p>So next time if you have to do a database restore of your SharePoint Server, keep in mind some cache problems might occur.</p>
]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2010/03/25/front-end-file-system-cache-problems-might-occur-after-a-sharepoint-configuration-database-restore/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visual Studio and SharePoint 2010 new SPSite returns FileNotFoundException</title>
		<link>http://edwin.vriethoff.net/2010/03/22/visual-studio-and-sharepoint-2010-new-spweb-returns-filenotfoundexception/</link>
		<comments>http://edwin.vriethoff.net/2010/03/22/visual-studio-and-sharepoint-2010-new-spweb-returns-filenotfoundexception/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 11:26:50 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[.Net 3.5]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[64 bit]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[exception]]></category>
		<category><![CDATA[File Not Found]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[platform]]></category>
		<category><![CDATA[spsite]]></category>
		<category><![CDATA[spweb]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/?p=352</guid>
		<description><![CDATA[While writing my first console application to communicate with SharePoint 2010, I was surprised to receive a FileNotFoundException during the creation of a new SPSite.
The line
SPWeb web = new SPSite(&#8221;http://localhost/&#8221;).OpenWeb();
returned the error statement:
FileNotFoundException was unhandled:
The Web application at http://localhost/ could not be found. Verify that you have typed the URL correctly. If the URL should [...]]]></description>
			<content:encoded><![CDATA[<p>While writing my first console application to communicate with SharePoint 2010, I was surprised to receive a FileNotFoundException during the creation of a new SPSite.</p>
<p>The line</p>
<div class="code">SPWeb web = new SPSite(&#8221;http://localhost/&#8221;).OpenWeb();</div>
<p>returned the error statement:</p>
<div style="border: solid 1px grey; padding: 5px;">FileNotFoundException was unhandled:<br />
The Web application at http://localhost/ could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.</div>
<p><a href="http://edwin.vriethoff.net/wp-content/FileNotFoundException.jpg"  target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="FileNotFoundException" src="http://edwin.vriethoff.net/wp-content/FileNotFoundException_thumb.jpg" border="0" alt="FileNotFoundException" width="240" height="204" /></a></p>
<p>At first I assumed that the error was caused by invalid user rights, but after some searching <a href="http://social.technet.microsoft.com/Forums/en-GB/sharepoint2010programming/thread/f3e6826d-1a02-4597-90ed-81b2769d97c9" onclick="javascript:pageTracker._trackPageview('/outbound/article/social.technet.microsoft.com');" target="_blank">this forum post at Microsoft Technet</a> came up with the right solution.</p>
<p>By default the console project is build for the .Net 4 framework and and the x86 platform. Because SharePoint is only available as a 64bit version, the console app should also be compiled for the 64bit platform.</p>
<p><a href="http://edwin.vriethoff.net/wp-content/Update_Platform_To_x64_FileNotFoundException.jpg"  target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Update_Platform_To_x64_FileNotFoundException" src="http://edwin.vriethoff.net/wp-content/Update_Platform_To_x64_FileNotFoundException_thumb.jpg" border="0" alt="Update_Platform_To_x64_FileNotFoundException" width="240" height="172" /></a></p>
<p>By changing the framework to .Net 3.5 and the target platform to x64 the issue was resolved.</p>
]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2010/03/22/visual-studio-and-sharepoint-2010-new-spweb-returns-filenotfoundexception/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>SharePoint SP2 activates 180 day trial countdown</title>
		<link>http://edwin.vriethoff.net/2009/05/22/sharepoint-sp2-activates-180-day-trial-countdown/</link>
		<comments>http://edwin.vriethoff.net/2009/05/22/sharepoint-sp2-activates-180-day-trial-countdown/#comments</comments>
		<pubDate>Fri, 22 May 2009 07:21:47 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[180 days]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[countdown]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[service pack]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/?p=272</guid>
		<description><![CDATA[The Microsoft SharePoint Team announced that the SharePoint SP2 service pack by mistake activates a 180-day countdown.
&#8220;During the installation of SP2, a product expiration date is improperly activated. This means SharePoint will expire as though it was a trial installation 180 days after SP2 is deployed. The activation of the expiration date will not affect [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://edwin.vriethoff.net/wp-content/repairman.jpg" alt="SharePoint SP2 activates 180 day trial countdown" title="SharePoint SP2 activates 180 day trial countdown" width="160" height="127" align="left" />The Microsoft SharePoint Team announced that the SharePoint SP2 service pack by mistake activates a 180-day countdown.</p>
<p>&#8220;During the installation of SP2, a product expiration date is improperly activated. This means SharePoint will expire as though it was a trial installation 180 days after SP2 is deployed. The activation of the expiration date will not affect the normal function of SharePoint up until the expiration date passes. Furthermore, product expiration 180 days after SP2 installation will not affect customer’s data, configuration or application code but will render SharePoint inaccessible for end-users.&#8221;</p>
<p>The team is working as hard as possible to release a hotfix to address the issue. </p>
<p>The Work around is also known: Re-enter the Product ID numbers on the Convert License Type page in Central Administration.</p>
<p>More information at <a href="http://blogs.msdn.com/sharepoint/archive/2009/05/21/attention-important-information-on-service-pack-2.aspx" onclick="javascript:pageTracker._trackPageview('/outbound/article/blogs.msdn.com');" target="_blank">the Microsoft SharePoint team</a> site.</p>
]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2009/05/22/sharepoint-sp2-activates-180-day-trial-countdown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Audience compilation via the command line</title>
		<link>http://edwin.vriethoff.net/2009/05/13/audience-compilation-via-the-command-line/</link>
		<comments>http://edwin.vriethoff.net/2009/05/13/audience-compilation-via-the-command-line/#comments</comments>
		<pubDate>Wed, 13 May 2009 08:58:38 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[audience]]></category>
		<category><![CDATA[commandline]]></category>
		<category><![CDATA[compilation]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[guid]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[problem]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/?p=225</guid>
		<description><![CDATA[Last month I had to work a lot with audiences and of course my development environment had an annoying malfunction. The manage audience page (/_layouts/Audience_Main.aspx) contains a nice compilation link, but it didn&#8217;t work.
The only other option on the page is to schedule the compilation, but it can only be scheduled to run once a [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://edwin.vriethoff.net/wp-content/audience_compilation.jpg" alt="Audience compilation via the command line" title="Audience compilation via the command line" width="160" height="119" align="right" style="border: 1px solid #BAB9BF; margin-left: 5px;" />Last month I had to work a lot with audiences and of course my development environment had an annoying malfunction. The manage audience page (/_layouts/Audience_Main.aspx) contains a nice compilation link, but it didn&#8217;t work.</p>
<p>The only other option on the page is to schedule the compilation, but it can only be scheduled to run once a day. Not very useful during development.</p>
<p>After some digging I found the command line application to control the audience job and luckily it wasn&#8217;t very complicated to use. Just run the application to get some more information:</p>
<div class="code">
c:\Program Files\Microsoft Office Servers\12.0\Bin>audiencejob.exe<br />
AudienceJob.exe <Application Id> <Command> [Crawl Type] [Audience Name]<br />
        Application Id: Guid corresponding to Search application<br />
        Command: 1 = Start, 0 = Stop<br />
        Crawl Type: 1 = Full, 0 = Incremental (default = 1)<br />
        Audience Name: Specific audience to compile (default = all)</p>
<p>Application Id for SharedServicesProvider1: 23ec9668-ea04-4842-b9ba-8e39cfaeaa3d
</p></div>
<p>The best of it is that the application provides you the GUIDs of available Shared Service providers.</p>
<p>To start a new compilation from scratch for all the audiences, run the command with the given GUID and the two other parameters:</p>
<div class="code">
c:\Program Files\Microsoft Office Servers\12.0\Bin>audiencejob.exe 23ec9668-ea04-4842-b9ba-8e39cfaeaa3d 1 1
</div>
<p><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2009/05/13/audience-compilation-via-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find out which process is locking a DLL without extra tools</title>
		<link>http://edwin.vriethoff.net/2009/01/26/find-out-which-process-is-locking-a-dll-without-extra-tools/</link>
		<comments>http://edwin.vriethoff.net/2009/01/26/find-out-which-process-is-locking-a-dll-without-extra-tools/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 10:28:40 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[DLL]]></category>
		<category><![CDATA[locked]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[tasklist]]></category>
		<category><![CDATA[unlock]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/?p=206</guid>
		<description><![CDATA[Today I got the &#8220;The process cannot access the file &#8230; because it is being used by another process&#8221; error again, during a development build. And as long as the DLL is locked, it’s not possible to do a successful build.
Most sites and tips on the internet suggest to download some tool to detect which [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://edwin.vriethoff.net/wp-content/unlock_dll_in_use.jpg" alt="unlock dll in use" title="unlock dll in use" width="160" height="119" align="left" />Today I got the &#8220;<strong>The process cannot access the file &#8230; because it is being used by another process</strong>&#8221; error again, during a development build. And as long as the DLL is locked, it’s not possible to do a successful build.</p>
<p>Most sites and tips on the internet suggest to download some tool to detect which process is using the DLL. It seems that not many people are aware that, since Windows XP, we don&#8217;t need to download (or even pay for) a tool to detect this.</p>
<p>Just launch the windows console and navigate to the directory of the DLL. Now type &#8220;<strong>tasklist.exe /m locked.dll</strong>&#8221; and it will show you exactly which processes have loaded and locked this DLL.</p>
<p>Happy unlocking <img src='http://edwin.vriethoff.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2009/01/26/find-out-which-process-is-locking-a-dll-without-extra-tools/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

