referring
https://www.aspsnippets.com/Articles/Automatically-send-emails-daily-at-specific-time-using-Windows-Service-in-C-and-VBNet.aspx
i am geeting error
Service Error on: 18/05/2017 10:49:22 AM String was not recognized as a valid DateTime. at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) at System.DateTime.Parse(String s)
svibuk says: <add key ="ScheduledTime" value ="9.58" />
<add key ="ScheduledTime" value ="9.58" />
Change with below code.
<add key ="ScheduledTime" value ="9:58" />
You need to pass time(9:58) not decimal value(9.58).
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.