I have an asp.net application in which I am using linq for data manipulation. While running, I get the exception \"Sequence contains no matching element\".
i
Use FirstOrDefault. First will never return null - if it can't find a matching element it throws the exception you're seeing.
_dsACL.Documents.FirstOrDefault(o => o.ID == id);