Click here to Skip to main content
15,913,941 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRemember me Cookie Pin
nour12317-Mar-08 20:52
nour12317-Mar-08 20:52 
GeneralRe: Remember me Cookie Pin
sumit703417-Mar-08 21:21
sumit703417-Mar-08 21:21 
GeneralRe: Remember me Cookie Pin
nour12317-Mar-08 22:39
nour12317-Mar-08 22:39 
GeneralRe: Remember me Cookie Pin
eyeseetee17-Mar-08 22:54
eyeseetee17-Mar-08 22:54 
GeneralRe: Remember me Cookie Pin
nour12318-Mar-08 6:49
nour12318-Mar-08 6:49 
Questiondisplay msexcel in panel Pin
iswaryaramkumar17-Mar-08 20:09
iswaryaramkumar17-Mar-08 20:09 
GeneralDouble post - please ignore Pin
pmarfleet17-Mar-08 20:50
pmarfleet17-Mar-08 20:50 
GeneralFTPweb request Pin
Laxmikant Lad17-Mar-08 19:46
Laxmikant Lad17-Mar-08 19:46 
Hi friends,

i am using ftpwebrequest to upload files on ftp server here is my code.


string uri = "ftp://myuserid:mypwd@ftp.shopzilla.com/myfile.txt";
FtpWebRequest reqFTP;
reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri(uri));

reqFTP.Proxy = null;

reqFTP.Credentials = new NetworkCredential("myuserid", "mypwd");

reqFTP.KeepAlive = false;

reqFTP.Method = WebRequestMethods.Ftp.UploadFile;

reqFTP.UseBinary = true;

reqFTP.ContentLength = fileInf.Length;

int buffLength = 2048;
byte[] buff = new byte[buffLength];
int contentLen;


FileStream fs = fileInf.OpenRead();

try
{
Stream strm = reqFTP.GetRequestStream();
contentLen = fs.Read(buff, 0, buffLength);

while (contentLen != 0)
{
strm.Write(buff, 0, contentLen);
contentLen = fs.Read(buff, 0, buffLength);
}

strm.Close();
fs.Close();
}
catch (WebException webEx)
{
WriteLog("Adding to Bizrate webex : " + webEx.Response.ToString());
WriteLog("Adding to Bizrate webex : " + webEx.Status.ToString());
WriteLog("Adding to Bizrate webex : " + webEx.Message);

}
catch (Exception ex)
{
WriteLog("Adding to Bizrate : " + ex.Message);
}


i am getting error

The remote name could not be resolved: 'ftp.shopzilla.com'

and status NameResolutionFailure

please give me any solution or link to solve this



Thanking you,



Laxmikant Lad
Generalquery within query [modified] Pin
rahul.net1117-Mar-08 19:46
rahul.net1117-Mar-08 19:46 
Questiondisplay msexcel in panel Pin
iswaryaramkumar17-Mar-08 19:30
iswaryaramkumar17-Mar-08 19:30 
GeneralRe: display msexcel in panel Pin
Paul Conrad21-Mar-08 9:24
professionalPaul Conrad21-Mar-08 9:24 
General.dll file. Pin
nagendrathecoder17-Mar-08 19:28
nagendrathecoder17-Mar-08 19:28 
GeneralRe: .dll file. Pin
Christian Graus17-Mar-08 19:33
protectorChristian Graus17-Mar-08 19:33 
GeneralRe: .dll file. Pin
rahul.net1117-Mar-08 19:47
rahul.net1117-Mar-08 19:47 
Generalstyle="display:inline-block;border-width:1px;border-style:Solid;width:200px Pin
joshc17-Mar-08 18:53
joshc17-Mar-08 18:53 
GeneralRe: style="display:inline-block;border-width:1px;border-style:Solid;width:200px Pin
Christian Graus17-Mar-08 19:05
protectorChristian Graus17-Mar-08 19:05 
GeneralCustom Vallidation for file extension. Pin
SreejithAchutan17-Mar-08 18:48
SreejithAchutan17-Mar-08 18:48 
GeneralRe: Custom Vallidation for file extension. Pin
SreejithAchutan17-Mar-08 19:49
SreejithAchutan17-Mar-08 19:49 
GeneralRe: Custom Vallidation for file extension. Pin
saini arun18-Mar-08 11:19
saini arun18-Mar-08 11:19 
Questioncan i give vista looking effect to my web applicaiton Pin
koolprasad200317-Mar-08 18:27
professionalkoolprasad200317-Mar-08 18:27 
AnswerRe: can i give vista looking effect to my web applicaiton Pin
Christian Graus17-Mar-08 18:48
protectorChristian Graus17-Mar-08 18:48 
GeneralRe: can i give vista looking effect to my web applicaiton Pin
koolprasad200318-Mar-08 1:13
professionalkoolprasad200318-Mar-08 1:13 
GeneralRe: can i give vista looking effect to my web applicaiton Pin
saini arun18-Mar-08 11:23
saini arun18-Mar-08 11:23 
Generaltable adapter with dynamic connection string Pin
uglyeyes17-Mar-08 17:24
uglyeyes17-Mar-08 17:24 
GeneralRe: table adapter with dynamic connection string Pin
uglyeyes17-Mar-08 19:29
uglyeyes17-Mar-08 19:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.