The console application is running in a separate process then the web
application. I see no way that it could possibly tap into the other process
and access the HttpContext of a particular web application.
You would need a web page/web service sitting in that web application
capable of performing this task. Your console app can then make a request to
the page/web service to tell it that it is time to do its work.
"Weston Weems" <an*******@discussions.microsoft.com> wrote in message
news:12****************************@phx.gbl...
first the problem:
I'd like to be able to clear particular cache items from
a consol application running on the same server as the
asp.net website.
My problem is that if I reference System.Web and then try
System.Web.HttpContext.Current
I always get null, which sort of makes sense. ANyone else
have better ideas on how to achieve this?
Thanks.