It was really a struggle for 4-5 hours of publish a wcf service to public URL, it was working perfectly work on local url but when deployed to public url it failed.
Few steps help to me:
1. Make sure framework 4.0 is selected in app pool.
2. IIS_IUSR should have permission on directory mapped to virtual in IIS.
duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined
Solution: delete or comment out all the system.web.extensions configuration section
definitions and configuration section group definitions from the