Might be that the entity you are referencing has locked fields.
Do you do any operations earlier in the program flow?
Maybe try to Dispose() the context before the CreateQuery.. (or, if relevant, wrap the preceding context initialization in a using block )
HTH Bob