Hello again Abhishek,
For FTP to work, there has to be a program running on the client computer
and another program running on the Server.
I don't know what HB.Web is, but from the fact that this is a web
application, you have your FTP "client" running on the web server. That
will give you the right to send FROM the web server to somewhere else, but
not the ability to send from the client to the server.
Of course it would work on your workstation. You are both the client and
the server. You are sending to yourself.
A rich client MUST run on a client machine (one that is using FTP to
transmit files). You can use the built-in Windows FTP client (command line)
or you can write your own or you can purchase one. CuteFTP is nice, as you
know. Although I haven't done a lot of checking, I imagine that there are
ActiveX controls out there that will act like a rich FTP client (but they
would probably need to be installed on the client machine using an MSI in
order to overcome the security limitations placed by Windows XP SP2).
I hate to say this, but... redesign your app.
I hope this helps,
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Abhishek" <ab******@alwayshelpful.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I have uploaded the webapp on my server
Now i am running the application from my server (normal web hosting
server) I am uploading it to another FTP server . Now I am receiving this error
System.IO.FileNotFoundException: Could not find file "C:\Documents and
Settings\Administrator\Desktop\12.txt". File name: "C:\Documents and
Settings\Administrator\Desktop\12.txt" at
System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.FileStream..ctor(String path, FileMode
mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean
useAsync, String msgPath, Boolean bFromProxy) at
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
FileShare share) at HB.Web.Ftp.FileTransfer.OpenFile(Boolean upload) at
HB.Web.Ftp.FileTransfer.Transfer(Boolean upload, Socket dataConnection,
TextWriter serverOutput) at HB.Web.Ftp.FileUpload.Upload(TextWriter
clientOutput, TextWriter serverOutput) at
HB.Web.Ftp.PassiveFileUpload.Upload(TextWriter clientOutput, TextWriter
serverOutput) at WebApplication1.creatNew.UploadFile(String szRemotePath)
Now here the " C:\Documents and Settings\Administrator\Desktop\12.txt "
is of my local file that i want to upload
any suggestions or ideas?
Regards
Abhishek