|
|
|
Upload file ไป Server ไม่ได้ ERROR logon failure unknown username or bad password |
|
|
|
|
|
|
|
เอา Code ตรง Authen มาให้ดูหน่อยน่ะครับ
|
|
|
|
|
Date :
2011-06-09 14:11:59 |
By :
webmaster |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (C#)
string P1 = CLS.clsSecutityLBC.Decrypt(_PathFilePDFUploadNewwork);
Uri addy = new Uri(P1 + fileName);
//string NewFilename = CLS.clsSecutityLBC.Encrypt(this.lblDocrecgen_.Text.ToString());
string NewFilename = this.lblDocrecgen_.Text;
string fRunning = "1";
string Comma = "-";
client.Credentials = nc;
string P2 = CLS.clsSecutityLBC.Decrypt(_PathFilePDFUploadNewwork);
byte[] arrReturn = client.UploadFile(addy, textBox1.Text);
string strOldDirPath;
strOldDirPath = P1+fileName;
string strNewDirPath;
strNewDirPath = P1+NewFilename+Comma+fRunning+".pdf";
Directory.Move(strOldDirPath,strNewDirPath);
Upload_f._FileName = NewFilename + Comma + fRunning;
Upload_f._ID_OrderByF = fRunning;
Upload_f._DateName = "";
Upload_f._ID_OrderByF = fRunning;
//string D1 = CLS.clsSecutityLBC.Decrypt(NewFilename);
Upload_f._DocreccordGen_File = NewFilename;
Upload_f._LinkOpenFile = _PathFilePDFUploadNewwork.ToString();
SqlDataReader objreadUp = objUpl.ObjectSaveDataFileUploads(Upload_f);
MessageBox.Show("จัดเก็บไฟล์เรียบร้อยแล้ว", "ยืนยัน", MessageBoxButtons.OK);
|
|
|
|
|
Date :
2011-06-09 21:47:26 |
By :
กิติพงษ์ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 05
|