Login  
Search All Forums
Dart Home | PowerTCP FTP for .NET | Custom Development Reply | PowerTCP FTP for .NET Topics | Forums   
AuthorForum: PowerTCP FTP for .NET
Topic: The requested address is not valid in its context
Tri

From: San Francisco, CA USA
Posts: 12
Member Since: 07/22/03
posted August 1, 2003 1:08 PM

I get the following exception when trying to do a List command. What could be the cause?

Message: The requested address is not valid in its context
Target Site: System.Object c(System.Delegate, System.Object[])

Stack Trace:
  at c.c(Delegate A_0, Object[] A_1)
  at Dart.PowerTCP.Ftp.Ftp.List(String searchPattern, Boolean full)
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 1, 2003 2:20 PM

Does this happen with the sample listview app?
If so, try changing the value of the Passive property to a different value and try again.

Tri

From: San Francisco, CA USA
Posts: 12
Member Since: 07/22/03
posted August 1, 2003 2:31 PM

I figured it out: happens when the Client is set to a value that is inaccessible from the server due to firewall restrictions. It would have been helpful if the error message said something even remotely similar.

-Michael
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 1, 2003 2:42 PM

Thank you for the follow-up and suggestion.

backpack

From: Camberley, United Kingdom
Posts: 8
Member Since: 11/12/03
posted November 12, 2003 8:15 AM

Im getting this same error when i try to do any of the following:

get
put
listdirectory (or whatever that function is called)

The exception being thrown doesnt give any kind of useful information what its about, and because of that.... how to fix it :|
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted November 12, 2003 8:56 AM


You are probably behind a firewall that is not doing network address translation when the data connection info is passed to the server. That means when the server tries to connect back to the client it uses the internal address of the machine behind the firewall.

Setting Passive to true should solve it.

Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX