repair entity file and web.config