<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Custom WebDAV Server Using .NET</title>
	<atom:link href="http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/</link>
	<description>Musings of a software developer in Milwaukee, WI.</description>
	<lastBuildDate>Fri, 05 Mar 2010 11:50:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Maddy</title>
		<link>http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/comment-page-2/#comment-16025</link>
		<dc:creator>Maddy</dc:creator>
		<pubDate>Wed, 09 Dec 2009 14:06:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/#comment-16025</guid>
		<description>Hi Zorched,

I am a .Net guy and i am given the job to create a custom webdav which will display contents anf folders  from the content management repository.I googled  a lot but still i am struggling to get the sarting point .From the knowledge i gained from broswing there a two protocols namels FPRPC and webdav which exposes contents as webfolders and Office products can understand the req from these protocols .Can u please help to me create a custom webdav where i have to start with 

Thanks,
Maddy</description>
		<content:encoded><![CDATA[<p>Hi Zorched,</p>
<p>I am a .Net guy and i am given the job to create a custom webdav which will display contents anf folders  from the content management repository.I googled  a lot but still i am struggling to get the sarting point .From the knowledge i gained from broswing there a two protocols namels FPRPC and webdav which exposes contents as webfolders and Office products can understand the req from these protocols .Can u please help to me create a custom webdav where i have to start with </p>
<p>Thanks,<br />
Maddy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gokul</title>
		<link>http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/comment-page-2/#comment-13697</link>
		<dc:creator>gokul</dc:creator>
		<pubDate>Mon, 11 Aug 2008 10:35:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/#comment-13697</guid>
		<description>hi i downloaded from the following site http://sourceforge.net/projects/webdav
this one is maintaining the filesystem only
in that i want with sql database also 
hi anybody developed the webdav with sql backend database share the coding
with me</description>
		<content:encoded><![CDATA[<p>hi i downloaded from the following site <a href="http://sourceforge.net/projects/webdav" rel="nofollow">http://sourceforge.net/projects/webdav</a><br />
this one is maintaining the filesystem only<br />
in that i want with sql database also<br />
hi anybody developed the webdav with sql backend database share the coding<br />
with me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gprakash</title>
		<link>http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/comment-page-2/#comment-13696</link>
		<dc:creator>gprakash</dc:creator>
		<pubDate>Mon, 11 Aug 2008 10:27:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/#comment-13696</guid>
		<description>hi anybody developed the webdav with sql backend database share the coding 
 with me</description>
		<content:encoded><![CDATA[<p>hi anybody developed the webdav with sql backend database share the coding<br />
 with me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/comment-page-2/#comment-11136</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 22 Jan 2008 20:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/#comment-11136</guid>
		<description>Is it possible to download your WebDAV server?</description>
		<content:encoded><![CDATA[<p>Is it possible to download your WebDAV server?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: geetha</title>
		<link>http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/comment-page-2/#comment-11115</link>
		<dc:creator>geetha</dc:creator>
		<pubDate>Mon, 07 Jan 2008 06:49:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/#comment-11115</guid>
		<description>hi all,could somebody help me sending an OPTIONS request to a webdav server from a client.</description>
		<content:encoded><![CDATA[<p>hi all,could somebody help me sending an OPTIONS request to a webdav server from a client.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Germinal Ibarrola</title>
		<link>http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/comment-page-2/#comment-10995</link>
		<dc:creator>Germinal Ibarrola</dc:creator>
		<pubDate>Thu, 11 Oct 2007 15:17:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/#comment-10995</guid>
		<description>Guys,

After a long hiatus, I&#039;m back on the project... the code has been upgraded to VS 2005 

https://sourceforge.net/projects/webdav/

Comments and suggestions welcome!

Germinal</description>
		<content:encoded><![CDATA[<p>Guys,</p>
<p>After a long hiatus, I&#8217;m back on the project&#8230; the code has been upgraded to VS 2005 </p>
<p><a href="https://sourceforge.net/projects/webdav/" rel="nofollow">https://sourceforge.net/projects/webdav/</a></p>
<p>Comments and suggestions welcome!</p>
<p>Germinal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Surendran</title>
		<link>http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/comment-page-2/#comment-10960</link>
		<dc:creator>Surendran</dc:creator>
		<pubDate>Sat, 15 Sep 2007 09:15:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/#comment-10960</guid>
		<description>Hi

I want to send documents generated  by a buisiness process to different clients by FTP over SSL. That applicaion is working fine. But a few of the clients do not have FTP server but using secure HTTP (WebDAV). I need to copy files from folders on local drive or IIS virtual folders to remote web site folders.

The code I found on MSDN is for copying files from one folder to another on the same web site.  In my case I need to copy it either from a local folder or virtual folder in localhost. In the MSDN code I couldn&#039;t figure out a way of providing different credential for accessing resources from localhost and remote host.
Can someone help me to fix the code. Or can someone suggest a different way of doing it in .NET?

[STAThread]
      static void Main(string[] args)
      {
         System.Net.HttpWebRequest Request;
         System.Net.WebResponse Response;
         System.Net.CredentialCache MyCredentialCache;
         string strSourceURI = &quot;http://localhost/Extracts/Client1/test.csv&quot;;
         string strDestURI = &quot;https://200.150.100.50/Uploads/test.csv&quot;;
         string strUserName = &quot;UserName&quot;;
         string strPassword = &quot;password&quot;;
         string strDomain = &quot;Domain&quot;;

         try
         {
            // Create a new CredentialCache object and fill it with the network
            // credentials required to access the server.
            MyCredentialCache = new System.Net.CredentialCache();
            MyCredentialCache.Add( new System.Uri(strSourceURI),
               &quot;NTLM&quot;,
               new System.Net.NetworkCredential(strUserName, strPassword, strDomain)
               );

            // Create the HttpWebRequest object.
            Request = (System.Net.HttpWebRequest)HttpWebRequest.Create(strSourceURI);

            // Add the network credentials to the request.
            Request.Credentials = MyCredentialCache;

            // Specify the COPY method.
            Request.Method = &quot;COPY&quot;;

            // Specify the destination URI.
            Request.Headers.Add(&quot;Destination&quot;, strDestURI);

            // Specify that if a resource already exists at the
            // destination URI, it will not be overwritten.  The
            // server would return a 412 Precondition Failed status code.
            Request.Headers.Add(&quot;Overwrite&quot;, &quot;F&quot;);

            // Send the COPY method request.
            Response = (System.Net.HttpWebResponse)Request.GetResponse();

            // Close the HttpWebResponse object.
            Response.Close();

            Console.WriteLine(&quot;Item successfully copied.&quot;);

         }
         catch(Exception ex)
         {
            // Catch any exceptions. Any error codes from the COPY
            // method request on the server will be caught here, also.
            Console.WriteLine(ex.Message);
         }
      }
   }

Many thanks.</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I want to send documents generated  by a buisiness process to different clients by FTP over SSL. That applicaion is working fine. But a few of the clients do not have FTP server but using secure HTTP (WebDAV). I need to copy files from folders on local drive or IIS virtual folders to remote web site folders.</p>
<p>The code I found on MSDN is for copying files from one folder to another on the same web site.  In my case I need to copy it either from a local folder or virtual folder in localhost. In the MSDN code I couldn&#8217;t figure out a way of providing different credential for accessing resources from localhost and remote host.<br />
Can someone help me to fix the code. Or can someone suggest a different way of doing it in .NET?</p>
<p>[STAThread]<br />
      static void Main(string[] args)<br />
      {<br />
         System.Net.HttpWebRequest Request;<br />
         System.Net.WebResponse Response;<br />
         System.Net.CredentialCache MyCredentialCache;<br />
         string strSourceURI = &#8220;http://localhost/Extracts/Client1/test.csv&#8221;;<br />
         string strDestURI = &#8220;https://200.150.100.50/Uploads/test.csv&#8221;;<br />
         string strUserName = &#8220;UserName&#8221;;<br />
         string strPassword = &#8220;password&#8221;;<br />
         string strDomain = &#8220;Domain&#8221;;</p>
<p>         try<br />
         {<br />
            // Create a new CredentialCache object and fill it with the network<br />
            // credentials required to access the server.<br />
            MyCredentialCache = new System.Net.CredentialCache();<br />
            MyCredentialCache.Add( new System.Uri(strSourceURI),<br />
               &#8220;NTLM&#8221;,<br />
               new System.Net.NetworkCredential(strUserName, strPassword, strDomain)<br />
               );</p>
<p>            // Create the HttpWebRequest object.<br />
            Request = (System.Net.HttpWebRequest)HttpWebRequest.Create(strSourceURI);</p>
<p>            // Add the network credentials to the request.<br />
            Request.Credentials = MyCredentialCache;</p>
<p>            // Specify the COPY method.<br />
            Request.Method = &#8220;COPY&#8221;;</p>
<p>            // Specify the destination URI.<br />
            Request.Headers.Add(&#8220;Destination&#8221;, strDestURI);</p>
<p>            // Specify that if a resource already exists at the<br />
            // destination URI, it will not be overwritten.  The<br />
            // server would return a 412 Precondition Failed status code.<br />
            Request.Headers.Add(&#8220;Overwrite&#8221;, &#8220;F&#8221;);</p>
<p>            // Send the COPY method request.<br />
            Response = (System.Net.HttpWebResponse)Request.GetResponse();</p>
<p>            // Close the HttpWebResponse object.<br />
            Response.Close();</p>
<p>            Console.WriteLine(&#8220;Item successfully copied.&#8221;);</p>
<p>         }<br />
         catch(Exception ex)<br />
         {<br />
            // Catch any exceptions. Any error codes from the COPY<br />
            // method request on the server will be caught here, also.<br />
            Console.WriteLine(ex.Message);<br />
         }<br />
      }<br />
   }</p>
<p>Many thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hoju Saram</title>
		<link>http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/comment-page-2/#comment-10834</link>
		<dc:creator>Hoju Saram</dc:creator>
		<pubDate>Tue, 26 Jun 2007 12:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/#comment-10834</guid>
		<description>Hi geoff, 

Just thought I would let you know that I have just posted a post on my blog about C# webdav server with SQL backend. I have included the full source so it may be useful to anyone wanting to have a look at how you might go about building something like this. You can check it out at:

http://thehojusaram.blogspot.com/2007/06/c-webdav-server-with-sql-backend-source.html

Thanks</description>
		<content:encoded><![CDATA[<p>Hi geoff, </p>
<p>Just thought I would let you know that I have just posted a post on my blog about C# webdav server with SQL backend. I have included the full source so it may be useful to anyone wanting to have a look at how you might go about building something like this. You can check it out at:</p>
<p><a href="http://thehojusaram.blogspot.com/2007/06/c-webdav-server-with-sql-backend-source.html" rel="nofollow">http://thehojusaram.blogspot.com/2007/06/c-webdav-server-with-sql-backend-source.html</a></p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pramod</title>
		<link>http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/comment-page-2/#comment-10826</link>
		<dc:creator>pramod</dc:creator>
		<pubDate>Mon, 18 Jun 2007 07:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/#comment-10826</guid>
		<description>I have configured WebDAV Application on my server win 2003 and everything working fine but  i am not able to set password protectet. plz help me how to over come this problem. ASA</description>
		<content:encoded><![CDATA[<p>I have configured WebDAV Application on my server win 2003 and everything working fine but  i am not able to set password protectet. plz help me how to over come this problem. ASA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff Lane</title>
		<link>http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/comment-page-2/#comment-10786</link>
		<dc:creator>Geoff Lane</dc:creator>
		<pubDate>Wed, 30 May 2007 02:16:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/02/02/custom-webdav-server-using-net/#comment-10786</guid>
		<description>Bill,
Thanks for the great comment and the link to the code.</description>
		<content:encoded><![CDATA[<p>Bill,<br />
Thanks for the great comment and the link to the code.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
