In a javascript file I'm calling an ASP.NET Ajax PageMethod (ASP.NET 3.5), correctly defined in the page class a static method using the WebMethod attribute. This works on my development machine, but on the production server the PageMethod object is undefined when my javascript function is called (clicking a button).
Some debugging info:
- Error on Firefox and Internet Explorer
- According to Firebug's network tab all external resources are correctly loaded
- I'm using jQuery on the same page
- The application is deployed using a Web Deployment project
Any idea what's causing the problem?