If you have migrated an old project from ASP.NET 1.1 to 2.0 and subsequently changed the Web.config according to http://ajax.asp.net/docs/ConfiguringASPNETAJAX.aspx , but still not getting Ajax to work and JavaScript errors keep popping up, xhtmlConformance might just be the missing piece in the jigsaw!! Try looking for the following setting -
<configuration> ..... <system.web> .....
<xhtmlConformance mode= "Legacy" />
..... </system.web> .....</configuration>
Either get rid of that at once, or set it to "Transitional" or "Strict"!! This is evil, and is always automatically appended to the Web.config after migration!!
Here are the steps we did, and even after that we kept getting the issue. Only after removing xhtmlConformance , we got it to work.