<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>braindumps</title>
	<atom:link href="http://snataw.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://snataw.wordpress.com</link>
	<description>by Stephanus Natawardaja</description>
	<lastBuildDate>Mon, 23 Jan 2012 06:21:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='snataw.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/1ea8f02feddbab11f757709e292a5eaf?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>braindumps</title>
		<link>http://snataw.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://snataw.wordpress.com/osd.xml" title="braindumps" />
	<atom:link rel='hub' href='http://snataw.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Enable Tracing in CRM E-mail Router</title>
		<link>http://snataw.wordpress.com/2012/01/23/enable-tracing-on-crm-e-mail-router/</link>
		<comments>http://snataw.wordpress.com/2012/01/23/enable-tracing-on-crm-e-mail-router/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 06:06:28 +0000</pubDate>
		<dc:creator>snataw</dc:creator>
				<category><![CDATA[Dynamics CRM]]></category>

		<guid isPermaLink="false">http://snataw.wordpress.com/?p=23</guid>
		<description><![CDATA[In a case where you think you have done the right setup for CRM incoming and outgoing email, yet something isn&#8217;t working as expected (e.g. email not sent or tracked correctly), then you might need to enable tracing on the CRM E-mail Router. This Microsoft Support article describes how to enable tracing in Microsoft Dynamics [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=snataw.wordpress.com&amp;blog=3877928&amp;post=23&amp;subd=snataw&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In a case where you think you have done the right setup for CRM incoming and outgoing email, yet something isn&#8217;t working as expected (e.g. email not sent or tracked correctly), then you might need to enable tracing on the CRM E-mail Router.</p>
<p>This Microsoft Support article describes how to enable tracing in Microsoft Dynamics CRM. Scroll down and look for <strong>Microsoft Dynamics CRM E-mail Router.</strong></p>
<p><strong><a title="http://support.microsoft.com/kb/907490" href="http://support.microsoft.com/kb/907490" target="_blank">http://support.microsoft.com/kb/907490</a></strong></p>
<p>I suggest un-comment the line &#8220;C:\Temp\CRMEmail.log&#8221; to log to a file rather than to the events log.</p>
<p>Once enabled, you&#8217;ll see very verbose messages, such as:</p>
<blockquote>
<pre><span style="color:#ff0000;">01/23/2012 15:45:17 : #26090 - An error occurred while opening mailbox email@domain.com. System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 66.111.165.61:110</span>
<span style="color:#ff0000;">   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)</span>
<span style="color:#ff0000;">   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)</span>
<span style="color:#ff0000;">   at System.Net.Sockets.TcpClient.Connect(IPEndPoint remoteEP)</span>
<span style="color:#ff0000;">   at System.Net.Sockets.TcpClient.Connect(IPAddress address, Int32 port)</span>
<span style="color:#ff0000;">   at Microsoft.Crm.Tools.Email.Providers.Pop3Client.Connect(Boolean useSsl)</span>
<span style="color:#ff0000;">   at Microsoft.Crm.Tools.Email.Providers.Pop3PollingMailboxProvider.OpenMailbox()</span>
<span style="color:#ff0000;">   at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.Run()</span></pre>
</blockquote>
<p>- which turns out that the incoming email configuration was incorrect. And then below,</p>
<blockquote>
<pre>01/23/2012 16:45:18 : #9542 - The E-mail Router service successfully scheduled a provider work item using assembly: Microsoft.Crm.Tools.EmailProviders.dll and class: Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.
 01/23/2012 16:45:18 : #25161 - The E-mail Router service is running a provider work item using assembly: Microsoft.Crm.Tools.EmailProviders.dll and class: Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.
 01/23/2012 16:45:19 : #21381 - Opening mailbox email@domain.com.
 01/23/2012 16:45:19 : #65508 - Exchange Server not found in dictionary, calling exchange autodiscover.
 01/23/2012 16:45:19 : #31826 - Refreshing configuration settings.
 01/23/2012 16:45:19 : #9542 - The E-mail Router service successfully scheduled a provider work item using assembly: Microsoft.Crm.Tools.EmailProviders.dll and class: Microsoft.Crm.Tools.Email.Providers.SmtpPollingSendEmailProvider.
 01/23/2012 16:45:19 : #25161 - The E-mail Router service is running a provider work item using assembly: Microsoft.Crm.Tools.EmailProviders.dll and class: Microsoft.Crm.Tools.Email.Providers.SmtpPollingSendEmailProvider.
 01/23/2012 16:45:19 : #62269 - Checking for outgoing e-mail messages to process for SMTP: http://crmserver/orgname.
 01/23/2012 16:45:20 : #29426 - There are no e-mail messages to process in mailbox SMTP: http://crmserver/orgname.
 01/23/2012 16:45:20 : #60687 - The thread that is processing mailbox SMTP: http://crmserver/orgname is shutting down as requested.
 01/23/2012 16:45:20 : #31826 - Refreshing configuration settings.
 01/23/2012 16:45:21 : #31826 - Refreshing configuration settings.
 01/23/2012 16:45:22 : #31826 - Refreshing configuration settings.
 01/23/2012 16:45:23 : #31826 - Refreshing configuration settings.
 <span style="color:#ff0000;">01/23/2012 16:45:24 : #26090 - An error occurred while opening mailbox email@domain.com. Microsoft.Crm.Tools.Email.Providers.EmailException: No results were found.</span>
 <span style="color:#ff0000;"> at Microsoft.Crm.Tools.Email.Providers.ExchangeWSConnector.IsCurrentUser()</span>
 <span style="color:#ff0000;"> at Microsoft.Crm.Tools.Email.Providers.ExchangeWSConnector.GetService()</span>
 <span style="color:#ff0000;"> at Microsoft.Crm.Tools.Email.Providers.ExchangeWSConnector.OpenMailbox()</span>
 <span style="color:#ff0000;"> at Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.InitExchangeConnector()</span>
 <span style="color:#ff0000;"> at Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.OpenMailbox()</span>
 <span style="color:#ff0000;"> at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.Run()</span>
 01/23/2012 16:45:24 : #19780 - Closing mailbox email@domain.com.
 01/23/2012 16:45:24 : #31826 - Refreshing configuration settings.</pre>
</blockquote>
<p>- which according to another <a title="http://support.microsoft.com/kb/2190890" href="http://support.microsoft.com/kb/2190890" target="_blank">Microsoft Support article</a>, is because the mailbox is hidden from the Exchange address lists.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/snataw.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/snataw.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/snataw.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/snataw.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/snataw.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/snataw.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/snataw.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/snataw.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/snataw.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/snataw.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/snataw.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/snataw.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/snataw.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/snataw.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=snataw.wordpress.com&amp;blog=3877928&amp;post=23&amp;subd=snataw&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://snataw.wordpress.com/2012/01/23/enable-tracing-on-crm-e-mail-router/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ca8b5d4c1dd3f21880202565e8fb654?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snataw</media:title>
		</media:content>
	</item>
		<item>
		<title>Tweak your computer for running virtual machines</title>
		<link>http://snataw.wordpress.com/2008/06/19/tweak-your-computer-for-running-virtual-machines/</link>
		<comments>http://snataw.wordpress.com/2008/06/19/tweak-your-computer-for-running-virtual-machines/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 14:12:31 +0000</pubDate>
		<dc:creator>snataw</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[optimise]]></category>
		<category><![CDATA[optimize]]></category>
		<category><![CDATA[windows vista]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[virtual pc]]></category>
		<category><![CDATA[virtual server]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://snataw.wordpress.com/?p=11</guid>
		<description><![CDATA[If your computer Operating System (OS) is  Windows Vista, and you use virtualisation for development purposes (e.g. SharePoint solutions), then the following tips and tricks will help you boost overall computer performance: Add more RAM to the computer. Obviously the more RAM you have, the faster the performance becomes. For running a basic Windows Server 2003 image with SQL Server [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=snataw.wordpress.com&amp;blog=3877928&amp;post=11&amp;subd=snataw&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If your computer Operating System (OS) is  Windows Vista, and you use virtualisation for development purposes (e.g. SharePoint solutions), then the following tips and tricks will help you boost overall computer performance:</p>
<ol>
<li><strong>Add more RAM to the computer</strong>. Obviously the more RAM you have, the faster the performance becomes. For running a basic Windows Server 2003 image with SQL Server 2005 and SharePoint Services (WSS or MOSS), I recommend at least 768 MB of RAM for the image, and at least 768 MB for your host OS (Windows Vista). I recently upgraded my work laptop from 2 to 3GB and could immediately notice the extra performance.<br />
<span style="color:#ffffff;">.</span></li>
<li><strong>Enable Virtualization in the host computer BIOS</strong>. If you use a DELL notebook, press F2 to get into the BIOS when the computer restarts. Navigate to POST Behavior  &gt; Virtualization, and enable virtualisation.<br />
<span style="color:#ffffff;">.</span></li>
<li><strong>Run image from a different hard drive.</strong>  For example, a portable hard drive<br />
<span style="color:#ffffff;">.</span></li>
<li><strong>Disable unnecessary visual effects.</strong> Right click on My Computer, then select Properties. Click Advanced system On the System Properties window, click tab Advanced, and Performance Settings.<br />
<span style="color:#ffffff;">.</span><br />
In the Visual Effects tab, select Adjust for best performance.<br />
<span style="color:#ffffff;">.<br />
</span><a href="http://snataw.files.wordpress.com/2008/06/systemproperties.png"><img class="alignnone size-medium wp-image-13" src="http://snataw.files.wordpress.com/2008/06/systemproperties.png?w=290&#038;h=300" alt="" width="290" height="300" /></a><br />
<span style="color:#ffffff;">.</span><br />
Also change the desktop wallpaper by selecting a solid colour.<br />
<span style="color:#ffffff;">.</span></li>
<li><strong>Disable unnecessary services</strong>. Open the Services console (Start &gt; Run&#8230; &gt; [Type in "services.msc"]. Disable the following services:</li>
</ol>
<ul>
<li>Superfetch - though marketed as &#8220;Maintains and improves system performance over time.&#8221;, it seems to do the opposite</li>
<li>Themes &#8211; this will disable Windows Vista themes</li>
</ul>
<p> </p>
<p> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/snataw.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/snataw.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/snataw.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/snataw.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/snataw.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/snataw.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/snataw.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/snataw.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/snataw.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/snataw.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/snataw.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/snataw.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/snataw.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/snataw.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/snataw.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/snataw.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=snataw.wordpress.com&amp;blog=3877928&amp;post=11&amp;subd=snataw&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://snataw.wordpress.com/2008/06/19/tweak-your-computer-for-running-virtual-machines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ca8b5d4c1dd3f21880202565e8fb654?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snataw</media:title>
		</media:content>

		<media:content url="http://snataw.files.wordpress.com/2008/06/systemproperties.png?w=290" medium="image" />
	</item>
		<item>
		<title>Change date time format of an ASP.NET web application</title>
		<link>http://snataw.wordpress.com/2008/06/14/change-date-time-format-of-an-aspnet-web-application/</link>
		<comments>http://snataw.wordpress.com/2008/06/14/change-date-time-format-of-an-aspnet-web-application/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 15:25:35 +0000</pubDate>
		<dc:creator>snataw</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[culture]]></category>
		<category><![CDATA[datetime]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[web.config]]></category>

		<guid isPermaLink="false">http://snataw.wordpress.com/?p=6</guid>
		<description><![CDATA[Having worked with ASP.NET websites for a couple of years, I often run into problems with different culture settings in development, staging and production servers. For example, you develop an ASP.NET web application on your local PC and test on a staging server, both of which have Australia setup as their location. Now the application is about to be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=snataw.wordpress.com&amp;blog=3877928&amp;post=6&amp;subd=snataw&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Having worked with ASP.NET websites for a couple of years, I often run into problems with different culture settings in development, staging and production servers.</p>
<p>For example, you develop an ASP.NET web application on your local PC and test on a staging server, both of which have Australia setup as their location. Now the application is about to be deployed to a production server. It is often the case that to save on running costs, the client chooses US-based shared servers over Australian-based ones. As a result, you notice that the site displays date in a different format &#8211; e.g. mm/dd/yyyy ( 12/25/2008 ) instead of dd/mm/yyyy ( 25/12/2008 ).</p>
<p>Of course as with many shared servers, you don&#8217;t have the privilege to change the global settings on the server as it would affect all other websites hosted on the box. A quick and easy way to overcome this is to add a setting to the web.config file:</p>
<p><pre class="brush: xml;">
&lt;configuration&gt;
   &lt;system.web&gt;
      &lt;globalization culture=&quot;en-AU&quot; uiCulture=&quot;en-AU&quot; /&gt;
   &lt;/system.web&gt;
&lt;/configuration&gt;
</pre></p>
<p>Further reading: <a href="http://msdn.microsoft.com/en-us/library/bz9tc508.aspx">http://msdn.microsoft.com/en-us/library/bz9tc508.aspx</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/snataw.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/snataw.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/snataw.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/snataw.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/snataw.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/snataw.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/snataw.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/snataw.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/snataw.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/snataw.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/snataw.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/snataw.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/snataw.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/snataw.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/snataw.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/snataw.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=snataw.wordpress.com&amp;blog=3877928&amp;post=6&amp;subd=snataw&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://snataw.wordpress.com/2008/06/14/change-date-time-format-of-an-aspnet-web-application/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ca8b5d4c1dd3f21880202565e8fb654?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snataw</media:title>
		</media:content>
	</item>
		<item>
		<title>Pre-populate document metadata upon upload with event handlers</title>
		<link>http://snataw.wordpress.com/2008/06/11/prepopulate-sharepoint-document-libraries-upon-file-upload-with-event-handlers/</link>
		<comments>http://snataw.wordpress.com/2008/06/11/prepopulate-sharepoint-document-libraries-upon-file-upload-with-event-handlers/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 14:54:05 +0000</pubDate>
		<dc:creator>snataw</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[document library]]></category>
		<category><![CDATA[event handlers]]></category>

		<guid isPermaLink="false">http://snataw.wordpress.com/?p=3</guid>
		<description><![CDATA[I recently worked on a project whereby the user needed to upload one or more files, and store metadata for these files. As most of the metadata was reflected in parts of the filenames, there was also a need for an automated process to extract and pre-populate to the relevant fields upon upload. The solution consisted of a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=snataw.wordpress.com&amp;blog=3877928&amp;post=3&amp;subd=snataw&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I recently worked on a project whereby the user needed to upload one or more files, and store metadata for these files. As most of the metadata was reflected in parts of the filenames, there was also a need for an automated process to extract and pre-populate to the relevant fields upon upload.</p>
<p>The solution consisted of a document library with custom columns to hold the metadata. The automation process was taken care by event handlers. Upon a file upload, the event handler would try to extract metadata from the filename, and populate the values into the metadata fields in the edit form page. The user could then choose to accept or modify the metadata.</p>
<pre>Sample code goes here - coming soon!</pre>
<p>A few important/useful notes&#8230;</p>
<ol>
<li>Brian Wilson wrote a great set of tutorials on <a href="http://blogs.msdn.com/brianwilson/archive/2007/03/05/part-1-event-handlers-everything-you-need-to-know-about-microsoft-office-sharepoint-portal-server-moss-event-handlers.aspx">SharePoint event handlers</a>.</li>
<li>Don’t forget that when creating an event handler class, it must inherit <strong>SPItemEventReceiver</strong>.</li>
<li>In my scenario above, the best place to put the code was in <strong>ItemAdding</strong>, as oppose to ItemAdded. One big difference between the two methods is that ItemAdding is <em>synchronous</em>. This means that the page will wait for the code to finish execute before displaying the metadata screen – perfect for me to extract and populate metadata values from filenames. ItemAdded, on the other hand, is <em>asynchronous</em>. Hence the page will not wait until the code has finished executing.</li>
<li>Use properties.<strong>AfterProperties</strong>, as oppose to BeforeProperties.</li>
<li><strong>Dispose SPSite</strong> and <strong>SPWeb</strong> objects as required. Roger Lamb has a nice and clear explanation about <a href="http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx">WSS 3 and MOSS 2007 dispose pattern</a>.</li>
<li>In most cases, you will need to refer to list fields by their <strong>internal names</strong>, except when the field name contains full stops (&#8220;.&#8221;) <span style="color:#808080;">- I&#8217;ll come back to this in the future with some explanation why</span>.</li>
<li>For development purposes, use third party tools such as <strong><a href="http://www.codeplex.com/spi/">SharePoint Inspector</a> </strong>to attach the event handlers to the list, as oppose of building and deploying features to do this.</li>
</ol>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/snataw.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/snataw.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/snataw.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/snataw.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/snataw.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/snataw.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/snataw.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/snataw.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/snataw.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/snataw.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/snataw.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/snataw.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/snataw.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/snataw.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/snataw.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/snataw.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=snataw.wordpress.com&amp;blog=3877928&amp;post=3&amp;subd=snataw&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://snataw.wordpress.com/2008/06/11/prepopulate-sharepoint-document-libraries-upon-file-upload-with-event-handlers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ca8b5d4c1dd3f21880202565e8fb654?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snataw</media:title>
		</media:content>
	</item>
	</channel>
</rss>
