Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 26542

Custom FTP Logging

$
0
0

Hello,

So I am trying to implement custom FTP loggin as done in this tutorial: http://www.iis.net/learn/develop/developing-for-ftp/how-to-use-managed-code-c-to-create-a-simple-ftp-logging-

I am using the following enviroment:

  • Windows 8
  • IIS 8
  • Visual Studio 2012

I have followed the instructions exactly, not modifying anything with the following exceptions:

  • Step 1.3 - Selected .net 2.0 project so that I can use GACUTIL 3.5 to load it into C:\Windows\assembly.
  • Step 1.6 - Changed 
    call "%VS90COMNTOOLS%\vsvars32.bat">null
    to
    call "%VS110COMNTOOLS%\vsvars32.bat">null
  • Updated PATH variable to include GACUTIL 3.5 (from windows 7.0A SDK)
  • Created folder C:\logfiles\myftpsite and checked permissions

So after running it I would get no log file generation in c:\logfiles\myftpsite\. 

I have checked the following:

  • configuration -> system.ftpServer -> providerDefinitions in applicationHost.config contains:
    <add name="FtpLoggingDemo" type="FtpLogging.FtpLogDemo,FtpLoggingDemo,version=1.0.0.0,Culture=neutral,PublicKeyToken=b6e842d075c8d170" />
  • Confirmed the version, culture and public key token of the assembly in c:\windows\assembly\FtpLoggingDemo(.dll?)
  • configuration -> system.applicationHost -> sites -> site[name="FTP Site"] -> ftpServer -> customFeatures -> providers in applicationHost.config contains:
    <add name="FtpLoggingDemo" enabled="true" />
     
<div>So I then followed the directions at http://blogs.msdn.com/b/robert_mcmurray/archive/2008/08/29/ftp-and-etw-tracing.aspx to enable ETW and I get the following results:</div> <div>
  • StartCreateProvider - provider=FtpLoggingDemo
  • StartCreateFtpHost
  • FailCreateFtpHost - Return Value=0x80070005
  • FailCreateProvider - Return Value=0x80004005 | ErrorDetails = 
</div>

So it looks like it is trying to load but hitting some kind of error. I am trying to follow the tutorial exactly without modification so that I can get this to work and then customize it.

Thanks,

-Mark


Viewing all articles
Browse latest Browse all 26542


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>