Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: LINQ C#4.0 Scheduler MVC3
I have to write a scheduler which sends an email automatically to the clients on a particular time.
 
Can anybody please help me out to write that scheduler? Because m having no idea how to do this. I am using c# in MVC3 using linq.
 
Thanks
Posted 14-Feb-13 23:43pm
Edited 15-Feb-13 2:06am
v2
Comments
Zoltán Zörgő at 15-Feb-13 7:09am
   
Sorry to disappoint you, but this task is NOT really related to linq, and absolutely not with MVC3. An asp.net application is not suitable to perform scheduled tasks, since in general it is not running continuously.
Vicky.tts at 15-Feb-13 7:16am
   
Dear Zoltán Zörgő,
Thanks for the response.
can you help me out regarding the Scheduler for sending mail to client?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hai,
There is another solution
Create a console application and write your code build it....you will get a .exe file in bin folder of your application and give that .exe file to windows schedular.....
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You have two options:
1) As already posted by Ranjithkumar54(Solution 1), you could build a console application and execute it through Windows Scheduler.
2) You could create a Windows Service application and run it that way.
 
You should not try to run scheduled applications from a web application because a web application is a simple Request/Response system. Unattended processes are not meant to be run in this environment.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Kornfeld Eliyahu Peter 169
1 George Jonsson 145
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,382


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100