<feed xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
    <title>Steve Boldt</title>
    <link rel="self" type="application/atom+xml" href="http://blogs.bluethreadinc.com/sboldt/Atom.aspx" />
    <subtitle type="html" />
    <id>http://blogs.bluethreadinc.com/sboldt/Default.aspx</id>
    <author>
        <name>Steve Boldt</name>
        <uri>http://blogs.bluethreadinc.com/sboldt/Default.aspx</uri>
    </author>
    <generator uri="http://subtextproject.com" version="Subtext Version 2.1.1.1">Subtext</generator>
    <updated>2009-02-17T13:12:53Z</updated>
    <entry>
        <title>Security Workaround for Installing Apps on Windows Server 2K8</title>
        <link rel="alternate" type="text/html" href="http://blogs.bluethreadinc.com/sboldt/archive/2009/02/17/15.aspx" />
        <id>http://blogs.bluethreadinc.com/sboldt/archive/2009/02/17/15.aspx</id>
        <published>2009-02-17T13:02:23Z</published>
        <updated>2009-02-17T13:12:53Z</updated>
        <content type="html">&lt;p&gt;When attempting to install applications on Windows Server 2008, even though the user account is part of the administrator group, you will receive an error stating as follows:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;"A&lt;font face="Arial"&gt;dministrator privileges are required to install a web application&lt;/font&gt;"&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This is due to the fact that being part of the Local Administrator Group doesn't provide the same access as the Local Administrator Account (the same also applies to Windows Vista).  With Windows Server 2K8, the administrator access token is split into 2 tokens when logged into the server. One of these is an administrator token and the other a standard user token. During the logon process, authorization and access control components that identify an administrator are removed, leaving a standard user token. The standard user token is used to start the desktop and, therefore, all applications that start, will be run as a standard administrator.  As a result of this, the workaround is to disable the UAC (User Account Control) so that the logged in user will have the administrator token. It's interesting to note that the error that you receive isn't a UAC pop-up message, but just a general error message. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;u&gt;&lt;font size="4"&gt;Disabling UAC&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
    &lt;li&gt;Click &lt;strong&gt;Start, &lt;/strong&gt;and then &lt;strong&gt;Control Panel&lt;/strong&gt; &lt;/li&gt;
    &lt;li&gt;Click on &lt;strong&gt;User Accounts&lt;/strong&gt; &lt;/li&gt;
    &lt;li&gt;Click on &lt;strong&gt;Turn User Accounts on or off&lt;/strong&gt; &lt;/li&gt;
    &lt;li&gt;Uncheck the &lt;strong&gt;User User Account Control (UAC) to help protect your computer&lt;/strong&gt; checkbox and click &lt;strong&gt;OK&lt;/strong&gt; &lt;/li&gt;
    &lt;li&gt;Click on &lt;strong&gt;Restart Now&lt;/strong&gt; &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;*&lt;/strong&gt;&lt;em&gt;Note, it is not recommended to leave UAC turned off due to the exposure of increased risk of malicious software attacks.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;For further information regarding UAC and configuring it on Windows Server 2K8, please see Microsoft's TechNet article: &lt;font face="Arial"&gt;&lt;a href="http://technet.microsoft.com/en-us/library/cc709691.aspx"&gt;http://technet.microsoft.com/en-us/library/cc709691.aspx&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;&lt;img src="http://blogs.bluethreadinc.com/sboldt/aggbug/15.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blogs.bluethreadinc.com/sboldt/comments/15.aspx</wfw:comment>
        <slash:comments>4</slash:comments>
        <wfw:commentRss>http://blogs.bluethreadinc.com/sboldt/comments/commentRss/15.aspx</wfw:commentRss>
        <trackback:ping>http://blogs.bluethreadinc.com/sboldt/services/trackbacks/15.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Creating a SharePoint Custom Event Handler</title>
        <link rel="alternate" type="text/html" href="http://blogs.bluethreadinc.com/sboldt/archive/2009/01/09/11.aspx" />
        <id>http://blogs.bluethreadinc.com/sboldt/archive/2009/01/09/11.aspx</id>
        <published>2009-01-09T16:47:23Z</published>
        <updated>2009-01-09T16:47:23Z</updated>
        <content type="html">&lt;div style="MARGIN: 0in 0in 10pt"&gt;I’ll review the basic steps on creating a SharePoint custom event handler.&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 10pt"&gt;You begin by opening up Microsoft Visual Studio 2005 and create a new class project. Reference the Microsoft.SharePoint assembly and then rename the default.cs class to the name that you want to give to your event handler. Also, remember to add your using statement for Microsoft.SharePoint. &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 10pt"&gt;Depending on which type of event handler you are wanting to write, will determine the proper SharePoint class to derive from. A breakdown of the available SharePoint classes to derive from are as follows:&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt 'Times New Roman'"&gt;         &lt;/span&gt;&lt;/span&gt;List Items – SPItemEventReceiver&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt 'Times New Roman'"&gt;         &lt;/span&gt;&lt;/span&gt;List Columns – SPListEventReceiver&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt 'Times New Roman'"&gt;         &lt;/span&gt;&lt;/span&gt;Site – SPWebEventReceiver&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in"&gt;&lt;span&gt;·&lt;span style="FONT: 7pt 'Times New Roman'"&gt;         &lt;/span&gt;&lt;/span&gt;Email – SPEmailEventReciever&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 10pt"&gt;At this point, you need to make a decision on whether you want to use Asynchronous or Synchronous events in your event handler. In order to determine which one you want, first decide if you want the event to fire before or after the event. &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 10pt"&gt;Asynchronous calls occur after the event, and do not block any code being executed in SharePoint. On the flipside, synchronous calls occur before the event, will block code being executed in SharePoint until your custom event handler is completed. &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 10pt"&gt;For a list of the available methods for each class, refer to Microsoft’s site:&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;SPItemEventReceiver Methods &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spitemeventreceiver_methods.aspx&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;SPListEventReceiver Methods&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisteventreceiver_methods.aspx&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;SPWebEventReceiver Methods &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spwebeventreceiver_methods.aspx&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;SPEmailEventReceiver Methods&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spemaileventreceiver_methods.aspx"&gt;&lt;font color="#800080"&gt;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spemaileventreceiver_methods.aspx&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;Once you make your decision on what type of event receiver and also what type of method call you will be using, write out the override method . I will discuss further on manipulating particular methods. &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;u&gt;Creating a Strong Name Key&lt;/u&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;After completing your method, you will need to sign the assembly. You can do this by going into solution explorer and right clicking your project and selecting properties. Then, click the &lt;strong&gt;Signing&lt;/strong&gt; tab, then select &lt;strong&gt;Sign the Assembly&lt;/strong&gt;, then select &lt;strong&gt;Choose a strong name key file&lt;/strong&gt; and click “&lt;strong&gt;&amp;lt;New…&amp;gt;&lt;/strong&gt;”. Type a name into the &lt;strong&gt;Key file name&lt;/strong&gt; box (usually the name of your project). It needs to be in the format of xxxxxx.snk. You can set a password if you want, and click &lt;strong&gt;OK&lt;/strong&gt;.&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;u&gt;Creating Event Receiver to be installed as a Feature&lt;/u&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;Right click on your event handler project and select Add / New Folder. Name the folder as the same name as the project or similar. Add to blank XML files under the folder. Name the XML files as elements.xml and the other feature.xml.&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;In the feature.xml file, it should follow the following format:&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Feature&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red"&gt;Scope&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;"&lt;span style="COLOR: blue"&gt;Web&lt;/span&gt;"&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;      &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red"&gt;Title&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;"&lt;span style="COLOR: blue"&gt;My Event Handler&lt;/span&gt;"&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;      &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red"&gt;Description&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt; =&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;"&lt;span style="COLOR: blue"&gt;Description goes here.&lt;/span&gt;"&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;      &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red"&gt;Id&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;"&lt;span style="COLOR: blue"&gt;F141E5EA-796E-4807-AB86-43F5DC560371&lt;/span&gt;"&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;      &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red"&gt;xmlns&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;"&lt;span style="COLOR: blue"&gt;http://schemas.microsoft.com/sharepoint/&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;      &amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;ElementManifests&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;            &amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;ElementManifest&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red"&gt;Location&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;"&lt;span style="COLOR: blue"&gt;elements.xml&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;      &amp;lt;/&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;ElementManifests&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 10pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; LINE-HEIGHT: 115%"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515; LINE-HEIGHT: 115%"&gt;Feature&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; LINE-HEIGHT: 115%"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;For further explanation, refer to the Microsoft site for all the available nodes. &lt;a href="http://msdn.microsoft.com/en-us/library/ms436075.aspx"&gt;&lt;font color="#800080"&gt;http://msdn.microsoft.com/en-us/library/ms436075.aspx&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Elements&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red"&gt;xmlns&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;"&lt;span style="COLOR: blue"&gt;http://schemas.microsoft.com/sharepoint/&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;      &amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Receivers&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red"&gt;ListTemplateId&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;"&lt;span style="COLOR: blue"&gt;101&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;            &amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Receiver&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;                  &amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Name&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;MyEventHandler&lt;span style="COLOR: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR: #a31515"&gt;Name&lt;/span&gt;&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;                  &amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Type&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;ItemAdded&lt;span style="COLOR: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR: #a31515"&gt;Type&lt;/span&gt;&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;                  &amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;SequenceNumber&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;10000&lt;span style="COLOR: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR: #a31515"&gt;SequenceNumber&lt;/span&gt;&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;                  &amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Assembly&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;MyEventHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1cd942f82aed8c82&lt;span style="COLOR: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR: #a31515"&gt;Assembly&lt;/span&gt;&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;                  &amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Class&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;MyEventHandler.EventHandler&lt;span style="COLOR: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR: #a31515"&gt;Class&lt;/span&gt;&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;                  &amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Data&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Data&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;                  &amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Filter&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Filter&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;            &amp;lt;/&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Receiver&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;      &amp;lt;/&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Receivers&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 10pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; LINE-HEIGHT: 115%"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515; LINE-HEIGHT: 115%"&gt;Elements&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; LINE-HEIGHT: 115%"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;In the elements.xml, the &lt;strong&gt;ListTemplateId&lt;/strong&gt; refers to which list to associate the event handler. 101 = document library. For a description of the available id, see here: &lt;a href="http://msdn.microsoft.com/en-us/library/ms462947.aspx"&gt;&lt;font color="#800080"&gt;http://msdn.microsoft.com/en-us/library/ms462947.aspx&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;The &amp;lt;&lt;strong&gt;Type&amp;gt;&lt;/strong&gt; node refers to the method that will be raised when the action takes place. For multiple methods, you will need multiple &amp;lt;&lt;strong&gt;Receiver&amp;gt;&lt;/strong&gt; nodes. &amp;lt;&lt;strong&gt;SequenceNumber&lt;/strong&gt;&amp;gt;node refers to the order of execution.&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;span style="FONT-SIZE: 11pt; LINE-HEIGHT: 115%"&gt;&lt;br clear="all" /&gt;
&lt;/span&gt;
&lt;div style="MARGIN: 0in 0in 10pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;Add a text file to the root of the project and rename it to cab.ddf and input the following:&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: #4f81bd"&gt;;** MyEventHandler.wsp **&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: #4f81bd"&gt;.OPTION EXPLICIT&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: #4f81bd"&gt;.Set CabinetNameTemplate= MyEventHandler.wsp&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: #4f81bd"&gt;.Set DiskDirectoryTemplate=CDROM&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: #4f81bd"&gt;.Set CompressionType=MSZIP&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: #4f81bd"&gt;.Set UniqueFiles="ON"&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: #4f81bd"&gt;.Set Cabinet=on&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: #4f81bd"&gt;.Set DiskDirectory1=Package&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: #4f81bd"&gt;;**************************************************&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: #4f81bd"&gt;manifest.xml manifest.xml&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: #4f81bd"&gt;MyEventHandler\elements.xml MyEventHandler \elements.xml&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: #4f81bd"&gt;MyEventHandler \feature.xml MyEventHandler \feature.xml&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: #4f81bd"&gt;bin\debug\ MyEventHandler.dll MyEventHandler.dll&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;Then add another text file and rename that one to &lt;strong&gt;installer.bat&lt;/strong&gt;. The following should be inputted:&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #4f81bd"&gt;makecab /f cab.ddf&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt; &lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt"&gt;Add a new xml file to the root of the project and rename it to &lt;strong&gt;manifest.xml&lt;/strong&gt; and input the following:&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;lt;?&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;xml&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red"&gt;version&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;"&lt;span style="COLOR: blue"&gt;1.0&lt;/span&gt;"&lt;span style="COLOR: red"&gt;encoding&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;utf-8&lt;/span&gt;"&lt;span style="COLOR: blue"&gt; ?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Solution&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red"&gt;xmlns&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;"&lt;span style="COLOR: blue"&gt;http://schemas.microsoft.com/sharepoint/&lt;/span&gt;"&lt;span style="COLOR: red"&gt;SolutionId&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;BF2A762B-A158-456c-BCA5-38120E87D982&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;      &amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;FeatureManifests&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;            &amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;FeatureManifest&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red"&gt;Location&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;"&lt;span style="COLOR: blue"&gt;MyEventHandler\feature.xml&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;      &amp;lt;/&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;FeatureManifests&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;      &amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Assemblies&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;            &amp;lt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Assembly&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: red"&gt;DeploymentTarget&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;"&lt;span style="COLOR: blue"&gt;GlobalAssemblyCache&lt;/span&gt;"&lt;span style="COLOR: blue"&gt; &lt;/span&gt;&lt;span style="COLOR: red"&gt;Location&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;MyEventHandler.dll&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;            &amp;lt;/&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Assembly&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;      &amp;lt;/&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515"&gt;Assemblies&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 10pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; LINE-HEIGHT: 115%"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #a31515; LINE-HEIGHT: 115%"&gt;Solution&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; LINE-HEIGHT: 115%"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="FONT-SIZE: 11pt; LINE-HEIGHT: 115%"&gt;Save all your work and build your project.&lt;/span&gt;&lt;img src="http://blogs.bluethreadinc.com/sboldt/aggbug/11.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blogs.bluethreadinc.com/sboldt/comments/11.aspx</wfw:comment>
        <slash:comments>9</slash:comments>
        <wfw:commentRss>http://blogs.bluethreadinc.com/sboldt/comments/commentRss/11.aspx</wfw:commentRss>
        <trackback:ping>http://blogs.bluethreadinc.com/sboldt/services/trackbacks/11.aspx</trackback:ping>
    </entry>
</feed>