Error -40 is a positioning error (tried to position before start of file).
This might indicate file system corruption. Try running Apple's Disk
Utility: First Aid and repairing the disk till it shows clean.
If you are still having problems report back with what version of Entourage
you are...