I am using a basic console app with windows task scheduler.
The program takes some decimal value from the net and saves in the SQL Server table.
When I run the program manually there is no problem with the decimal format.
If task scheduler runs the program it reads them (i am guessing here) as int.
Example:
- while I run the program: 3.7658 => 3.7658
- Windows Task Scheduler: 3.7654 => 37658
I tried converting it to string replacing "," with ".".
decimal valueKur = 0;
valueKur = Convert.ToDecimal(xmlDoc.SelectSingleNode(string.Format("Tarih_Date/Currency[@Kod='{0}']/BanknoteSelling", item)).InnerXml);
mevcutKur.KurValue = valueKur;
db.SaveChanges();
Thanks in advance