Re: C# Ftp client

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Boris (boris_at_crabel.com)
Date: 09/23/04


Date: Thu, 23 Sep 2004 11:22:36 -0400

Hi Ignacio,

Thanks for the response. You are right. I was running it from the network
share, and as soon as I ran it on local machine, it started working.

I am trying to implement FTP client to perform the following tasks

1) Login to remote UNIX server
2) Create appropriate directory, if not already exists
3) Upload the file into the directory
4) Delete file from the directory

Would TcpClient provide me with this functionality? Do you have any code
examples?

Thanks,
-Boris

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:%23kBPgtXoEHA.692@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> This may seems like a silly question, but are you running it from a
> network
> share?
>
> It seems like a permission issue, maybe the user you are running under
> does
> not have enough privilegies
>
> btw, you should use TcpClient instead of Socket, unless you are planning
> to
> use some low level functions.
>
> Cheers,
>
> --
> Ignacio Machin,
> ignacio.machin AT dot.state.fl.us
> Florida Department Of Transportation
>
>
> "Boris" <boris@crabel.com> wrote in message
> news:eIBo$qXoEHA.1176@TK2MSFTNGP12.phx.gbl...
>> I am trying to develop C# ftp client to upload files to remote host.
>> Whenever, I execute System.Net.Sockets.Socket.Connect method, .Net
> Framework
>> raises the following exception
>>
>> Request for the permission of type System.Net.SocketPermission, System,
>> Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
> failed.
>>
>> Why does this happen?
>>
>> Thanks,
>> -Boris
>>
>>
>>
>
>



Relevant Pages

  • Local printer attached button is disabled
    ... to your local machine, i.e. contact IT ... Rob ... >based network, however when I install my locally attached ... >permission to add my local printer. ...
    (microsoft.public.win2000.printing)
  • Cannot Open Folders
    ... After an installation of XP SP2, the local machine cannot log into Outlook. ... permission to log on." ... What is stored on the local machine if the network has the folders and how ...
    (microsoft.public.outlook)
  • Re: Replication as a Performance Enhancer?
    ... And, if there is a need to have them work with multiple reocrds, but that's ... Or, alternativesly, can put each subform on its own tab in a tabbed ... leading me to believe the network has a lot to do with it. ... was bring in the MDW file to his local machine, ...
    (comp.databases.ms-access)
  • Re: Windows Gone Wild
    ... business network and I just realized I'm running Windows XP Pro if that makes ... If you have to get permission to try that link, you may also have an IT department who have the responsibility for keeping your system functioning. ... > fritz all over my windows files and some programs. ... > one server and mine is on the other, we never had trouble sending and ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Logon Server Unavailable
    ... I'd put money on this that you have a DNS name resolution issue...for ... The server is not configured for transactions" ... > "Access Denied" Message When Opening from or Saving to a Network Folder ... You may not have permission to use this network resource" ...
    (microsoft.public.windows.server.general)