private void deploy_Click(object sender, EventArgs e) { string xmlEditStatus = "OK"; string depStatus = ""; string moduledepPath = ""; string servername = serverName.Text.Trim(); string username = serUsername.Text.Trim(); string password = serPassword.Text.Trim(); string website = websiteName.Text.Trim(); string deplyAppName = ""; string zipFilePath = projectRoot.Text; string zipFileName = openZipFileDialog.SafeFileName; string appName = zipFileName.Remove(zipFileName.Length - 4, 4); int appZipLength = zipFileName.Length + 1; string folderpath = zipFilePath.Remove(zipFilePath.Length - appZipLength, appZipLength); if (moduleDeploy.Checked) { moduledepPath = moduleText.Text.Trim(); deplyAppName = deployAppName.Text.Trim(); } else { moduledepPath = ""; deplyAppName = ""; } string flag = "deploy"; xmlEditStatus = appInter.EditXml(folderpath, appName, "", website, flag, moduledepPath, deplyAppName); if (xmlEditStatus == "OK") { depStatus = appInter.DoDeploy(folderpath, appName, website, servername, username, password, flag); } else { depStatus = "Error While changeing App Property.."; } if (depStatus == "OK") { MessageBox.Show("Application Deployed.."); } else { MessageBox.Show(depStatus); MessageBox.Show("Error occured while Deploying.."); } deploy.Enabled = false; }