C# .NET - ftpwebrequest - Asked By sheetal on 01-Dec-10 01:02 AM

hi i am new devloping mobil application i have face some problem

FtpWebRequest request = FtpWebRequest.Create(ftpAddress + "/" + fileName) as FtpWebRequest;

above code is not working in device application
please give me some suggesation;

Danasegarane Arunachalam replied to sheetal on 01-Dec-10 01:06 AM
Not working means ? Please give details
sheetal replied to Danasegarane Arunachalam on 01-Dec-10 01:29 AM

given error

 The type or namespace name 'FtpWebRequest' could not be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\Desktop\NC3\Copy of DeviceApplication3\DeviceApplication3\Form1.cs 24 13 DeviceApplication3

Danasegarane Arunachalam replied to sheetal on 01-Dec-10 01:57 AM
FtpWebRequest is located in  System.Net Namespace

Dim ftp As Net.FtpWebRequest=New Net.FtpWebRequest
Reena Jain replied to sheetal on 01-Dec-10 01:59 AM
hi sheetal

use the following name space to resolve the error

Namespace:  http://msdn.microsoft.com/en-us/library/system.net.aspx
Assembly:  System (in System.dll)

hope this will help you