I wrote HTTPModule to handle those WebDAV methods in my own way.
I can see the requests and response through console and through Fiddler.
All looking good.
Now I want to test this using Windows Explorer.
So I mapped a drive (Z:) to my WebDAV directory (\\mycomputername\WebDAV) and it is viewable on Windows Explorer.
Here's the situation.
I assume that WebDAV Redirector is installed in Windows 2003 Server. Correct me please if I am wrong about that.
Would Mapping a drive to my WebDAV directory allow me to use Windows Explorer to interact with the WebDAV directory using WebDAV protocol (HTTP 1.1 based)? If so, I should be able to see the request/response through Fiddler or Wireshark or to debug/set
breakpoints to my HTTPModule code. None of this is happening right now.
For example, if I type in my WebDAV directory in the Address bar of Windows Explorer, I would expect my WebDAV HTTPModule to receive a GET request, but this is not happening. (but if I do this on a Web Browser, it does receive a GET request.)
So apparently, I don't think WebDAV Redirector is enabled properly.
I have looked at Microsoft site
here to see any particulars, but it shows basic settings that I have already done.
Can any of you show me the way to use WebDAV Redirector so I can see the proper request/response interactions?
I see that many people have "view"ed the question, but no one really answers.
I just want to know how to properly enable Microsoft-WebDAV-MiniRedir on IIS 6.0 on Windows 2003 Server.
I mapped a drive to \\localhost\MyWebDAV and can see the folder and its content through Windows Explorer, but if I try to perform any actions through Windows Explorer, my WebDAV server does not receive any WebDAV (HTTP 1.1) requests, which makes me think
that Microsoft-WebDAV-MiniRedir is not really enabled, or am I missing something here?
I have been to that site, and tried it, but it confused me even more because...
Regarding NET USE command syntax, I have researched and asked my IT admin guy too, and it appears that the correct syntax does not allow absolute URL such as "http://localhost/WebDAV/" or "http://servername/WebDAV/" (If I try these, I always get System error
67 has occurred, and Robert McMurray explains about the error
here, but by the syntax, NET USE only allows UNC format such as "\\localhost\WebDAV\" or "\\servername\WebDAV\", and this allows me to map a drive to the address.
Mapping the drive to my WebDAV folder itself does work, and I get to view the folder contents through Windows Explorer.
Now I want to see the WebDAV protocol communication whenever I create/copy/move/delete a folder or a file through Windows Explorer.
That's what I want to do. (and that way, I can verify that WebDAV Mini redirector actually works as well.)
I wish Robert McMurray has something to say about this.
Looking forward to hearing from any of you who knows how to do this.
Cheers,
ADDITION:
I noticed two files:
C:\WINDOWS\system32\drivers\mrxdav.sys (MS WebDAV Mini Redirector)
C:\WINDOWS\system32\davclnt.dll (MS Web DAV Client DLL)
I looked in Task Manager (showing processes from all users) to see if they're in there, but did not see either.
Services has WebClient running.
How do I check these two files are actually up and running or not? If not, how do I enable them?
Sorry for throwing out a bunch of questions.
IIS 6.0WebDavWebDav IEIISiis webdav sbs 2008iiS 6WebDAV Redirector
One thing to keep in mind is that if you are mapping the drive locally like NET USE *
http://localhost/, you will not see that information in a tool like NetMon because the request never leaves your computer - it is simply passing through the local loopback and bypassing your network monitoring software. You would
need to map a drive from another system in order to see it through NetMon.
Another other thing to note is that the WebDAV redirector on the older operating systems like Windows XP and Windows Server 2003 didn't allow you to map to the root of the website unless you used syntax like the following example:
My Windows Server 2003 version is Standard Edition Service Pack 2, and when I run NET USE * http://localhost/WebDAV, I get System error 67 (and no it does not apply to any of the possible conditions you mentioned
here ), but it works if I run NET USE * \\localhost\WebDAV. Maybe you can confirm that NET USE takes only UNC format, because it seems to be the case from my own research, but who am I, you're the Microsoft guy :D
and when I ran tasklist /m davclnt.dll, I noticed that it is attached to winlogin.exe and explorer.exe (and as far as I know explorer.exe is Windows Explorer, but please correct me if I am wrong.)
So, now I am going to test accessing my WebDAV server from another machine using Windows Explorer, and hopefully, this will allow me to see WebDAV protocols in action. (I will update with the result)
As I am waiting for another machine to be available, I tested accessing my http://localhost/WebDAV through FF and IE. Then, looked in the server log, and I see the following log. Noticed Microsoft-WebDAV-MiniRedir is attached to OPTIONS & PROPFIND, but
not GET.
Question) Why is Microsoft-WebDAV-MiniRedir attached to OPTIONS & PROPFIND, but not GET?
Thank you.
UPDATE: I tested from another machine, and the server log does not pick up the request when I created and deleted a file. Here's what I did.
1) Let the server run at 192.168.1.60
2) Log into 192.168.1.224
3) Enable WebClient
4) Run NET USE * http://192.168.1.60/WebDAV --> it asks for userid and password, and when I entered them, it fails --> I am not sure why this fails.
5) So instead of NET USE, I go to My Computer-->Map Network Drive, and leave Drive @ Z:, click on Browse to locate my WebDAV folder at 192.168.1.60, and finish. The folder gets mounted at Z:
6) I tried creating a file and then delete a file on Windows Explorer.
7) Go to 192.168.1.60, and check the log at C:\WINDOWS\system32\LogFiles\W3SVC1 and see the following log.
uwking
18 Posts
Enabling WebDAV redirector on Windows 2003 Server
Apr 13, 2011 02:44 PM|LINK
Hello,
I have enabled WebDAV server on IIS 6.0 on Windows 2003 and tested using the sample from http://blogs.iis.net/robert_mcmurray/archive/2010/02/09/sending-webdav-requests-in-net.aspx?CommentPosted=true#commentmessage to verify that it works.
I wrote HTTPModule to handle those WebDAV methods in my own way.
I can see the requests and response through console and through Fiddler.
All looking good.
Now I want to test this using Windows Explorer.
So I mapped a drive (Z:) to my WebDAV directory (\\mycomputername\WebDAV) and it is viewable on Windows Explorer.
Here's the situation.
I assume that WebDAV Redirector is installed in Windows 2003 Server. Correct me please if I am wrong about that.
Would Mapping a drive to my WebDAV directory allow me to use Windows Explorer to interact with the WebDAV directory using WebDAV protocol (HTTP 1.1 based)? If so, I should be able to see the request/response through Fiddler or Wireshark or to debug/set breakpoints to my HTTPModule code. None of this is happening right now.
For example, if I type in my WebDAV directory in the Address bar of Windows Explorer, I would expect my WebDAV HTTPModule to receive a GET request, but this is not happening. (but if I do this on a Web Browser, it does receive a GET request.)
So apparently, I don't think WebDAV Redirector is enabled properly.
I have looked at Microsoft site here to see any particulars, but it shows basic settings that I have already done.
Can any of you show me the way to use WebDAV Redirector so I can see the proper request/response interactions?
Thanks very much in advance.
IIS 6.0 WebDav IIS6 IIS WebDAV Redirector
uwking
18 Posts
Re: Enabling WebDAV redirector on Windows 2003 Server
Apr 14, 2011 02:42 PM|LINK
Have all the experts gone on vacation?
I see that many people have "view"ed the question, but no one really answers.
I just want to know how to properly enable Microsoft-WebDAV-MiniRedir on IIS 6.0 on Windows 2003 Server.
I mapped a drive to \\localhost\MyWebDAV and can see the folder and its content through Windows Explorer, but if I try to perform any actions through Windows Explorer, my WebDAV server does not receive any WebDAV (HTTP 1.1) requests, which makes me think that Microsoft-WebDAV-MiniRedir is not really enabled, or am I missing something here?
Please help.
stilman
4 Posts
Re: Enabling WebDAV redirector on Windows 2003 Server
Apr 14, 2011 08:54 PM|LINK
uwking
18 Posts
Re: Enabling WebDAV redirector on Windows 2003 Server
Apr 14, 2011 09:12 PM|LINK
Thank you for your reply.
I have been to that site, and tried it, but it confused me even more because...
Regarding NET USE command syntax, I have researched and asked my IT admin guy too, and it appears that the correct syntax does not allow absolute URL such as "http://localhost/WebDAV/" or "http://servername/WebDAV/" (If I try these, I always get System error 67 has occurred, and Robert McMurray explains about the error here, but by the syntax, NET USE only allows UNC format such as "\\localhost\WebDAV\" or "\\servername\WebDAV\", and this allows me to map a drive to the address.
Mapping the drive to my WebDAV folder itself does work, and I get to view the folder contents through Windows Explorer.
Now I want to see the WebDAV protocol communication whenever I create/copy/move/delete a folder or a file through Windows Explorer.
That's what I want to do. (and that way, I can verify that WebDAV Mini redirector actually works as well.)
I wish Robert McMurray has something to say about this.
Looking forward to hearing from any of you who knows how to do this.
Cheers,
ADDITION:
I noticed two files:
C:\WINDOWS\system32\drivers\mrxdav.sys (MS WebDAV Mini Redirector)
C:\WINDOWS\system32\davclnt.dll (MS Web DAV Client DLL)
I looked in Task Manager (showing processes from all users) to see if they're in there, but did not see either.
Services has WebClient running.
How do I check these two files are actually up and running or not? If not, how do I enable them?
Sorry for throwing out a bunch of questions.
IIS 6.0 WebDav WebDav IE IIS iis webdav sbs 2008 iiS 6 WebDAV Redirector
robmcm
309 Posts
MVP
Microsoft
Moderator
Re: Enabling WebDAV redirector on Windows 2003 Server
Apr 15, 2011 01:42 AM|LINK
One thing to keep in mind is that if you are mapping the drive locally like NET USE * http://localhost/, you will not see that information in a tool like NetMon because the request never leaves your computer - it is simply passing through the local loopback and bypassing your network monitoring software. You would need to map a drive from another system in order to see it through NetMon.
Another other thing to note is that the WebDAV redirector on the older operating systems like Windows XP and Windows Server 2003 didn't allow you to map to the root of the website unless you used syntax like the following example:
Windows Server 2008, Windows 7, and Windows Vista didn't have that limitation - you can map directly to the root likeNET USE * http://localhost/ .
All of that being said, the WebClient service is the WebDAV redirector - so if you see that service running, then you have the WebDAV redirector.;-]
To check for the WebDAV client DLL in memory, you can run the following:
That should show you all processes that have that DLL loaded into memory.
uwking
18 Posts
Re: Enabling WebDAV redirector on Windows 2003 Server
Apr 15, 2011 03:33 PM|LINK
Thank you for your reply, Robert :D
My Windows Server 2003 version is Standard Edition Service Pack 2, and when I run NET USE * http://localhost/WebDAV, I get System error 67 (and no it does not apply to any of the possible conditions you mentioned here ), but it works if I run NET USE * \\localhost\WebDAV. Maybe you can confirm that NET USE takes only UNC format, because it seems to be the case from my own research, but who am I, you're the Microsoft guy :D
and when I ran tasklist /m davclnt.dll, I noticed that it is attached to winlogin.exe and explorer.exe (and as far as I know explorer.exe is Windows Explorer, but please correct me if I am wrong.)
So, now I am going to test accessing my WebDAV server from another machine using Windows Explorer, and hopefully, this will allow me to see WebDAV protocols in action. (I will update with the result)
As I am waiting for another machine to be available, I tested accessing my http://localhost/WebDAV through FF and IE. Then, looked in the server log, and I see the following log. Noticed Microsoft-WebDAV-MiniRedir is attached to OPTIONS & PROPFIND, but not GET.
2011-04-15 15:00:49 W3SVC1 127.0.0.1 OPTIONS / - 80 - 127.0.0.1 Microsoft-WebDAV-MiniRedir/5.2.3790 200 0 0
2011-04-15 15:00:49 W3SVC1 127.0.0.1 PROPFIND /WebDAV - 80 - 127.0.0.1 Microsoft-WebDAV-MiniRedir/5.2.3790 401 1 0
2011-04-15 15:00:49 W3SVC1 127.0.0.1 PROPFIND /WebDAV - 80 - 127.0.0.1 Microsoft-WebDAV-MiniRedir/5.2.3790 401 1 0
2011-04-15 15:00:49 W3SVC1 127.0.0.1 PROPFIND /WebDAV - 80 SharedDomain\cchoi 127.0.0.1 Microsoft-WebDAV-MiniRedir/5.2.3790 200 0 0
2011-04-15 15:14:41 W3SVC1 192.168.1.6 GET /WebDAV/ - 80 - 192.168.1.6 Mozilla/5.0+(Windows+NT+5.2;+rv:2.0)+Gecko/20100101+Firefox/4.0 401 1 0
2011-04-15 15:14:41 W3SVC1 192.168.1.6 GET /WebDAV/ - 80 - 192.168.1.6 Mozilla/5.0+(Windows+NT+5.2;+rv:2.0)+Gecko/20100101+Firefox/4.0 401 1 0
2011-04-15 15:14:41 W3SVC1 192.168.1.6 GET /WebDAV/ - 80 SharedDomain\cchoi 192.168.1.6 Mozilla/5.0+(Windows+NT+5.2;+rv:2.0)+Gecko/20100101+Firefox/4.0 200 0 0
2011-04-15 15:16:23 W3SVC1 192.168.1.6 GET /WebDAV/rootFolder/ - 80 SharedDomain\cchoi 192.168.1.6 Mozilla/5.0+(Windows+NT+5.2;+rv:2.0)+Gecko/20100101+Firefox/4.0 200 0 0
2011-04-15 15:16:54 W3SVC1 192.168.1.6 GET /WebDAV - 80 - 192.168.1.6 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 401 1 0
2011-04-15 15:16:54 W3SVC1 192.168.10.60 GET /WebDAV - 80 - 192.168.10.60 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 401 1 0
2011-04-15 15:16:54 W3SVC1 192.168.10.60 GET /WebDAV - 80 IGLOOSOFTWARE\cchoi 192.168.10.60 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 200 0 0
2011-04-15 15:17:18 W3SVC1 192.168.1.6 GET /WebDAV/rootFolder - 80 SharedDomain\cchoi 192.168.1.6 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 200 0 0
2011-04-15 15:17:21 W3SVC1 192.168.1.6 GET /WebDAV/rootFolder - 80 SharedDomain\cchoi 192.168.1.6 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 200 0 0
2011-04-15 15:17:26 W3SVC1 192.168.1.6 GET /WebDAV/rootFolder/contact.html - 80 SharedDomain\cchoi 192.168.1.6 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 200 0 0
2011-04-15 15:17:28 W3SVC1 192.168.1.6 GET /WebDAV/rootFolder - 80 SharedDomain\cchoi 192.168.1.6 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 200 0 0
Question) Why is Microsoft-WebDAV-MiniRedir attached to OPTIONS & PROPFIND, but not GET?
Thank you.
UPDATE: I tested from another machine, and the server log does not pick up the request when I created and deleted a file. Here's what I did.
1) Let the server run at 192.168.1.60
2) Log into 192.168.1.224
3) Enable WebClient
4) Run NET USE * http://192.168.1.60/WebDAV --> it asks for userid and password, and when I entered them, it fails --> I am not sure why this fails.
5) So instead of NET USE, I go to My Computer-->Map Network Drive, and leave Drive @ Z:, click on Browse to locate my WebDAV folder at 192.168.1.60, and finish. The folder gets mounted at Z:
6) I tried creating a file and then delete a file on Windows Explorer.
7) Go to 192.168.1.60, and check the log at C:\WINDOWS\system32\LogFiles\W3SVC1 and see the following log.
2011-04-15 17:15:36 W3SVC1 192.168.1.60 OPTIONS / - 80 - 192.168.1.224 Microsoft-WebDAV-MiniRedir/5.2.3790 200 0 0
2011-04-15 17:15:36 W3SVC1 192.168.1.60 PROPFIND /WebDAV - 80 - 192.168.1.224 Microsoft-WebDAV-MiniRedir/5.2.3790 401 1 0
2011-04-15 17:15:46 W3SVC1 192.168.1.60 PROPFIND /WebDAV - 80 - 192.168.1.224 Microsoft-WebDAV-MiniRedir/5.2.3790 401 1 0
2011-04-15 17:16:01 W3SVC1 192.168.1.60 PROPFIND /WebDAV - 80 - 192.168.1.224 Microsoft-WebDAV-MiniRedir/5.2.3790 401 1 0
2011-04-15 17:16:01 W3SVC1 192.168.1.60 PROPFIND /WebDAV - 80 - 192.168.1.224 Microsoft-WebDAV-MiniRedir/5.2.3790 401 1 2148074252
2011-04-15 17:16:06 W3SVC1 192.168.1.60 PROPFIND /WebDAV - 80 - 192.168.1.224 Microsoft-WebDAV-MiniRedir/5.2.3790 401 1 0
2011-04-15 17:16:20 W3SVC1 192.168.1.60 PROPFIND /WebDAV - 80 - 192.168.1.224 Microsoft-WebDAV-MiniRedir/5.2.3790 401 1 0
2011-04-15 17:16:20 W3SVC1 192.168.1.60 PROPFIND /WebDAV - 80 - 192.168.1.224 Microsoft-WebDAV-MiniRedir/5.2.3790 401 1 0
2011-04-15 17:16:22 W3SVC1 192.168.1.60 PROPFIND /WebDAV - 80 shareddomain\cchoi 192.168.10.224 Microsoft-WebDAV-MiniRedir/5.2.3790 200 0 0
So I do not see any GET, PUT or DELETE method in action.
What am I doing wrong?
Thanks,
IIS 6.0 WebDav WebDav IE IIS iiS 6 WebDAV Redirector