Friday 29 July 2011

underlying hidden error is 'procedure or function has too many arguments specified' error. System.Net.WebException: An exception occurred during a WebClient request. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Inetpub\wwwroot\websitename\photos\5600.jpg'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at System.Net.WebClient.DownloadFile(Uri address, String fileName) --- End of inner exception stack trace --- at System.Net.WebClient.DownloadFile(Uri address, String fileName) at System.Net.WebClient.DownloadFile(String address, String fileName) at ftpClass.FileTransfer.Download() in C:\Inetpub\wwwroot\websitename\App_Code\FileTransfer.vb:line 50

Fix: in UtilHelper.vb.ins_newrow(), add a call to UtilHelper.vb.ClearParameters()
before call to ftpClass.FileTransfer.DownloadPhoto()

No comments:

Post a Comment