<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments for farhanfaiz's Weblog - SharePoint / MOSS</title>
	<atom:link href="http://farhanfaiz.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://farhanfaiz.wordpress.com</link>
	<description>Bits and Bytes of SharePoint / MOSS</description>
	<pubDate>Wed, 20 Aug 2008 17:32:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
		<item>
		<title>Comment on In line code to upload (supportive) documents by Farhan Faiz</title>
		<link>http://farhanfaiz.wordpress.com/2008/01/21/in-line-code-to-upload-supportive-documents/#comment-334</link>
		<dc:creator>Farhan Faiz</dc:creator>
		<pubDate>Tue, 19 Aug 2008 20:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/2008/01/21/in-line-code-to-upload-supportive-documents/#comment-334</guid>
		<description>Lets try to debug the code. Kindly do the following steps and kindly share the results:

1 - replcae URL in DocLists.Add(URL,content) with a hard coded URL of the file.
2  - Check the size of "content".

3 - Check the values of DocLibFolder and DocLists using debug.

waiting for your reply.</description>
		<content:encoded><![CDATA[<p>Lets try to debug the code. Kindly do the following steps and kindly share the results:</p>
<p>1 - replcae URL in DocLists.Add(URL,content) with a hard coded URL of the file.<br />
2  - Check the size of &#8220;content&#8221;.</p>
<p>3 - Check the values of DocLibFolder and DocLists using debug.</p>
<p>waiting for your reply.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on In line code to upload (supportive) documents by Ali</title>
		<link>http://farhanfaiz.wordpress.com/2008/01/21/in-line-code-to-upload-supportive-documents/#comment-333</link>
		<dc:creator>Ali</dc:creator>
		<pubDate>Tue, 19 Aug 2008 19:27:30 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/2008/01/21/in-line-code-to-upload-supportive-documents/#comment-333</guid>
		<description>Hi Farhan,

i have been trying your code for 2 days. It some how is not working. I get the error of 
"NullReferenceException was handled by user code "
Troulbe shooting Tips:
Use new keyword to create an object instance.
Check to determine if the object is null before the calling method.
Get general help for this exception.

Attach is an excerpt of my code that was inspired from your style of code.

  public void AttachDocument(FileUpload file)
    {

             byte[] content = new byte[file.PostedFile.ContentLength];
             string URL = "http://oss1:22222/test/" + file.FileName;
             
            content = file.FileBytes;
            SPFolder DocLibFolder = WebSite.GetFolder("DLOne");  
            SPFileCollection DocLists = DocLibFolder.Files;
            sp.AllowUnsafeUpdates = true;
            WebSite.AllowUnsafeUpdates = true; 
            SPFile FileAdded = DocLists.Add(URL, content); -&#62; Get an exception at this line
            SPListItem DocAdded = FileAdded.Item;
            DocName = DocAdded.Name;
            DocTitle = DocName.Substring(0, DocName.IndexOf('.'));
            DocAdded["Title"] = DocTitle;
            DocAdded.Update();        
    }</description>
		<content:encoded><![CDATA[<p>Hi Farhan,</p>
<p>i have been trying your code for 2 days. It some how is not working. I get the error of<br />
&#8220;NullReferenceException was handled by user code &#8221;<br />
Troulbe shooting Tips:<br />
Use new keyword to create an object instance.<br />
Check to determine if the object is null before the calling method.<br />
Get general help for this exception.</p>
<p>Attach is an excerpt of my code that was inspired from your style of code.</p>
<p>  public void AttachDocument(FileUpload file)<br />
    {</p>
<p>             byte[] content = new byte[file.PostedFile.ContentLength];<br />
             string URL = &#8220;http://oss1:22222/test/&#8221; + file.FileName;</p>
<p>            content = file.FileBytes;<br />
            SPFolder DocLibFolder = WebSite.GetFolder(&#8221;DLOne&#8221;);<br />
            SPFileCollection DocLists = DocLibFolder.Files;<br />
            sp.AllowUnsafeUpdates = true;<br />
            WebSite.AllowUnsafeUpdates = true;<br />
            SPFile FileAdded = DocLists.Add(URL, content); -&gt; Get an exception at this line<br />
            SPListItem DocAdded = FileAdded.Item;<br />
            DocName = DocAdded.Name;<br />
            DocTitle = DocName.Substring(0, DocName.IndexOf(&#8217;.'));<br />
            DocAdded["Title"] = DocTitle;<br />
            DocAdded.Update();<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MOSS: Add/Set Alerts for multiple/Other Users by Davis Ditto</title>
		<link>http://farhanfaiz.wordpress.com/2008/03/25/moss-addset-alerts-for-multipleother-users/#comment-329</link>
		<dc:creator>Davis Ditto</dc:creator>
		<pubDate>Tue, 19 Aug 2008 10:23:47 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=63#comment-329</guid>
		<description>I have the same problem as Davis, when I set up alerts for the new added items (for views) it doesn't send any thing. But when I say alert me for all changes (for views) it sends me email ... WTF MOSS, WTF MS, WTF alerts shouldn't have this complicatoins &#38; problems ....</description>
		<content:encoded><![CDATA[<p>I have the same problem as Davis, when I set up alerts for the new added items (for views) it doesn&#8217;t send any thing. But when I say alert me for all changes (for views) it sends me email &#8230; WTF MOSS, WTF MS, WTF alerts shouldn&#8217;t have this complicatoins &amp; problems &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MOSS: Microsoft Office SharePoint Designer 2007 Restore Web Sites Error (Exportsettings.xml) by Paul Baker</title>
		<link>http://farhanfaiz.wordpress.com/2008/02/06/moss-microsoft-office-sharepoint-designer-2007-restore-web-sites-error-exportsettingsxml/#comment-328</link>
		<dc:creator>Paul Baker</dc:creator>
		<pubDate>Mon, 18 Aug 2008 15:29:05 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=58#comment-328</guid>
		<description>This is so useful! Worked great but I did have to up the maximum upload file size in sharepoint central admin before I got it to work. Thanks ever so much.</description>
		<content:encoded><![CDATA[<p>This is so useful! Worked great but I did have to up the maximum upload file size in sharepoint central admin before I got it to work. Thanks ever so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating &#38; Adding an Event Handler by Farhan Faiz</title>
		<link>http://farhanfaiz.wordpress.com/2007/12/31/creating-adding-an-event-handler/#comment-326</link>
		<dc:creator>Farhan Faiz</dc:creator>
		<pubDate>Tue, 12 Aug 2008 16:03:05 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/2007/12/31/creating-adding-an-event-handler/#comment-326</guid>
		<description>Dirk,

I don't think so that Updated and Updating event are fired when the item is created for the first time.

Regards,</description>
		<content:encoded><![CDATA[<p>Dirk,</p>
<p>I don&#8217;t think so that Updated and Updating event are fired when the item is created for the first time.</p>
<p>Regards,</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating &#38; Adding an Event Handler by Dirk</title>
		<link>http://farhanfaiz.wordpress.com/2007/12/31/creating-adding-an-event-handler/#comment-325</link>
		<dc:creator>Dirk</dc:creator>
		<pubDate>Tue, 12 Aug 2008 12:51:31 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/2007/12/31/creating-adding-an-event-handler/#comment-325</guid>
		<description>Great sample / tutorial... 

But one question. Is it so that the Updated and Updating event are always fired even when the item is created for the first time?

Greets and thanks for the great post</description>
		<content:encoded><![CDATA[<p>Great sample / tutorial&#8230; </p>
<p>But one question. Is it so that the Updated and Updating event are always fired even when the item is created for the first time?</p>
<p>Greets and thanks for the great post</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MOSS: Microsoft Office SharePoint Designer 2007 Restore Web Sites Error (Exportsettings.xml) by Noman Lakdawala</title>
		<link>http://farhanfaiz.wordpress.com/2008/02/06/moss-microsoft-office-sharepoint-designer-2007-restore-web-sites-error-exportsettingsxml/#comment-324</link>
		<dc:creator>Noman Lakdawala</dc:creator>
		<pubDate>Fri, 08 Aug 2008 23:34:04 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=58#comment-324</guid>
		<description>Great research!
Thanks Farhan</description>
		<content:encoded><![CDATA[<p>Great research!<br />
Thanks Farhan</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MOSS: Back up and Restore Web Sites Using Microsoft Office SharePoint Designer 2007 by Jonas</title>
		<link>http://farhanfaiz.wordpress.com/2008/02/06/moss-back-up-and-restore-web-sites-using-microsoft-office-sharepoint-designer-2007/#comment-323</link>
		<dc:creator>Jonas</dc:creator>
		<pubDate>Fri, 08 Aug 2008 07:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=57#comment-323</guid>
		<description>I'm using the german trial version of Sharepoint Designer at the moment and it does the backup without problems, but creates .fwp-files instead of .cmp. Just for your information.</description>
		<content:encoded><![CDATA[<p>I&#8217;m using the german trial version of Sharepoint Designer at the moment and it does the backup without problems, but creates .fwp-files instead of .cmp. Just for your information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SharePoint 2003 to MOSS 2007 Upgrade: Database migration by Bramley</title>
		<link>http://farhanfaiz.wordpress.com/2008/05/23/sharepoint-upgrade-database-migration/#comment-322</link>
		<dc:creator>Bramley</dc:creator>
		<pubDate>Fri, 01 Aug 2008 15:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=74#comment-322</guid>
		<description>Thanks Farhan, we just installed sql2005 service pack 2, and the recovering model on the database. Will see if this changes anything. So far the test is running will probably end till 2moro</description>
		<content:encoded><![CDATA[<p>Thanks Farhan, we just installed sql2005 service pack 2, and the recovering model on the database. Will see if this changes anything. So far the test is running will probably end till 2moro</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SharePoint 2003 to MOSS 2007 Upgrade: Database migration by Farhan Faiz</title>
		<link>http://farhanfaiz.wordpress.com/2008/05/23/sharepoint-upgrade-database-migration/#comment-321</link>
		<dc:creator>Farhan Faiz</dc:creator>
		<pubDate>Fri, 01 Aug 2008 15:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=74#comment-321</guid>
		<description>Usually Time Out error is SQL Server Error.

If you google like "upgrade SQL Server error", you will find some good resources to sort this out.</description>
		<content:encoded><![CDATA[<p>Usually Time Out error is SQL Server Error.</p>
<p>If you google like &#8220;upgrade SQL Server error&#8221;, you will find some good resources to sort this out.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
