msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FTP Error 125 Data already open

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB General Discussions
Author Message
Alan Gillott



Joined: 25 Feb 2008
Posts: 1

PostPosted: Mon Feb 25, 2008 12:31 pm    Post subject: FTP Error 125 Data already open Reply with quote

Can anyone offer a words of one syllable explanation of this error? I've
scoured all the samples I can find, and my code appears to reflect everyone
elses and no samples seem to handle errors. Here's the code:

Private Function DoFTPRequest(ByVal url As String, ByVal method As String,
ByVal usebinary As Boolean, ByRef data As stream) As FtpStatusCode
'Imports System.Net
'Imports System.IO
Dim result As FtpStatusCode
Dim req As FtpWebRequest
Dim resp As FtpWebResponse
Dim creds As New NetworkCredential("anonymous", "dummy@email.com")
creds.UserName = "anonymous" 'For testing
creds.Password = "dummy@email.com"
req = DirectCast(WebRequest.Create(url), FtpWebRequest)
With req
''''''.Credentials = creds
.UseBinary = usebinary
.UsePassive = True
.KeepAlive = True
'.Method = method
.Method = "LIST"
resp = .GetResponse()
data = resp.GetResponseStream
result = resp.StatusCode
End With
Return result
End Function

It seems to give me the samer error with or without credentials. I'm
inclined to suspect an infrastructure or installation issue.
A

Archived from group: microsoft>public>vb>general>discussion
Back to top
View user's profile Send private message
Mike Williams



Joined: 04 Oct 2007
Posts: 1309

PostPosted: Mon Feb 25, 2008 6:17 pm    Post subject: Re: FTP Error 125 Data already open Reply with quote

"Alan Gillott" wrote in message @microsoft.com...

> Can anyone offer a words of one syllable explanation
> of this error? Here's the code:
>
> Private Function DoFTPRequest(ByVal url As String . . . etc
> 'Imports System.Net
> 'Imports System.IO

That doesn't look like Visual Basic code. Are you sure you're not using an
imposter, something that is pretending to be Visual Basic but is actually
something else?

Mike
Back to top
View user's profile Send private message
Bob Butler



Joined: 04 Oct 2007
Posts: 1081

PostPosted: Mon Feb 25, 2008 10:31 am    Post subject: Re: FTP Error 125 Data already open Reply with quote

"Alan Gillott" wrote in message @microsoft.com...
> Can anyone offer a words of one syllable explanation of this error?

Not here. That's not VB, it is VB.Net.


--
You need to ask in a newsgroup with "dotnet" in the name. This group is for
VB 6.0 and earlier and does not include VB.Net or VB 200x.

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
either getting a Syntax error - or data mismatch error - Ple I wrote the following code: cnAp.Open & _ "Data Reporting Reporting System.mdb" "SELECT idrawdata, shiftnotes FROM frmShiftnotes WHERE idrawdata =" & mrsrawdtata

Decompile ok-Open project error Hi.I decompiled a program and i saved the project..then i tryed to open it with vb but says error.. i tryed to open the project or the forms seperate..but i get errors... i opened it with txt and i see that the code is like loc_004EA185: var_10 = &H4037C0

Port Open Error. Is there a way to find out what has the por How can I find out what has the port open?

Please help - getting error when open program - "Type Mismat When I run the program in design mode "Ctr-F5" everything runs ok. Also I can make it an exe. file "File menu, make exe.". The program compiles ok... However, once I try to run the exe. program it gives me an error "Type Mismatch" run-time error 13. I can

Spatial Data Wizard? Compile Error Just wondering if someone can help wiht this error message. It's been a few months since I've played with VB and the fact that I need some coffee isn't helping. When I try and run the Spatial Data Import Wizard for MapPoint I get the following error :"Com
Post new topic   Reply to topic    msvisual.com Forum Index -> VB General Discussions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group