Using a code behind, I am uploading a file to an FTP
server.
1. Check the directory selected.
2. Check that the filename does not already exist on the
ftp server, if it does, rename it and check again.
3. Upload the file
4. Build and send an email
I have my web.config file set to accept a file up to 25MB.
(Also have a requirement for 100MB)
Often get the error Exception has been thrown by the
target of an invocation. Did a try/catch around just the
upload part, got this error. . yet the file uploads, in
it's entirety. What can I do to get this to work? GOing
live with web page soon.
Thanks.
server.
1. Check the directory selected.
2. Check that the filename does not already exist on the
ftp server, if it does, rename it and check again.
3. Upload the file
4. Build and send an email
I have my web.config file set to accept a file up to 25MB.
(Also have a requirement for 100MB)
Often get the error Exception has been thrown by the
target of an invocation. Did a try/catch around just the
upload part, got this error. . yet the file uploads, in
it's entirety. What can I do to get this to work? GOing
live with web page soon.
Thanks.