Posted on: 10/17/2014 6:02:33 PM | Views : 391

hello,
this code working on localhost, but not working on server..
void FileCreation() { DataClasses1DataContext db = new DataClasses1DataContext(); var deletetable = from table in db.tbl_currency_rates where table.Currency!="EUR" select table; foreach (var table in deletetable) { db.tbl_currency_rates.DeleteOnSubmit(table); db.SubmitChanges(); } Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("en-GB"); WebClient webClient = new WebClient(); webClient.DownloadFile("http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml", ("C:\\ftp\\sportsbook\\DownloadFiles\\eurofxref-daily.xml")); XDocument xdoc = XDocument.Load("C:\\ftp\\sportsbook\\DownloadFiles\\eu ...

Go to the complete details ...