FTP provider for windows 2008 ftp server to automatically delete file after it is downloaded by the

R

Ramesh Singh

Hi All,

Development Environment:
Microsoft Visual Studio 2008, Version 9.0.30729.1
Microsoft .NET Framework Version 3.5 SP1
Windows Server 2008 server service pack1
IIS 7.0
FTP 7.5 service


Reference :

http://learn.iis.net/page.aspx/632/...-that-sends-an-email-when-files-are-uploaded/


Required: FTP provider for windows 2008 ftp server to automatically delete
file after it is downloaded by the client

Problem: I have followed each steps as mention in above link. I have
implemented following interface method.
void IFtpLogProvider.Log(FtpLogEntry loggingParameters)

But my implemented method doesnt not get invovked...

Any kind of help or pointers would be highly appreciated.


Thanks,
Ramesh
 
P

Patrice

Hi,

So :
- double check "Step 3 : Add the custom provider to FTP" was done correctly
- make sure your code is not called. Could it be that your code raises an
exception but that you haven't check the apppropriate log ?

Most often for these kind of things, I try first a dummy implementation to
check the configuration mechanism and how exceptions are handled (possibnly
raising intentionaly an exception). Once this part works, I switch to the
implementation I'm interested in to see if my actual code is working fine,
knowing that the configuration is ok and that possible exceptions are
reported somewhere...

For example when IIS servers a web file I believe it is locked for about one
minute. Not sure if it happens for a FTP file but perhaps is the file still
locked when you try to delete it ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top