R
rgparkins
Hi Guys
Maybe a simple and easy solution to this, but I keep getting exception
object not set to instance etc etc.
I have a Timer that is initiated in Application_Start in Global.asax.
This timer I am using as a service every 10 minutes to send email to
users. OK so all is fine until I need to load a file from the server
(in fact an email template).
I am using HttpContext.Current.Server.MapPath to access the Server
object BUT its null, which I guess is correct as the timer is running
in its own thread.
Simple solution, anybody know how to gain access to this object from
within a Timer started from Global.asax
Really appreciate your help with this one, I have searched groups and
the web but obviously putting in the wrong search terms as I am getting
nothing back, or is it that simple?
regards
Richard
Maybe a simple and easy solution to this, but I keep getting exception
object not set to instance etc etc.
I have a Timer that is initiated in Application_Start in Global.asax.
This timer I am using as a service every 10 minutes to send email to
users. OK so all is fine until I need to load a file from the server
(in fact an email template).
I am using HttpContext.Current.Server.MapPath to access the Server
object BUT its null, which I guess is correct as the timer is running
in its own thread.
Simple solution, anybody know how to gain access to this object from
within a Timer started from Global.asax
Really appreciate your help with this one, I have searched groups and
the web but obviously putting in the wrong search terms as I am getting
nothing back, or is it that simple?
regards
Richard