<rss version="2.0" 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:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>MOSS 2007</title>
        <link>http://www.vitendy.net/category/3.aspx</link>
        <description>Microsoft Office SharePoint Server 2007 (Awesome!)</description>
        <language>en-US</language>
        <copyright>Vitendy</copyright>
        <generator>Subtext Version 2.1.2.2</generator>
        <item>
            <title>Dealing with SPListItemVersion and his cousin SPFileVersion during SPFile or SPListItem copying</title>
            <link>http://www.vitendy.com/archive/2009/10/03/dealing-with-splistitemversion-and-his-cousin-spfileversion-during-spfile-or.aspx</link>
            <description>&lt;p&gt;Since I spent so many hours on this, I figured I'll post this to remember...&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;strong&gt;When copying SPFiles from one doc library to another, a few things to keep in mind:&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;&lt;font size="2"&gt;SPFileVersion will not let you get a reference to the SPFile (per MSDN) so &lt;strong&gt;don't &lt;/strong&gt;do this: SPWeb.GetFile(SPFileVersion.Url) because SPFile.Item will be null&lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font size="2"&gt;SPFileVersionCollection (SPFile.Versions) is not in sync with SPListItemVersionCollection. SPFile.Versions actually does NOT return the current version.  So, iterate through all SPFileVersions and use SPFile.Versions.GetVersionFromLabel(SPListItemVersion.VersionLabel)&lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font size="2"&gt;To keep the check in comments with each version, use the following method to add a file to the target library: SPList.RootFolder.Files.Add(url,bytes,true,&lt;strong&gt;SPFileVersion.CheckInComments,&lt;/strong&gt;false)&lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font size="2"&gt;Iterate through versions via a SortedDictionary by Created date property -- the goal is to use SPListItemVersion information to update the newly created SPFile meta data.&lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font size="2"&gt;SPFile.Item.Update() will create a new version; UpdateOverwriteVersion() will not; use the latter with SPFileVersions; use the former when adding a new SPListItem, to set values and incremenet versions.&lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font size="2"&gt;Upload the current version of SPFile outside the SPListItemVersions loop&lt;/font&gt;&lt;/li&gt;
    &lt;li&gt;&lt;font size="2"&gt;Be mindful that SPListItemVersion returns Modified and Created values as non-local time, so convert it.&lt;/font&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;font size="2"&gt;Consider disabling item events during copy.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;A good reference:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;&lt;a href="http://www.k2distillery.com/2007/10/copy-version-history-with_5.html"&gt;http://www.k2distillery.com/2007/10/copy-version-history-with_5.html&lt;/a&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2" /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://www.vitendy.com/aggbug/27.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Vitendy</dc:creator>
            <guid>http://www.vitendy.com/archive/2009/10/03/dealing-with-splistitemversion-and-his-cousin-spfileversion-during-spfile-or.aspx</guid>
            <pubDate>Sat, 03 Oct 2009 15:23:07 GMT</pubDate>
            <wfw:comment>http://www.vitendy.com/comments/27.aspx</wfw:comment>
            <comments>http://www.vitendy.com/archive/2009/10/03/dealing-with-splistitemversion-and-his-cousin-spfileversion-during-spfile-or.aspx#feedback</comments>
            <wfw:commentRss>http://www.vitendy.com/comments/commentRss/27.aspx</wfw:commentRss>
        </item>
        <item>
            <title>More MOSS search crawler issues </title>
            <link>http://www.vitendy.com/archive/2009/05/09/more-moss-search-crawler-issues.aspx</link>
            <description>&lt;p&gt;&lt;font face="Arial"&gt;&lt;strong&gt;"The crawler could not communicate with the server. Check that the server is available and that the firewall access is configured correctly.."&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;This error sometimes shows up in the Crawl Log in the SSP.&lt;/p&gt;
&lt;p&gt;The issue in my case was a custom database that the crawler account did not have access to. Of course an easy way to figure this out is to login to the website as the crawler account -- to see what it sees...  It worked. A quick adjustment of SQL permissions and voila, we're crawling again.&lt;br /&gt;
&lt;/p&gt;&lt;img src="http://www.vitendy.com/aggbug/23.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Vitaly</dc:creator>
            <guid>http://www.vitendy.com/archive/2009/05/09/more-moss-search-crawler-issues.aspx</guid>
            <pubDate>Sat, 09 May 2009 19:45:33 GMT</pubDate>
            <wfw:comment>http://www.vitendy.com/comments/23.aspx</wfw:comment>
            <comments>http://www.vitendy.com/archive/2009/05/09/more-moss-search-crawler-issues.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://www.vitendy.com/comments/commentRss/23.aspx</wfw:commentRss>
        </item>
        <item>
            <title>MOSS Search Crawler not crawling content on Devevelopment machine</title>
            <link>http://www.vitendy.com/archive/2009/05/09/moss-search-crawler-not-crawling-content-on-devevelopment-machine.aspx</link>
            <description>&lt;p&gt;Pesky little thing. MS introduced a loopback security check for websites accessed locally on the server. &lt;/p&gt;
&lt;p&gt;To fix:&lt;font face="Arial"&gt;&lt;a href="http://support.microsoft.com/kb/896861"&gt;http://support.microsoft.com/kb/896861&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Click &lt;strong class="uiterm"&gt;Start&lt;/strong&gt;, click &lt;strong class="uiterm"&gt;Run&lt;/strong&gt;, type &lt;span class="userInput"&gt;regedit&lt;/span&gt;, and then click &lt;strong class="uiterm"&gt;OK&lt;/strong&gt;. &lt;/p&gt;
&lt;li&gt;In Registry Editor, locate and then click the following registry key:
&lt;div class="indent"&gt;&lt;strong class="uiterm"&gt;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa&lt;/strong&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Right-click &lt;strong class="uiterm"&gt;Lsa&lt;/strong&gt;, point to &lt;strong class="uiterm"&gt;New&lt;/strong&gt;, and then click &lt;strong class="uiterm"&gt;DWORD Value&lt;/strong&gt;. &lt;/li&gt;
&lt;li&gt;Type &lt;span class="userInput"&gt;DisableLoopbackCheck&lt;/span&gt;, and then press ENTER. &lt;/li&gt;
&lt;li&gt;Right-click &lt;strong class="uiterm"&gt;DisableLoopbackCheck&lt;/strong&gt;, and then click &lt;strong class="uiterm"&gt;Modify&lt;/strong&gt;. &lt;/li&gt;
&lt;li&gt;In the &lt;strong class="uiterm"&gt;Value data&lt;/strong&gt; box, type &lt;span class="userInput"&gt;1&lt;/span&gt;, and then click &lt;strong class="uiterm"&gt;OK&lt;/strong&gt;. &lt;/li&gt;
&lt;li&gt;Quit Registry Editor, and then restart your computer.&lt;/li&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://www.vitendy.com/aggbug/21.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Vitaly</dc:creator>
            <guid>http://www.vitendy.com/archive/2009/05/09/moss-search-crawler-not-crawling-content-on-devevelopment-machine.aspx</guid>
            <pubDate>Sat, 09 May 2009 19:09:43 GMT</pubDate>
            <wfw:comment>http://www.vitendy.com/comments/21.aspx</wfw:comment>
            <comments>http://www.vitendy.com/archive/2009/05/09/moss-search-crawler-not-crawling-content-on-devevelopment-machine.aspx#feedback</comments>
            <wfw:commentRss>http://www.vitendy.com/comments/commentRss/21.aspx</wfw:commentRss>
        </item>
        <item>
            <title>SharePoint Timer Service and custom jobs</title>
            <link>http://www.vitendy.com/archive/2008/10/29/sharepoint-timer-service-and-custom-jobs.aspx</link>
            <description>&lt;p&gt;When deploying custom &lt;font face="Arial"&gt;&lt;strong&gt;SPOneTimeSchedule&lt;/strong&gt; &lt;/font&gt;job definitions sometimes the timer service (OWSTIMER.EXE) just sorta sits there. Your job definition is created, but isn't executed. It will most likely eventually run, but I have better things to do than sit around wait for it. Setting the time for the job in the past seems to move things along faster. &lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;// Create new job&lt;br /&gt;
CustomJob MyJob = new CustomJob(Constants.JOB_NAME, webApp, properties.Definition.DisplayName);&lt;br /&gt;
MyJob.Title = Constants.JOB_TITLE;&lt;br /&gt;
&lt;/font&gt;&lt;font face="Arial"&gt;&lt;br /&gt;
// Set up the job to run once&lt;br /&gt;
&lt;font style="BACKGROUND-COLOR: #ffff00"&gt;MyJob.Schedule = new SPOneTimeSchedule(DateTime.Now.AddHours(-4));&lt;/font&gt;&lt;br /&gt;
MyJob.Update();&lt;br /&gt;
&lt;/font&gt;&lt;font face="Arial" /&gt;
&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" /&gt;&lt;/p&gt;
&lt;img src="http://www.vitendy.com/aggbug/15.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Vitaly</dc:creator>
            <guid>http://www.vitendy.com/archive/2008/10/29/sharepoint-timer-service-and-custom-jobs.aspx</guid>
            <pubDate>Wed, 29 Oct 2008 16:17:57 GMT</pubDate>
            <wfw:comment>http://www.vitendy.com/comments/15.aspx</wfw:comment>
            <comments>http://www.vitendy.com/archive/2008/10/29/sharepoint-timer-service-and-custom-jobs.aspx#feedback</comments>
            <wfw:commentRss>http://www.vitendy.com/comments/commentRss/15.aspx</wfw:commentRss>
        </item>
        <item>
            <title>DNN And SharePoint</title>
            <link>http://www.vitendy.com/archive/2008/01/02/post-wedding-dnn-and-sharepoint.aspx</link>
            <description>&lt;p&gt;About a year ago I've started to focus on two technologies to develop websites with. Dot Net Nuke and SharePoint. Both products are .Net based and Microsoft backed. At the end of this post are links to articles that do a good job comparing the two frameworks. Needless to say, as frameworks, these products vary greatly in the way you can accomplish your goals. Nevertheless, having the common thread of .Net makes them similiar in so many ways. &lt;/p&gt;
&lt;p&gt;I'm excited to continue to explore (and amazed at) some of the powerful tools that each product provides out of the box.  As a freelance developer I find myself constantly saving time (and building better websites) by discovering new modules for DNN (thanks to the dev. community) and the power behind lists in SharePoint.  &lt;/p&gt;
&lt;p&gt;The links:&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;a href="http://msdn.microsoft.com/msdnmag/issues/07/12/EndBracket/"&gt;http://msdn.microsoft.com/msdnmag/issues/07/12/EndBracket/&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;a href="http://www.dotnetnuke.com/community/blogs/tabid/825/entryid/1653/default.aspx"&gt;http://www.dotnetnuke.com/community/blogs/tabid/825/entryid/1653/default.aspx&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://www.vitendy.com/aggbug/1.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Vitaly</dc:creator>
            <guid>http://www.vitendy.com/archive/2008/01/02/post-wedding-dnn-and-sharepoint.aspx</guid>
            <pubDate>Wed, 02 Jan 2008 10:34:30 GMT</pubDate>
            <wfw:comment>http://www.vitendy.com/comments/1.aspx</wfw:comment>
            <comments>http://www.vitendy.com/archive/2008/01/02/post-wedding-dnn-and-sharepoint.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://www.vitendy.com/comments/commentRss/1.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>