Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS1996
Cannot await in the body of a lock statement