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.