.NET program which can be called from ASP.NET and run as a scheduled task -
i need write program send out e-mails...
it needs set scheduled task in windows , called on demand asp.net website.
i know how write executable (and asp.net website near completion).
i know how code program, wish avoid duplicating code in 2 places!
my first idea code .exe, set scheduled task, , call code in asp.net website e.g. button_clicked i'm not sure idea.
is there better way (more secure, without more effort)?
it's asp.net website project (not application) it's not part of solution - should have been?.
if have access gac on server, abstract code out of exe , library assembly. add library dll gac. reference dll both exe , web project.
if don't have access gac can still it, deploy dll exe , in web app's bin.
edit
here's how create library assembly http://broadcast.oreilly.com/2010/07/understanding-c-namespaces-and.html
Comments
Post a Comment