Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Classic asp [Dynu FTP] component Help Needed

Reply
Thread Tools

Classic asp [Dynu FTP] component Help Needed

 
 
Michael Kujawa
Guest
Posts: n/a
 
      04-25-2006
Hi all,

If anyone has experience with Dynu FTP object maybe
you could help me out. Hopefully it is a simple solution.
I "have" referred to the component documentation and I
am still having troubles transferring a file in ascii mode

I am sure I am doing this correctly but I still am getting
binary transfer type and not an ascii transfer. Basically a
user uploads a file via internet. The file then gets unzipped
and the unzipped file is sent to a tandem server. Lastly the
zipped and unzipped files are deleted from the user upload
point.

everything works except for the transfer type using dynu ftp
It HAS to be ascii.

<%
zs.open "select * from FTSUsers where UserID='" & Session("UserID") & "'",
connstrx, 3, 4
if not zs.eof then
pUsername=rtrim(zs("TLogin"))
pPassword=rtrim(zs("Tpassword"))
pDirectory=rtrim(zs("TFTPDIR"))
Response.Write "<br>File uploaded Directory is: " & pDirectory
Response.Write "<br>Tandem Login is: " & pUsername
Response.Write "<br>Tandem Password is: " & pPassword & "<br>"
else
end if
zs.close

Set objZip = Server.CreateObject("XStandard.Zip")
objZip.UnPack Session("file2"), "\ \ myserver\uncshare\ " &
Session("UserDir") & "\InStage\"

For Each objItem In objZip.Contents(Session("file2"))
Session("file3") = "\ \ myserver\uncshare\ " & Session("UserDir") &
"\InStage\" & objItem.Name
Session("file4") = objItem.Name
Next
Set objZip = Nothing

Response.Write "<br>File Path is: " & Session("file3")
Response.Write "<br>File Name is: " & Session("file4") & "<BR><BR>"

Set oFTP = Server.Createobject("Dynu.FTP")
pServer = "10.85.217.30"

pLocalfile = Session("file3")
pRemoteFile = pDirectory & "/" & Session("file4")
If oFTP.Connect(cstr(pServer), cstr(pUsername), cstr(pPassword), 21) Then
Response.Write "Logged on to Ftp server successfully!"
If oFtp.PutFile(cstr(pLocalfile), cstr(pRemoteFile), , "ascii") Then
Response.Write "<BR>" & oFTP.ReturnMessage & "<br>"
Response.Write "<br>File uploaded successfully!"
Else
Response.Write "<br>File upload failed!"
Response.Write "<BR>" & oFTP.ReturnMessage & "<br>"
End If
Else
Response.Write "<br>Login to Ftp server failed!<br>"
End If
set oFTP = nothing

Set Upload = Server.CreateObject("Persits.Upload")
Upload.DeleteFile Session("file2")
Upload.DeleteFile Session("file3")
%>

and the error I get is:
553 Error: Structured file transfer only allowed in ascii mode



 
Reply With Quote
 
 
 
 
Mike Brind
Guest
Posts: n/a
 
      04-26-2006

Michael Kujawa wrote:
> Hi all,
>
> If anyone has experience with Dynu FTP object maybe
> you could help me out.


I would have thought you are much more likely to get a helpful response
from .

--
Mike Brind

 
Reply With Quote
 
 
 
 
Michael Kujawa
Guest
Posts: n/a
 
      04-26-2006
One would think wouldn't one.

But that is not the case. I have emailed
and phoned and emailed and phoned until
my fingers are more tired from that then generating
income from finishing the site..

This is the last part of the process and I did not really
see any other classic ASP components out there to
do ftp puts on a internal ftp server [or external for that matter]

Does anyone have any recommendations?? either how
to get this to work or other 3rd party vendors for a classic asp
ftp component?





"Mike Brind" <> wrote in message
news: ups.com...
>
> Michael Kujawa wrote:
> > Hi all,
> >
> > If anyone has experience with Dynu FTP object maybe
> > you could help me out.

>
> I would have thought you are much more likely to get a helpful response
> from .
>
> --
> Mike Brind
>



 
Reply With Quote
 
Stefan Berglund
Guest
Posts: n/a
 
      04-26-2006
On Wed, 26 Apr 2006 08:26:20 -0500, "Michael Kujawa" <nof at kujawas dot
net> wrote:
in <>

>One would think wouldn't one.
>
>But that is not the case. I have emailed
>and phoned and emailed and phoned until
>my fingers are more tired from that then generating
>income from finishing the site..
>
>This is the last part of the process and I did not really
>see any other classic ASP components out there to
>do ftp puts on a internal ftp server [or external for that matter]
>
>Does anyone have any recommendations?? either how
>to get this to work or other 3rd party vendors for a classic asp
>ftp component?


I've had success using a web based SQL Server to maintain a list of
requests such as creating PDFs, uploading files via FTP, and other
various tasks that are initiated via various web ASP interfaces.

A desktop computer behind my firewall running a tiny VB6 app polls an
ASP every five minutes and returns a list of requests to be processed
which are delegated to another VB6 app for processing.

All really simple and not a single component required other than a
helper computer.

---

Stefan Berglund
 
Reply With Quote
 
Michael Kujawa
Guest
Posts: n/a
 
      04-26-2006
I ended up going with an Xceed component
works great.. no muss, no fuss


"Stefan Berglund" <> wrote in message
news:...
> On Wed, 26 Apr 2006 08:26:20 -0500, "Michael Kujawa" <nof at kujawas dot
> net> wrote:
> in <>
>
> >One would think wouldn't one.
> >
> >But that is not the case. I have emailed
> >and phoned and emailed and phoned until
> >my fingers are more tired from that then generating
> >income from finishing the site..
> >
> >This is the last part of the process and I did not really
> >see any other classic ASP components out there to
> >do ftp puts on a internal ftp server [or external for that matter]
> >
> >Does anyone have any recommendations?? either how
> >to get this to work or other 3rd party vendors for a classic asp
> >ftp component?

>
> I've had success using a web based SQL Server to maintain a list of
> requests such as creating PDFs, uploading files via FTP, and other
> various tasks that are initiated via various web ASP interfaces.
>
> A desktop computer behind my firewall running a tiny VB6 app polls an
> ASP every five minutes and returns a list of requests to be processed
> which are delegated to another VB6 app for processing.
>
> All really simple and not a single component required other than a
> helper computer.
>
> ---
>
> Stefan Berglund



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
classic IE -> IIS -> SQL Double hop issue - Help needed resolving =?Utf-8?B?Q2h1Y2sgSGFlYmVybGU=?= ASP .Net 2 10-15-2005 12:16 AM
.net Component to be used with Classic ASP =?Utf-8?B?ZG90bmV0dGVzdGVy?= ASP .Net 3 08-23-2005 06:26 PM
Is there any POP3 and NNTP component I can use as a ASP Component? Miguel Minora ASP General 1 01-11-2005 10:16 PM
asp.NET dll-component: server security hole ?? (managed component) nicholas ASP .Net 3 10-04-2004 11:44 AM
Guidance from classic ASP to ASP.NET help needed jm ASP .Net 3 01-21-2004 01:53 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57