<?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>MS CRM Customization Fun</title>
	<atom:link href="http://crm.vdsnickt.eu/feed/" rel="self" type="application/rss+xml" />
	<link>http://crm.vdsnickt.eu</link>
	<description>MS Dynamics CRM Customization and programming tricks by Ronny Van der Snickt</description>
	<lastBuildDate>Wed, 24 Aug 2011 08:11:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>MS CRM 4.0 workflow assembly in a MS CRM 2011 solution</title>
		<link>http://crm.vdsnickt.eu/2011/08/ms-crm-4-0-workflow-assembly-in-a-ms-crm-2011-solution/</link>
		<comments>http://crm.vdsnickt.eu/2011/08/ms-crm-4-0-workflow-assembly-in-a-ms-crm-2011-solution/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 08:03:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MS CRM 2011]]></category>
		<category><![CDATA[CRM]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://crm.vdsnickt.eu/2011/08/ms-crm-4-0-workflow-assembly-in-a-ms-crm-2011-solution/</guid>
		<description><![CDATA[Just got this error when uploading a crm 4.0 workflow assembly in a CRM 2011. Could not load file or assembly &#8216;Microsoft.Crm.Sdk, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&#8242; or one of its dependencies. The located assembly&#8217;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0&#215;80131040) Found the solution at Rick Wilson blog link Just add [...]]]></description>
			<content:encoded><![CDATA[<div>Just got this error when uploading a crm 4.0 workflow assembly in a CRM 2011.</div>
<div>
<table style="border-collapse: collapse;" border="0">
<colgroup>
<col style="width: 614px;"></col>
</colgroup>
<tbody>
<tr>
<td style="padding-left: 7px; padding-right: 7px; border: solid 0.5pt;">
<div>Could not load file or assembly &#8216;Microsoft.Crm.Sdk, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&#8242; or one of its dependencies. The located assembly&#8217;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0&#215;80131040)</div>
</td>
</tr>
</tbody>
</table>
</div>
<div>Found the solution at Rick Wilson blog <a href="http://www.richardawilson.com/2011/04/crm-2011-publisher-policy.html">link</a></div>
<div>Just add this after the configSections section in the web.config of the CRM 2011 website.</div>
<div>
<table style="border-collapse: collapse;" border="0">
<colgroup>
<col style="width: 614px;"></col>
</colgroup>
<tbody>
<tr>
<td style="padding-left: 7px; padding-right: 7px; border: solid 0.5pt;">&lt;runtime&gt;<br />
&lt;assemblyBinding xmlns=&#8221;urn:schemas-microsoft-com:asm.v1&#8243;&gt;<br />
&lt;dependentAssembly&gt;<br />
&lt;assemblyIdentity name=&#8221;Microsoft.Crm.Sdk&#8221; culture=&#8221;neutral&#8221; publicKeyToken=&#8221;31bf3856ad364e35&#8243; /&gt;<br />
&lt;bindingRedirect oldVersion=&#8221;4.0.0.0&#8243; newVersion=&#8221;5.0.0.0&#8243; /&gt;<br />
&lt;/dependentAssembly&gt;<br />
&lt;/assemblyBinding&gt;<br />
&lt;/runtime&gt;</td>
</tr>
</tbody>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://crm.vdsnickt.eu/2011/08/ms-crm-4-0-workflow-assembly-in-a-ms-crm-2011-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ghost project in TFS: Project site folder already exists</title>
		<link>http://crm.vdsnickt.eu/2010/06/ghost-project-in-tfs-project-site-folder-already-exists/</link>
		<comments>http://crm.vdsnickt.eu/2010/06/ghost-project-in-tfs-project-site-folder-already-exists/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 07:14:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Team Foundation Server]]></category>
		<category><![CDATA[moss]]></category>
		<category><![CDATA[reflector]]></category>
		<category><![CDATA[sharepoint]]></category>
		<category><![CDATA[source control]]></category>
		<category><![CDATA[tfs]]></category>

		<guid isPermaLink="false">http://crm.vdsnickt.eu/?p=208</guid>
		<description><![CDATA[When I was working with Team Foundation Server and tried to delete and recreate a TFS project I got the following error. Error TF30004: The New Team Project Wizard encountered an unexpected error while initializing the Microsoft.ProjectCreationWizard.Portal plug-in.  Explanation TF30171: The Microsoft.ProjectCreationWizard.Portal plug-in used to create the new team project could not be initialized and [...]]]></description>
			<content:encoded><![CDATA[<p>When I was working with Team Foundation Server and tried to delete and recreate a TFS project I got the following error.</p>
<div>
<table style="border-collapse: collapse;" border="0">
<colgroup span="1">
<col style="width: 636px;" span="1"></col>
</colgroup>
<tbody>
<tr>
<td style="padding-left: 7px; padding-right: 7px; border: solid black 0.5pt;"><span style="font-family: Arial; font-size: 9pt;"><strong>Error<br />
</strong></span><span style="font-family: Arial; font-size: 9pt;">TF30004: The New Team Project Wizard encountered an unexpected error while initializing the Microsoft.ProjectCreationWizard.Portal plug-in.<br />
</span> <span style="font-family: Arial; font-size: 9pt;"><strong>Explanation<br />
</strong></span><span style="font-family: Arial; font-size: 9pt;">TF30171: The Microsoft.ProjectCreationWizard.Portal plug-in used to create the new team project could not be initialized and returned the following error: TF30270: Project site folder &#8220;<span style="background-color: #d9d9d9;">ProjectName</span>&#8221; already exists.</span><span style="font-family: Arial; font-size: 9pt;"><strong>User Action<br />
</strong></span><span style="font-family: Arial; font-size: 9pt;">Contact your Team Foundation Server administrator. </span></td>
</tr>
</tbody>
</table>
<p> </p>
</div>
<div>
<table style="border-collapse: collapse;" border="0">
<colgroup span="1">
<col style="width: 636px;" span="1"></col>
</colgroup>
<tbody>
<tr>
<td style="padding-left: 7px; padding-right: 7px; border: solid black 0.5pt;">&#8212;begin Exception entry&#8212;<br />
Time: 2010-06-17 10:40:17Z<br />
Module: Initializer<br />
Event Description: TF30207: Initialization for plugin &#8220;Microsoft.ProjectCreationWizard.Portal&#8221; failed<br />
Exception Type: Microsoft.TeamFoundation.Client.PcwException<br />
Exception Message: TF30270: Project site folder &#8220;<span style="background-color: #d9d9d9;">ProjectName</span>&#8221; already exists<br />
Stack Trace:<br />
at Microsoft.VisualStudio.TeamFoundation.WssSiteCreator.Initialize(ProjectCreationContext context)<br />
at Microsoft.VisualStudio.TeamFoundation.EngineStarter.InitializePlugins(MsfTemplate template, PcwPluginCollection pluginCollection)<br />
&#8212; end Exception entry &#8212;</td>
</tr>
</tbody>
</table>
</div>
<div><span id="more-208"></span></div>
<p><img src="http://crm.vdsnickt.eu/wp-content/uploads/2010/06/061910_0713_Ghostprojec1.png" alt="" /></p>
<p><span style="text-decoration: underline;"><strong>Short answer:<br />
</strong></span>The problem was the sharepoint site still existed somehow. I could not open the site anymore so I thought it was deleted but apparently sharepoint failed to remove the site complete.</p>
<p>I had to run this on my sharepoint server<br />
stsadm -o deletesite -url http://[SharepointSite]/sites/[ProjectName]<br />
(More information for stsadm can be found <a href="http://technet.microsoft.com/en-us/library/cc261956(office.12).aspx">here</a>)</p>
<p><span style="text-decoration: underline;"><strong>Long answer:<br />
</strong></span>I googled this problem and found a lot of blogs but nothing that worked for me. So confidence as I was after my last problem (See my previous post <a href="http://crm.vdsnickt.eu/2010/05/ms-crm-4-0-setup-error-asp-net-is-not-installed/">MS CRM 4.0 Setup error asp.net is not installed</a>) I did a search on all dll files and put all files related to TFS in reflector. With reflector I found out that the function Microsoft.VisualStudio.TeamFoundation.WssSiteCreator.Initialize (see log) was calling another function. Microsoft.VisualStudio.TeamFoundation.WssUtilities.CheckSitesExists(). Basically this function used a sharepoint webservice on address http(s)://[SharepointServer]/sites/ [SiteName]/_vti_bin/Lists.asmx to see if a site exists or not. On this web service the function GetListCollection is triggered. If the site does not exist an exception is thrown and TFS knows the site does not exist. In my case the call to the web service did not thrown an exception and I tested this with a console application. (See screenshot below)</p>
<p>So TFS was not to blame (not totally because I find this a weird way to check if a site exists or not) but the problem was sharepoint. When I checked the sharepoint content database (table webs) there was still a reference to the deleted sharepoint site. And this was the reason why I did not get an exception.</p>
<p>Finally after finding <a href="http://www.sharepointjoel.com/Lists/Posts/Post.aspx?List=0cd1a63d%2D183c%2D4fc2%2D8320%2Dba5369008acb&amp;ID=291">this site</a> I tried to remove the site again by executing<br />
stsadm -o deletesite -url http://[SharepointSite]/sites/[ProjectName]</p>
<p>After this I tried my console application again and this time I got an exception. And for once this is a good thing…</p>
<p><img style="width: 580px;" src="http://crm.vdsnickt.eu/wp-content/uploads/2010/06/061910_0713_Ghostprojec2.png" alt="" /></p>
<p>I tried to create my TFS project again and this time it worked</p>
<p>So in conclusion don&#8217;t think your site is deleted because you can&#8217;t access it anymore with a browser but checkout the sharepoint content database in the Webs table to see if your site exists or not.<br />
<br />
<script type="text/javascript"><!--
google_ad_client = "pub-7898862652155355";
/* 468x60, gemaakt 14-5-10 - Banner */
google_ad_slot = "3066619067";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://crm.vdsnickt.eu/2010/06/ghost-project-in-tfs-project-site-folder-already-exists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MS CRM 4.0 Setup error: ASP.NET is not installed</title>
		<link>http://crm.vdsnickt.eu/2010/05/ms-crm-4-0-setup-error-asp-net-is-not-installed/</link>
		<comments>http://crm.vdsnickt.eu/2010/05/ms-crm-4-0-setup-error-asp-net-is-not-installed/#comments</comments>
		<pubDate>Fri, 28 May 2010 15:07:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MS CRM 4.0]]></category>
		<category><![CDATA[.net 4.0]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[Framework 2.0]]></category>
		<category><![CDATA[Framework 4.0]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[MS CRM]]></category>

		<guid isPermaLink="false">http://crm.vdsnickt.eu/?p=176</guid>
		<description><![CDATA[Today I got an error when installing MS CRM 4.0. Internet Information Services (IIS) =&#62; ASP.NET is not installed. (The screenshot is in Dutch but I tried the English installation too with the same results). The log file didn&#8217;t helped much either 09:28:53&#124;Verbose&#124; Method entry: Microsoft.Crm.Tools.EDW.Framework.EDWTool.RunSnifferValidate Internet Information Services (IIS) 09:28:53&#124;Verbose&#124; Calling BaseGroup.Validate 09:28:53&#124; Info&#124; [...]]]></description>
			<content:encoded><![CDATA[<p>Today I got an error when installing MS CRM 4.0. Internet Information Services (IIS) =&gt; ASP.NET is not installed. (The screenshot is in Dutch but I tried the English installation too with the same results).</p>
<p><img src="http://crm.vdsnickt.eu/wp-content/uploads/2010/05/052810_1207_ASPNETisnot1.png" alt="Screenshot setup ms crm 4.0" /></p>
<p>The log file didn&#8217;t helped much either<span id="more-176"></span></p>
<div>
<table style="border-collapse: collapse;" border="0">
<colgroup span="1">
<col style="width: 636px;" span="1"></col>
</colgroup>
<tbody>
<tr>
<td style="padding-left: 7px; padding-right: 7px; border: solid black 0.5pt;"><span style="font-family: Courier New;">09:28:53|Verbose| Method entry: Microsoft.Crm.Tools.EDW.Framework.EDWTool.RunSnifferValidate Internet Information Services (IIS)<br />
</span><span style="font-family: Courier New;">09:28:53|Verbose| Calling BaseGroup.Validate<br />
</span><span style="font-family: Courier New;">09:28:53| Info| Check IIsInstalledValidator: Success<br />
</span><span style="font-family: Courier New;">09:28:53| Info| Check IisAdminServiceValidator: Success<br />
</span><span style="font-family: Courier New;">09:28:53| Error| Check AspNetRegisteredValidator : Failure: ASP.NET 2.0 is niet geïnstalleerd.<br />
</span><span style="font-family: Courier New;">09:28:53| Info| Check W3svcServiceValidator: Success<br />
0</span><span style="font-family: Courier New;">9:28:53| Info| Check IsIIs5IsolationModeValidator: Success<br />
</span><span style="font-family: Courier New;">09:28:53|Verbose| BaseGroup.Validate completed<br />
</span><span style="font-family: Courier New;">09:28:53|Verbose| Method exit: Microsoft.Crm.Tools.EDW.Framework.EDWTool.RunSnifferValidate</span></td>
</tr>
</tbody>
</table>
</div>
<p>The report server was running on the same machine, I also created a test ASP.NET 2.0 website to test the IIS and this all worked without a problem. ASP.NET was installed and even had SP2. I tried to re-register ASP.NET by running the following command line.</p>
<p>C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i</p>
<p>Still the same result, so I googled this and I knew that I was in trouble when google didn&#8217;t give me any answers. At this point I knew that if I would ever find a solution I just need to blog this <span style="font-family: Wingdings;">J</span></p>
<p>After some more searching and trying I decided to pull out the big guns and I started to use reflection on the setup dll&#8217;s to find out what exactly the setup was checking for.</p>
<p>I quickly found this function in the object Microsoft.Crm.Setup.Server.AspNetRegistrationValidator</p>
<div>
<table style="border-collapse: collapse;" border="0">
<colgroup span="1">
<col style="width: 641px;" span="1"></col>
</colgroup>
<tbody>
<tr>
<td style="padding-left: 7px; padding-right: 7px; border: solid black 0.5pt;"><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">protected</span><span style="color: blue;"> override</span> CheckResultInfo InternalCheck(IDictionary parameters)<br />
</span><span style="font-family: Courier New; font-size: 10pt;">{</span><span style="font-family: Courier New; font-size: 10pt;"><br />
<span style="color: blue;">bool</span> flag = <span style="color: blue;">false</span>;<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">try<br />
</span></span><span style="font-family: Courier New; font-size: 10pt;">{</span><span style="font-family: Courier New; font-size: 10pt;"><br />
<span style="color: blue;">using</span> (<span style="color: teal;">DirectoryEntry</span> entry = <span style="color: blue;">new</span><br />
<span style="color: teal;">DirectoryEntry</span>(<span style="color: maroon;">&#8220;IIS://localhost/W3SVC/Filters&#8221;</span>))<br />
</span><span style="font-family: Courier New; font-size: 10pt;">{<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">foreach</span> (<span style="color: teal;">DirectoryEntry</span> entry2 <span style="color: blue;">in</span> entry.Children)<br />
</span><span style="font-family: Courier New; font-size: 10pt;">{<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">using</span> (entry2)<br />
</span><span style="font-family: Courier New; font-size: 10pt;">{</span><span style="font-family: Courier New; font-size: 10pt;"><br />
<span style="color: blue;">if</span> (entry2.Name.ToLower(<span style="color: teal;">CultureInfo</span>.InvariantCulture).StartsWith(<span style="color: maroon;">&#8220;asp.net_2&#8243;</span>))<br />
</span><span style="font-family: Courier New; font-size: 10pt;">{<br />
</span><span style="font-family: Courier New; font-size: 10pt;">flag = <span style="color: blue;">true</span>;</span><span style="font-family: Courier New; font-size: 10pt;"><br />
<span style="color: blue;">goto</span> Label_00D1;<br />
</span><span style="font-family: Courier New; font-size: 10pt;">}<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">continue</span>;<br />
</span><span style="font-family: Courier New; font-size: 10pt;">}<br />
</span><span style="font-family: Courier New; font-size: 10pt;">}<br />
</span><span style="font-family: Courier New; font-size: 10pt;">}<br />
</span><span style="font-family: Courier New; font-size: 10pt;">}<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">catch</span> (<span style="color: teal;">COMException</span> exception)<br />
</span><span style="font-family: Courier New; font-size: 10pt;">{<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">if</span> (-2147463168 == exception.ErrorCode)<br />
</span><span style="font-family: Courier New; font-size: 10pt;">{<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">throw </span><span style="color: blue;">new </span><span style="color: teal;">InvalidOperationException</span>(ServerResource.GetString(<span style="color: maroon;">&#8220;IIS.Error.BadMetabasePath&#8221;</span>, <span style="color: blue;">new </span><span style="color: blue;">object</span>[0]));<br />
</span><span style="font-family: Courier New; font-size: 10pt;">}<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">if</span> (-2147024891 == exception.ErrorCode)<br />
</span><span style="font-family: Courier New; font-size: 10pt;">{<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">throw </span><span style="color: blue;">new </span><span style="color: teal;">Exception</span>(ServerResource.GetString(<span style="color: maroon;">&#8220;IIS.Error.AccessDenied&#8221;</span>, <span style="color: blue;">new </span><span style="color: blue;">object</span>[0]));<br />
</span><span style="font-family: Courier New; font-size: 10pt;">}<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">throw</span>;<br />
</span><span style="font-family: Courier New; font-size: 10pt;">}<br />
</span><span style="font-family: Courier New; font-size: 10pt;">Label_00D1:</span><span style="font-family: Courier New; font-size: 10pt;"><br />
<span style="color: blue;">if</span> (!flag)<br />
</span><span style="font-family: Courier New; font-size: 10pt;">{<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">return </span><span style="color: blue;">new</span> CheckResultInfo(CheckResult.Failure, <span style="color: blue;">base</span>.GetResourceString(<span style="color: maroon;">&#8220;AspNetRegisteredValidator.Failure.NotRegistered&#8221;</span>, <span style="color: blue;">new </span><span style="color: blue;">object</span>[0]));<br />
</span><span style="font-family: Courier New; font-size: 10pt;">}<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">return </span><span style="color: blue;">new</span> CheckResultInfo(CheckResult.Success);<br />
</span><span style="font-family: Courier New; font-size: 10pt;">}</span></td>
</tr>
</tbody>
</table>
</div>
<p>I used the code to create a console application and found that the only filter it could find was ASP.NET_4.0.30319.0. So the test failed because it was looking for asp.net_2.</p>
<p>The server was still an windows server 2003 and I found these filters by right clicking on websites =&gt; properties.</p>
<table>
<tbody>
<tr>
<td><img src="http://crm.vdsnickt.eu/wp-content/uploads/2010/05/052810_1207_ASPNETisnot2.png" alt="IIS Web Sites Properties" /></td>
<td> </td>
</tr>
<tr>
<td colspan="2"><img src="http://crm.vdsnickt.eu/wp-content/uploads/2010/05/052810_1207_ASPNETisnot3.png" alt="IIS ISAPI Filters showing ASP.NET 4.0" /></td>
</tr>
</tbody>
</table>
<p>On the tab ISAPI Filters I found my problem. I added a new filter called ASP.NET_2.0.50727 and selected the following file c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll</p>
<p>After doing this the CRM setup validated everything correct and the installation succeeded.</p>
<p><img src="http://crm.vdsnickt.eu/wp-content/uploads/2010/05/052810_1207_ASPNETisnot4.png" alt="Screenshot setup ms crm 4.0" /></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-7898862652155355";
/* 468x60, gemaakt 14-5-10 - Banner */
google_ad_slot = "3066619067";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://crm.vdsnickt.eu/2010/05/ms-crm-4-0-setup-error-asp-net-is-not-installed/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Show the number of records and space for each database table.</title>
		<link>http://crm.vdsnickt.eu/2010/05/show-the-number-of-records-and-space-for-each-database-table/</link>
		<comments>http://crm.vdsnickt.eu/2010/05/show-the-number-of-records-and-space-for-each-database-table/#comments</comments>
		<pubDate>Wed, 19 May 2010 12:44:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MS CRM 4.0]]></category>
		<category><![CDATA[MS SQL Server]]></category>
		<category><![CDATA[CRM]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[MS SQL]]></category>

		<guid isPermaLink="false">http://crm.vdsnickt.eu/?p=169</guid>
		<description><![CDATA[I created a nice SQL query today to show the number of records in each table in a database and the space it takes in the database in megabytes. Very handy to see why some MS CRM databases are so big. declare @tmpTable TABLE ([RowCount] int, [TableName] nvarchar(max)) declare @ResultTable TABLE ([name] nvarchar(max),[rows] int, [reserverd] [...]]]></description>
			<content:encoded><![CDATA[<p>I created a nice SQL query today to show the number of records in each table in a database and the space it takes in the database in megabytes.</p>
<p>Very handy to see why some MS CRM databases are so big.</p>
<div>
<p><span id="more-169"></span></p>
<table style="border-collapse: collapse;" border="0">
<colgroup span="1">
<col style="width: 636px;" span="1"></col>
</colgroup>
<tbody>
<tr>
<td style="padding-left: 7px; padding-right: 7px; border: solid black 0.5pt;"><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">declare</span> @tmpTable <span style="color: blue;">TABLE </span><span style="color: gray;">(</span>[RowCount] <span style="color: blue;">int</span><span style="color: gray;">,</span> [TableName] <span style="color: blue;">nvarchar</span><span style="color: gray;">(</span><span style="color: fuchsia;">max</span><span style="color: gray;">))<br />
</span></span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">declare</span> @ResultTable <span style="color: blue;">TABLE </span><span style="color: gray;">(</span>[name] <span style="color: blue;">nvarchar</span><span style="color: gray;">(</span><span style="color: fuchsia;">max</span><span style="color: gray;">),</span>[rows] <span style="color: blue;">int</span><span style="color: gray;">,</span> [reserverd] <span style="color: blue;">nvarchar</span><span style="color: gray;">(</span><span style="color: fuchsia;">max</span><span style="color: gray;">),</span>[data] <span style="color: blue;">nvarchar</span><span style="color: gray;">(</span><span style="color: fuchsia;">max</span><span style="color: gray;">),</span>[index_size] <span style="color: blue;">nvarchar</span><span style="color: gray;">(</span><span style="color: fuchsia;">max</span><span style="color: gray;">),</span>[unused] <span style="color: blue;">nvarchar</span><span style="color: gray;">(</span><span style="color: fuchsia;">max</span><span style="color: gray;">))<br />
</span></span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">insert</span><br />
<span style="color: blue;">into</span> @tmpTable <span style="color: gray;">(</span>[RowCount]<span style="color: gray;">,</span> [TableName]<span style="color: gray;">)</span></span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">SELECT </span></span><span style="font-family: Courier New; font-size: 10pt;">[RowCount] <span style="color: gray;">= </span><span style="color: fuchsia;">MAX</span><span style="color: gray;">(</span>si<span style="color: gray;">.</span><span style="color: blue;">rows</span><span style="color: gray;">), </span></span><span style="font-family: Courier New; font-size: 10pt;">[TableName] <span style="color: gray;">=</span> so<span style="color: gray;">.</span>name<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">FROM </span></span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: green;">sysobjects</span> so<span style="color: gray;">, </span></span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: green;">sysindexes</span> si </span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">WHERE<br />
</span></span><span style="font-family: Courier New; font-size: 10pt;">so<span style="color: gray;">.</span>xtype <span style="color: gray;">= </span><span style="color: red;">&#8216;U&#8217; </span></span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: gray;">AND </span></span><span style="font-family: Courier New; font-size: 10pt;">si<span style="color: gray;">.</span>id <span style="color: gray;">= </span><span style="color: fuchsia;">OBJECT_ID</span><span style="color: gray;">(</span>so<span style="color: gray;">.</span>name<span style="color: gray;">)<br />
</span></span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">GROUP </span><span style="color: blue;">BY </span></span><span style="font-family: Courier New; font-size: 10pt;">so<span style="color: gray;">.</span>name<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">ORDER </span><span style="color: blue;">BY </span></span><span style="font-family: Courier New; font-size: 10pt;">2 <span style="color: blue;">DESC<br />
</span></span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">declare</span> @cursor <span style="color: blue;">cursor</span><span style="color: gray;">,</span> @tablename <span style="color: blue;">varchar</span><span style="color: gray;">(</span><span style="color: fuchsia;">max</span><span style="color: gray;">)<br />
</span></span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">set</span> @cursor <span style="color: gray;">= </span><span style="color: blue;">cursor </span><span style="color: blue;">for</span><br />
<span style="color: blue;">select</span> [TableName] <span style="color: blue;">from</span> @tmpTable<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">open</span> @cursor<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">while</span> 1<span style="color: gray;">=</span>1</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">begin</span></span><span style="font-family: Courier New; font-size: 10pt;"><br />
<span style="color: blue;">fetch </span><span style="color: blue;">from</span> @cursor <span style="color: blue;">into</span> @tablename<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">if </span><span style="color: fuchsia;">@@fetch_status </span><span style="color: gray;">&lt;&gt;</span> 0 </span><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">break<br />
</span></span><span style="font-family: Courier New; font-size: 10pt;"><br />
<span style="color: blue;">insert </span><span style="color: blue;">into</span> @ResultTable<span style="color: blue;"><br />
</span><span style="color: gray;">(</span>[name]<span style="color: gray;">,</span> [rows]<span style="color: gray;">,</span> [reserverd]<span style="color: gray;">,</span> [data]<span style="color: gray;">,</span> [index_size]<span style="color: gray;">,</span> [unused]<span style="color: gray;">)<br />
</span></span><span style="font-family: Courier New; font-size: 10pt;"><br />
<span style="color: blue;">exec </span><span style="color: maroon;">sp_spaceused </span>@tablename<br />
</span><span style="font-family: Courier New; font-size: 10pt;"><br />
<span style="color: blue;">end<br />
</span></span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">select</span> [name]<span style="color: gray;">, </span><span style="color: fuchsia;">ROUND</span><span style="color: gray;">((</span><span style="color: fuchsia;">CAST</span><span style="color: gray;">(</span><span style="color: fuchsia;">REPLACE</span><span style="color: gray;">(</span>data<span style="color: gray;">, </span><span style="color: red;">&#8216; KB&#8217;</span><span style="color: gray;">, </span><span style="color: red;">&#8221;</span><span style="color: gray;">) </span><span style="color: blue;">as </span><span style="color: blue;">float</span><span style="color: gray;">) </span><span style="color: gray;">/</span> 1024<span style="color: gray;">),</span> 2<span style="color: gray;">)</span><br />
<span style="color: blue;">as</span> DataInMb<span style="color: gray;">,</span> [rows]<span style="color: gray;">,</span>[reserverd]<span style="color: gray;">,</span> [data]<span style="color: gray;">,</span> [index_size]<span style="color: gray;">,</span> [unused]<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">from</span> @ResultTable <span style="color: blue;">order </span><span style="color: blue;">by </span><span style="color: gray;">(</span><span style="color: fuchsia;">CAST</span><span style="color: gray;">(</span><span style="color: fuchsia;">REPLACE</span><span style="color: gray;">(</span>data<span style="color: gray;">, </span><span style="color: red;">&#8216; KB&#8217;</span><span style="color: gray;">, </span><span style="color: red;">&#8221;</span><span style="color: gray;">) </span><span style="color: blue;">as </span><span style="color: blue;">int</span><span style="color: gray;">)) </span><span style="color: blue;">desc</span></span></td>
</tr>
</tbody>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://crm.vdsnickt.eu/2010/05/show-the-number-of-records-and-space-for-each-database-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My biggest SQL transaction ever.</title>
		<link>http://crm.vdsnickt.eu/2010/04/my-biggest-sql-transaction-ever/</link>
		<comments>http://crm.vdsnickt.eu/2010/04/my-biggest-sql-transaction-ever/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 10:59:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MS CRM 4.0]]></category>
		<category><![CDATA[MS SQL Server]]></category>
		<category><![CDATA[Duplicate Detection]]></category>
		<category><![CDATA[MS CRM]]></category>
		<category><![CDATA[MS SQL]]></category>

		<guid isPermaLink="false">http://crm.vdsnickt.eu/2010/04/my-biggest-sql-transaction-ever/</guid>
		<description><![CDATA[I just performed my biggest SQL transaction ever. I had to delete 100 million DuplicateRecordBase records in de CRM database (More info)  select count(*) from DuplicateRecordBase   I used the following SQL because using the delete statement filled up the hard disk and would have taken ages. truncate table DuplicateRecordBase]]></description>
			<content:encoded><![CDATA[<p>I just performed my biggest SQL transaction ever.</p>
<p>I had to delete 100 million DuplicateRecordBase records in de CRM database (<a href="http://www.powerobjects.com/blog/2009/10/18/crm-4-large-duplicaterecordbase-table/">More info</a>)</p>
<div>
<table style="border-collapse: collapse; border: solid black 0.5pt;" border="0">
<colgroup span="1">
<col style="width: 614px;" span="1"></col>
</colgroup>
<tbody>
<tr>
<td style="padding-left: 7px; padding-right: 7px;"> <span style="color: #0070c0;"><strong>select</strong></span> count(*) <span style="color: #0070c0;"><strong>from</strong></span> DuplicateRecordBase</td>
</tr>
<tr>
<td style="padding-left: 7px; padding-right: 7px;"><img class="alignleft" style="float: left;" src="http://crm.vdsnickt.eu/wp-content/uploads/2010/04/042910_0949_MybiggestSQ1.png" alt="" /></td>
</tr>
</tbody>
</table>
</div>
<p> </p>
<p>I used the following SQL because using the delete statement filled up the hard disk and would have taken ages.</p>
<p><span style="color: #0070c0;"><strong>truncate table</strong></span> DuplicateRecordBase</p>
]]></content:encoded>
			<wfw:commentRss>http://crm.vdsnickt.eu/2010/04/my-biggest-sql-transaction-ever/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show subordinate records after merging accounts</title>
		<link>http://crm.vdsnickt.eu/2010/04/show-subordinate-records-after-merging-accounts/</link>
		<comments>http://crm.vdsnickt.eu/2010/04/show-subordinate-records-after-merging-accounts/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 11:07:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MS CRM 4.0]]></category>
		<category><![CDATA[Customizations]]></category>
		<category><![CDATA[MS CRM]]></category>

		<guid isPermaLink="false">http://crm.vdsnickt.eu/?p=134</guid>
		<description><![CDATA[First create an IFrame on your form, this will contain the associated view. In my case I&#8217;m using the account entity. Add the following lines of javascript code to the OnLoad of your account, this will show the associated view in the iframe.   var CRM_FORM_TYPE_CREATE = 1; var CRM_FORM_TYPE_UPDATE = 2; var CRM_FORM_TYPE_READONLY = [...]]]></description>
			<content:encoded><![CDATA[<p>First create an IFrame on your form, this will contain the associated view. In my case I&#8217;m using the account entity.<br />
<span id="more-134"></span><br />
<img width="580" src="http://crm.vdsnickt.eu/wp-content/uploads/2010/04/041610_1105_Showsubordi11.png" alt="" /></p>
<p>Add the following lines of javascript code to the OnLoad of your account, this will show the associated view in the iframe.</p>
<div>
<table style="border-collapse: collapse;" border="0">
<colgroup span="1">
<col style="width: 614px;" span="1"></col>
</colgroup>
<tbody>
<tr>
<td style="padding-left: 7px; padding-right: 7px; border: solid black 0.5pt;"> </p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">var</span> CRM_FORM_TYPE_CREATE = 1;<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">var</span> CRM_FORM_TYPE_UPDATE = 2;<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">var</span> CRM_FORM_TYPE_READONLY = 3;<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">var</span> CRM_FORM_TYPE_DISABLED = 4;<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">var</span> CRM_FORM_TYPE_QUICKCREATE = 5;<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">var</span> CRM_FORM_TYPE_BULKEDIT = 6;<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">var</span> url = <span style="color: #a31515;">&#8216;/&#8217;</span> + ORG_UNIQUE_NAME + <span style="color: #a31515;">&#8216;/sfa/accts/areas.aspx?oId=&#8217;</span> + crmForm.ObjectId + <span style="color: #a31515;">&#8216;&amp;oType=1&amp;security=852023&amp;tabSet=account_master_account&#8217;</span>;<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;"><span style="color: blue;">switch</span> (crmForm.FormType) {<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">    <span style="color: blue;">case</span> CRM_FORM_TYPE_CREATE:<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">        <span style="color: blue;">break</span>;<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">    <span style="color: blue;">case</span> CRM_FORM_TYPE_UPDATE:<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">        crmForm.all.IFRAME_MergedFromIFrame.src = url;<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">        <span style="color: blue;">break</span>;<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">    <span style="color: blue;">case</span> CRM_FORM_TYPE_READONLY:<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">        crmForm.all.IFRAME_MergedFromIFrame.src = url;<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">        <span style="color: blue;">break</span>;<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">    <span style="color: blue;">case</span> CRM_FORM_TYPE_DISABLED:<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">        crmForm.all.IFRAME_MergedFromIFrame.src = url;<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">        <span style="color: blue;">break</span>;<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">    <span style="color: blue;">case</span> CRM_FORM_TYPE_QUICKCREATE:<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">        <span style="color: blue;">break</span>;<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">    <span style="color: blue;">case</span> CRM_FORM_TYPE_BULKEDIT:<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">        <span style="color: blue;">break</span>;<br />
</span></p>
<p><span style="font-family: Courier New; font-size: 10pt;">}<br />
</span></td>
</tr>
</tbody>
</table>
</div>
<p> </p>
<p>De URL contains the entity type code 1 (1 =accounts) and the name of the relation.</p>
<p><img width="580" src="http://crm.vdsnickt.eu/wp-content/uploads/2010/04/041610_1105_Showsubordi21.png" alt="" /></p>
<p>So far this will show us an iframe containing a grid. There is one more thing we need to do. Because by default the associated views will only show active records therefore the grid will always be empty. To fix this we need to do one of the following 2 solutions.</p>
<p>Export the customizations, change the customization xml and import it again. Explained by <a href="http://ronaldlemmen.blogspot.com/2009/04/displaying-inactive-records-in.html">Ronald Lemmen</a></p>
<p>Or</p>
<p>Using a plugin explained on <a href="http://crm.georged.id.au/post/2008/03/07/Displaying-inactive-records-in-associated-view.aspx">Georged CRM Blog</a></p>
<p>After we made the changes to show disabled records the subordinate records are visible on the account.<br />
<img  width="580" src="http://crm.vdsnickt.eu/wp-content/uploads/2010/04/041610_1105_Showsubordi3.png" alt="" /></p>
<p><img src="http://crm.vdsnickt.eu/wp-content/uploads/2010/04/041610_1105_Showsubordi41.png" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://crm.vdsnickt.eu/2010/04/show-subordinate-records-after-merging-accounts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Host headers issue with WSS 3.0, MOSS 2007 and Search Server 2008</title>
		<link>http://crm.vdsnickt.eu/2009/12/host-headers-issue-with-wss-3-0-moss-2007-and-search-server-2008/</link>
		<comments>http://crm.vdsnickt.eu/2009/12/host-headers-issue-with-wss-3-0-moss-2007-and-search-server-2008/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 15:42:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[Search Server 2008]]></category>
		<category><![CDATA[WSS 3.0]]></category>

		<guid isPermaLink="false">http://crm.vdsnickt.eu/?p=126</guid>
		<description><![CDATA[When installing WSS 3.0, MOSS 2007 or Windows Search Server 2008 I always encounter the same issue when using Host Headers. So I thought it was time to blog this. When I try to access a page which is configured with a host header I get prompt to enter my credentials 3 times. After the [...]]]></description>
			<content:encoded><![CDATA[<p>When installing WSS 3.0, MOSS 2007 or Windows Search Server 2008 I always encounter the same issue when using Host Headers. So I thought it was time to blog this. When I try to access a page which is configured with a host header I get prompt to enter my credentials 3 times. After the third time I get an empty page. This only happens when you access the page from the same machine as the installation. When accessing the page from another PC it works immediately.<span id="more-126"></span></p>
<p>Microsoft created a solution for this:<br />
<a href="http://support.microsoft.com/kb/896861">http://support.microsoft.com/kb/896861</a></p>
<p>To fix this follow these steps:</p>
<ol>
<li>Click Start, click Run, type regedit, and then click OK.</li>
<li>In Registry Editor, locate and then click the following registry key:<br />
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa</li>
<li>Right-click Lsa, point to New, and then click DWORD Value.</li>
<li>Type DisableLoopbackCheck, and then press ENTER.</li>
<li>Right-click DisableLoopbackCheck, and then click Modify.</li>
<li>In the Value data box, type 1, and then click OK.</li>
<li>Quit Registry Editor, and then restart your computer.</li>
</ol>
<p>(In my case it worked without restarting the server)</p>
]]></content:encoded>
			<wfw:commentRss>http://crm.vdsnickt.eu/2009/12/host-headers-issue-with-wss-3-0-moss-2007-and-search-server-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>E-mail Router service failes to start after rollup 5</title>
		<link>http://crm.vdsnickt.eu/2009/08/e-mail-router-service-failes-to-start-after-rollup-5/</link>
		<comments>http://crm.vdsnickt.eu/2009/08/e-mail-router-service-failes-to-start-after-rollup-5/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 16:04:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MS CRM 4.0]]></category>
		<category><![CDATA[E-mail Router]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Eventlog]]></category>
		<category><![CDATA[MS CRM]]></category>
		<category><![CDATA[Rollup]]></category>
		<category><![CDATA[Windows Service]]></category>

		<guid isPermaLink="false">http://crm.vdsnickt.eu/?p=102</guid>
		<description><![CDATA[After installing Microsoft CRM Rollup 5 (incl. reboot) the email router service failed to start. In the event log the following error appeared: The E-mail Router service could not run the service main background thread. Event Type:       Error Event Source:   MSCRMEmail Event Category:               None Event ID:             0 Date:                    4/08/2009 Time:                    16:31:17 User:                    N/A Computer:         VMAP01 [...]]]></description>
			<content:encoded><![CDATA[<p>After installing Microsoft CRM Rollup 5 (incl. reboot) the email router service failed to start. In the event log the following error appeared: The E-mail Router service could not run the service main background thread.<br />
<span id="more-102"></span></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="614" valign="top">Event Type:       Error<br />
Event Source:   MSCRMEmail<br />
Event Category:               None<br />
Event ID:             0<br />
Date:                    4/08/2009<br />
Time:                    16:31:17<br />
User:                    N/A<br />
Computer:         VMAP01<br />
Description:#16192 &#8211; The E-mail Router service could not run the service main background thread. The E-mail Router service cannot continue and will now shut down. System.Configuration.ConfigurationErrorsException: The E-mail router service cannot access system state file Microsoft.Crm.Tools.EmailAgent.SystemState.xml. The file may be missing or may not be accessible. The E-mail Router service cannot continue and will now shut down. &#8212;&gt; System.Xml.XmlException: Root element is missing.   at System.Xml.XmlTextReaderImpl.Throw(Exception e)<br />
   at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)<br />
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()<br />
   at System.Xml.XmlTextReaderImpl.Read()<br />
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)<br />
   at System.Xml.XmlDocument.Load(XmlReader reader)<br />
   at System.Xml.XmlDocument.Load(String filename)<br />
   at Microsoft.Crm.Tools.Email.Providers.ConfigFileReader..ctor(String filePath, ServiceLogger serviceLogger)<br />
   at Microsoft.Crm.Tools.Email.Providers.SystemState.Initialize(ServiceLogger serviceLogger)<br />
   at Microsoft.Crm.Tools.Email.Providers.SystemState..ctor(ServiceLogger serviceLogger)<br />
   at Microsoft.Crm.Tools.Email.Agent.ServiceCore.InitializeSystemConfiguration()   &#8212; End of inner exception stack trace &#8212;<br />
   at Microsoft.Crm.Tools.Email.Agent.ServiceCore.InitializeSystemConfiguration()<br />
   at Microsoft.Crm.Tools.Email.Agent.ServiceCore.ExecuteService()For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.</td>
</tr>
</tbody>
</table>
<p>When I open the file Microsoft.Crm.Tools.EmailAgent.SystemState.xml in the folder &lt;&lt;InstallPath&gt;&gt;\ Service the file was empty. I then looked at the file on other systems and the only thing I found is there was</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="614" valign="top">&lt;State&gt;&lt;/State&gt;</td>
</tr>
</tbody>
</table>
<p> So I opened the file again, entered this xml and saved the file. Now everything seems to work fine.</p>
<p>Edit: Later I found this KB from Microsoft with a simpler solution =&gt; Just delete the file!! :-/<br />
<a href="http://support.microsoft.com/kb/954522">http://support.microsoft.com/kb/954522</a></p>
]]></content:encoded>
			<wfw:commentRss>http://crm.vdsnickt.eu/2009/08/e-mail-router-service-failes-to-start-after-rollup-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Office 2010&#8230; A Movie?</title>
		<link>http://crm.vdsnickt.eu/2009/08/office-2010-a-movie/</link>
		<comments>http://crm.vdsnickt.eu/2009/08/office-2010-a-movie/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 18:09:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Office]]></category>
		<category><![CDATA[Office 2010]]></category>

		<guid isPermaLink="false">http://crm.vdsnickt.eu/?p=107</guid>
		<description><![CDATA[Can you make office 2010 look cool? Maybe it’s the nerd in me speaking but I just loved the new promo movie for the new office release. Go backstage With Office 2010: http://www.office2010themovie.com]]></description>
			<content:encoded><![CDATA[<p>Can you make office 2010 look cool?</p>
<p>Maybe it’s the nerd in me speaking but I just loved the new promo movie for the new office release.<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/VUawhjxLS2I&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/VUawhjxLS2I&amp;hl=en&amp;fs=1&amp;" allowfullscreen="true" allowscriptaccess="always"></embed></object><br />
Go backstage With Office 2010: <a href="http://www.office2010themovie.com/">http://www.office2010themovie.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://crm.vdsnickt.eu/2009/08/office-2010-a-movie/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Speed up development with external JavaScript files</title>
		<link>http://crm.vdsnickt.eu/2009/07/speed-up-development-with-external-javascript-files/</link>
		<comments>http://crm.vdsnickt.eu/2009/07/speed-up-development-with-external-javascript-files/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 17:17:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MS CRM 4.0]]></category>
		<category><![CDATA[Customizations]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MS CRM]]></category>
		<category><![CDATA[SDK]]></category>

		<guid isPermaLink="false">http://crm.vdsnickt.eu/?p=19</guid>
		<description><![CDATA[When creating complicated JavaScript for MS CRM it can be easier to place your code in an external JavaScript file while developing. This content of this file will be loaded and executed in the onload event of the form. To load this file place the following code in the onload event. var url = &#8220;&#8216;/ISV/&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>When creating complicated JavaScript for MS CRM it can be easier to place your code in an external JavaScript file while developing. This content of this file will be loaded and executed in the onload event of the form.<br />
<span id="more-19"></span><br />
To load this file place the following code in the onload event.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:8px;" width="638" valign="top"><span style="color: #0000ff;">var</span> url = <span style="color: #ff0000;"><span style="color: #993300;">&#8220;&#8216;/ISV/&#8221;</span> </span>+ ORG_UNIQUE_NAME + <span style="color: #993300;">&#8220;/javascripts/&#8221;</span> + crmForm.ObjectTypeName + <span style="color: #993300;">&#8220;.js&#8217;&#8221;</span>;<br />
st = document.createElement(<span style="color: #993300;">&#8220;&lt;script src=&#8221;</span> + url + <span style="color: #993300;">&#8221; language=&#8217;JavaScript&#8217;&gt;&#8221;</span>);<br />
h = document.getElementsByTagName(<span style="color: #993300;">&#8220;head&#8221;</span>);<br />
h[0].insertAdjacentElement(<span style="color: #993300;">&#8220;beforeEnd&#8221;</span>, st);</td>
</tr>
</tbody>
</table>
<p> For this to work your file need to be saved like this<br />
<strong><em>&lt;&lt;MS CRM Website&gt;&gt;</em></strong>\ISV\<strong><em>&lt;&lt;Organization Name&gt;&gt;</em></strong>\javascripts\<strong><em>&lt;&lt;entity name&gt;&gt;</em></strong>.js</p>
<p>For example:<br />
I want to create a javascript file to be loaded in the onload of an account form (for the organization advworks). On my development server I first create a file at the following location:<br />
c:\Inetpub\Microsoft Dynamics CRM\ISV\advworks\javascripts\account.js</p>
<p>Next I cut and paste the above JavaScript code in the onload event of the account save and publish it.<br />
Notice I don’t need to change or configure the javascript code in order to make this work! This also works for custom entities.</p>
<p>Al I have to do is start writing JavaScript code in de account.js file, save the file and open an account in MS CRM.</p>
<p>By doing this you can save a lot of time because you don’t need to save your script in the form properties and open the preview form or publish every time if you want to test with live data.</p>
<p>This method is not supported so make sure that after you created and tested your script you cut and paste your script from the file to the onload of the form and remove the JavaScript that loads up your external file.</p>
<p>Happy scripting</p>
]]></content:encoded>
			<wfw:commentRss>http://crm.vdsnickt.eu/2009/07/speed-up-development-with-external-javascript-files/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

