Last post May 27, 2019 09:38 AM by PatriceSc
May 17, 2019 09:55 AM|erum|LINK
May 20, 2019 02:05 AM|Fei Han - MSFT|LINK
HttpContext.Current.Application["DateAndTime"] = Response;
The code snippet that you shared is assignment statement, do you mean that code snippet causes the error "ApplicationState is null"? or the issue is caused by another code snippet?
Please clarify more about your problem, so that we can understand it better.
May 27, 2019 09:38 AM|PatriceSc|LINK
HttpContext.Current returns the current http request so more likely it won't work if you run this code from a background job. ASP.NET is not meant to schedule jobs so It ry to stay away from that (for example you could call an http page from some other