Could not find a part of path error on server
I want to run a scheduler on daily basis. So I have created a Windows application and stored it onto the server. This works fine on my local machine, but I get path error as Could not find a part of path C\Windows\System32.. With this, I think there might be some issue related to the path. Here is my code for that. startupPath = Environment.CurrentDirectory; strExp = "RAName = '" + group.Key + "'"; DataTable dtNew = ds.Tables[1].Select(strExp).CopyToDataTable(); DataSet dsNew = new DataSet(); dsNew.Tables.Add(dtNew); dtNew.Columns.Remove("RAName"); dtNew.Columns.Remove("UserEmail");