473,383 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Classic asp [Dynu FTP] component Help Needed

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

Apr 25 '06 #1
4 4402

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 su*****@dynu.com.

--
Mike Brind

Apr 26 '06 #2
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" <pa*******@hotmail.com> wrote in message
news:11*********************@v46g2000cwv.googlegro 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 su*****@dynu.com.

--
Mike Brind

Apr 26 '06 #3
On Wed, 26 Apr 2006 08:26:20 -0500, "Michael Kujawa" <nof at kujawas dot
net> wrote:
in <Ot**************@TK2MSFTNGP04.phx.gbl>
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
Apr 26 '06 #4
I ended up going with an Xceed component
works great.. no muss, no fuss
"Stefan Berglund" <so**************@for.me> wrote in message
news:el********************************@4ax.com...
On Wed, 26 Apr 2006 08:26:20 -0500, "Michael Kujawa" <nof at kujawas dot
net> wrote:
in <Ot**************@TK2MSFTNGP04.phx.gbl>
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

Apr 26 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tushar Karsan | last post by:
(Replies followed to: microsoft.public.dotnet.framework only) What is the best method of transferring files between FTP servers using .Net Framework using C#? Is there a .Framework API that...
99
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
2
by: RichDef | last post by:
Hello everyone! I have been running some tests of a component that simply returns an image path based upon some logic and a simple select statement to an Access db. The component had to be...
3
by: Web Webon | last post by:
Hi everybody! I wonder if this is possible? I need to determine if a client is using "windows classic folders" or anything else. If I instantiate a Shell ActiveX object is there a way of...
10
by: Abhishek | last post by:
Hi! I need to develop a FTP server for my application. I want it precisely on C#. I want it to have the basic FTP server facilities like logging in and being able to traverse within the...
3
by: Mark | last post by:
Hi From what I understand, you can pass arrays from classic ASP to .NET using interop, but you have to change the type of the.NET parameter to object. This seems to be because classic ASP passes...
16
by: Lacka | last post by:
Hi, How can I transfer files via FTP under asp.net? Don't found any info... thanks, Lacka
9
by: Charles Law | last post by:
Hi chaps I realise that this is a .NET group, but please don't shoot me down quite yet. I looked in the vb classic groups and there seems to be so little activity there that I was not hopeful of...
6
by: Laphan | last post by:
Hi All I can't get round this because it's a local government thing, but I've done a CMS for a school (in ASP classic) that allows them to upload gifs, jpgs, pdfs and docs to their site for the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.