When a user tries to open a site page on SharePoint, or view the Version History of a document. I don't know why this happens. [Edit] Some pages displays fine, others don't.
What you can try is to add a space to the end of the web.config file (of the affected IIS Site), and save the web.config file. Worked for me.