After experiencing the same issue you are describing in your question, I finally figure out a solution.
Check your web.config file and make sure that the debug property is set to false whenever you publish your website. Let me know if this works. It did for me.