<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>sudt : FTP</title><link>http://blogs.iis.net/sudt/archive/tags/FTP/default.aspx</link><description>Tags: FTP</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Collecting ETW traces for FTP Sessions</title><link>http://blogs.iis.net/sudt/archive/2008/08/28/collecting-etw-traces-for-ftp-sessions.aspx</link><pubDate>Thu, 28 Aug 2008 23:28:27 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2587529</guid><dc:creator>SuDT</dc:creator><slash:comments>10</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/sudt/rsscomments.aspx?PostID=2587529</wfw:commentRss><comments>http://blogs.iis.net/sudt/archive/2008/08/28/collecting-etw-traces-for-ftp-sessions.aspx#comments</comments><description>&lt;p&gt;Having problems with FTP Server not returning the expected return code? You have checked the detailed error message, nt event log and ftp log files, still can not get to the bottom of the problem?&lt;/p&gt;  &lt;p&gt;Here are few simple steps you can follow to trace your ftp session and uncover the real cause. This feature is supported on Microsoft FTP Sever 7.0, which can be downloaded from &lt;a title="http://www.microsoft.com/downloads/details.aspx?familyid=2ECCF14A-5C4F-4CFB-9153-CFE1204B346A&amp;amp;displaylang=en" href="http://www.microsoft.com/downloads/details.aspx?familyid=2ECCF14A-5C4F-4CFB-9153-CFE1204B346A&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?familyid=2ECCF14A-5C4F-4CFB-9153-CFE1204B346A&amp;amp;displaylang=en&lt;/a&gt;, and above.&lt;/p&gt;  &lt;p&gt;1. Start FTP ETW Session using logman.exe&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&amp;#160;&amp;#160; Note: You need to be a system administrator on the FTP Server to be able to execute this command.&lt;/em&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;logman start &amp;quot;ftp&amp;quot; -p &amp;quot;IIS: Ftp Server&amp;quot; 255 5 –ets&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;2. Reproduce the error you are hitting&lt;/p&gt;  &lt;p&gt;3. Stop FTP ETW Session using logman.exe&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; &lt;em&gt;Note: You need to be a system administrator on the FTP Server to be able to execute this command.&lt;/em&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;logman stop &amp;quot;ftp&amp;quot; –ets&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;4. Parse the etw log file using logparser.exe&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&amp;#160;&amp;#160;&amp;#160; Note: LogParser can be downloaded from &lt;/em&gt;&lt;a title="http://www.microsoft.com/downloads/details.aspx?FamilyID=890cd06b-abf8-4c25-91b2-f8d975cf8c07^&amp;amp;displaylang=en" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=890cd06b-abf8-4c25-91b2-f8d975cf8c07&amp;amp;displaylang=en"&gt;&lt;em&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=890cd06b-abf8-4c25-91b2-f8d975cf8c07&amp;amp;displaylang=en&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&amp;lt;Path To LogParser&amp;gt;\logparser &amp;quot;select EventTypeName, UserData from ftp.etl&amp;quot; -e 20 -o:DATAGRID -rtp 20 -compactModeSep &amp;quot; | &amp;quot;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;The final step will open the etw log in the following grid format &lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.iis.net/blogs/sudt/WindowsLiveWriter/CollectingETWtracesforFTPSessions_E7A7/image_4.png"&gt;&lt;img title="image" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="386" alt="image" src="http://blogs.iis.net/blogs/sudt/WindowsLiveWriter/CollectingETWtracesforFTPSessions_E7A7/image_thumb_1.png" width="1002" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;In the above case the error is (Event #18) 0x8007002 (Specified File Not Found).&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;-Suditi&lt;/p&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2587529" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/sudt/archive/tags/Publishing/default.aspx">Publishing</category><category domain="http://blogs.iis.net/sudt/archive/tags/Debugging/default.aspx">Debugging</category><category domain="http://blogs.iis.net/sudt/archive/tags/FTP/default.aspx">FTP</category></item></channel></rss>