Click here to Skip to main content
11,482,103 members (67,097 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Silverlight
how is upload the files via FTP in Silverlight?

in code :

private void btnFtpUpload_Click(object sender, RoutedEventArgs e)
        {
            var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
            var args = new SocketAsyncEventArgs();
 
           
            args.RemoteEndPoint = new DnsEndPoint("localhost", 21);
           
          
           args.Completed +=
                delegate
                {
                    Thread.Sleep(1000);
                   SendString("username: xxx",
                               delegate
                               {
                                   SendString("password: xxx", delegate
                                   {
 
                                   }
                               }, socket);
                };
            socket.ConnectAsync(args);
        }


In part that is displayed with Underline font an error occurs!

[Edit] The error occurs were the delegate is added: args.Completed[/Edit]

Please help me
Posted 4-Aug-12 8:34am
Edited 4-Aug-12 9:34am
v3

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

This is going to sound more complicated that needs be, becouse it is possible, but a lot of work:
http://forums.silverlight.net/t/180751.aspx/1[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.150520.1 | Last Updated 4 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100