Thanks again for reporting the issue. If you have a sample project for the above exception then it will be a great starting point for debugging it further.
However, you can also write your query in the following way:
var document = (from dhp_doc
where dhp_doc.ID == document.ID
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>