PageMethods is undefined

Problem

You get this error when running your application:

Error: PageMethods is undefined

You have a pre-release version of Atlas or the Ajax beta installed

This issue is usually caused because you have installed pre-release version of the Microsoft Atlas (Ajax) extensions that pre-date the final Microsoft Ajax V1.0 extensions release.  Microsoft added the EnablePageMethods property in its first formally released version of the Ajax extensions; this property was not available in pre-release beta versions.  This error can also occur when the Microsoft Ajax extensions are improperly installed or mis-configured.  This problem is not caused by a missing property in your Iron Speed Designer application code.

See Parser Error: Type System.Web.UI.ScriptManager does not have a public property named EnablePageMethods for details on how to uninstall older Ajax and Atlas versions and install released versions of Ajax.

You do not have .NET Framework 2.0 (or later) installed on your machine

Ajax-based features created by Iron Speed Designer require .NET Framework 2.0 or later.  Please check that your system has the .NET Framework 2.0 or later installed.

Your application’s virtual directory is configured for .NET Framework 1.1

Ajax-based features created by Iron Speed Designer require .NET Framework 2.0 or later.  However, the virtual directory for your application (in production) may be set to .NET Framework 1.1 even though .NET Framework 2.0 is present on your system.  If the 'default framework' is .NET Framework 1.1, then newly created virtual directories will be set to use .NET Framework 1.1.  Please make sure that your virtual directory is set to .NET Framework 2.0 or later.

Your application does not have the Ajax DLL in its Bin folder

Ensure that the Ajax DLL is located in your application.  The DLL is:

System.Web.Extensions.dll

A pre-release Atlas DLL is in your Bin folder

If the Atlas DLL in your application’s bin folder is Microsoft.Web.Atlas.dll, then you have the older pre-release Atlas DLL installed.  Please remove the old DLL and place the new System.Web.Extensions.dll in your bin folder.

Your Web.config does not include a WebServices section

Ajax needs this section in your application’s Web.config file to function properly.  The Web.config file created by Iron Speed Designer automatically includes the WebServices section.  But, you may have hand-migrated your Web.config from an older version that didn't include the WebServices section.

Please ensure that the Web.config file has an appropriate WebServices section.  You can use Iron Speed Designer to create a ‘test’ application.  Then, copy the WebServices section from the test application’s Web.config file into your application’s Web.config file.

Your application is missing one or more pages or files

If you have moved your application, such as when moving it into a production environment, make sure that all necessary web page (ASPX) files, code files and other files are present in your application.  Be sure to check your production deployment process to ensure all necessary files are present in your application.

See Also

Part VII:  Troubleshooting Applications

Application Will Not Run

Application Runs But No Data is Displayed

Application Error Messages