My apologies Peter, but I can't figure out where to go with your advice.
Maybe I misused the term 'module'? It's just another VB file in my web app
project, that isn't a code-behind for an aspx page. I'm only guessing that
that's why HttpContext.Current is coming up null. Or is it because the code
actually runs in a background thread, and not associated directly or
indirectly with http request code?
In any event, my project has a reference to System.Web, and I do not see a
way to add a reference to System.Web just for this one VB file.
Thanks for your input, apologies if I am making this harder than it should be.
Mike
"Peter Bromberg [C# MVP]" wrote:
> Your VB module that needs to access the current HttpContext would need to
> have a reference to System.Web assembly.
> There may be other issues but since we haven't seen your code, deal with
> those afterward.
> Peter
>
> --
> Site: http://www.eggheadcafe.com
> UnBlog: http://petesbloggerama.blogspot.com
> Short urls & more: http://ittyurl.net