KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: 4D Ajax Framework, -10508 error, and 4D Server v11 SQL
PRODUCT: 4D Server | VERSION: 11.2 | PLATFORM: Mac & Win
Published On: December 23, 2008

It is possible to get a -10508 error when running 4D Server v11 SQL after installing the 4D Ajax Framework. Error #-10508 indicates that the Project Method could not be found. There are a couple of reasons this error could be generated:


  • The method may not exist. This can happen if you install the 4D Ajax Framework in to your database and never launch 4D Developer (single-user). To fix this, open your application using 4D Developer (single-user). If you do not have a license for 4D Developer do not worry; demo mode is sufficient for this operation.

  • The Method is not "Shared by components and host database". To fix this, open the Method Properties for the method causing the error and make certain that the "Shared by components and host database" box is checked.

Commented by Atanas Atanassov on September 21, 2009 at 5:08 PM
If you are installing the framework in a database built with 11.4, make sure that you are using 4D Pack plug-in from the 4DAF Component, not the one which coming with 11.4.
Commented by Thomas Fitch on June 15, 2009 at 4:28 PM
In the case that you opened your database with 4D Server and NOT 4D Single-user immediately after installing the 4D Ajax Framework, then you will definitely get the -10508 error. But simply re-opening the database with 4D Single-user does not resolve the problem. You must also delete all of the 4DAF DevHooks under your project methods. The 4DAF Component will automatically regenerate them the next time you open the database.

Be sure to save any custom code you have put in your DevHooks. When 4DAF regenerates them it will make them "clean" just like the originals.