This project is read-only.

Urgent Please, Logon failure: unknown user name or bad password.

Nov 11, 2013 at 6:06 PM
I try to download multipleFiles As ZipFile getting files from another server with different domain when engine arrive to step addfile (multipleFilesAsZipFile.AddFile(file, string.Empty);) it show error

Logon failure: unknown user name or bad password.

code Is :-
                         string Key = Request.QueryString["Key"].ToString();
                         string Rev = Request.QueryString["Rev"].ToString();

                         Ionic.Zip.ZipFile multipleFilesAsZipFile = new Ionic.Zip.ZipFile();
                         var filePath = String.Empty;
                         var fileName = String.Empty;
                         string basekey = DownloadAttacment.basemasterkey(Key, Rev);
                         DataTable Attachments = Layer.ExecQuery(DownloadAttacment.ExecDlinkSql(basekey));
                         foreach (DataRow item in Attachments.Rows)
                             string file = DownloadAttacment.filepath(item["Attachment"].ToString());

                             if (!multipleFilesAsZipFile.EntryFileNames.Contains(Path.GetFileName(file)))
                                 multipleFilesAsZipFile.AddFile(file, string.Empty);

                         Response.Buffer = false;
                         Response.BufferOutput = false;
                         Response.AddHeader("Content-Disposition", "attachment;");
                         Response.ContentType = "application/zip";

kindly , i need solution urgent