Troubleshoot the application

Note

If you are having any problems with your application, follow these steps to correct the problems.

  1. Make note of the problems you are having with your application.

  2. Read the questions and answers in the table that follows.

    The table provides you with some information that can help you troubleshoot your application:

    Question

    Answer

    When I start the SalesDB application, the Connect to Adaptive Server… dialog box displays. The application cannot establish a connection to the database.

    This is most likely due to an incorrect DSN file. Check the SalesDB_remote_10.DSN located at the root directory of the device or emulator and make sure that the database file and start properties point to the correct locations. For SQL Anywhere 10.0, make sure the DSN contains a separate line for the dbodbc10.dll driver assignment.

    When I initialize synchronization from the device or emulator, the MobiLink window shows the error Error: Protocol version mismatch.

    Check the version of the SQL Anywhere engine on the device or emulator and the version of the MobiLink server. Versions for both components need to match.

    When I initialize synchronization from the device or emulator, the MobiLink window shows the error Communication error occurred while receiving data from the MobiLink server.

    Make sure the MobiLink server is running and check the MobiLink server log for more details.

    When I initialize synchronization from the device, MobiLink stalls while displaying an error message about connecting to the MobiLink server.

    In the SalesDB application on the device, select File>Sync Options and click the ML Server tab. Then type the host and port of the MobiLink server you want to connect to and try to synchronize again.

    This completes the lesson. This lesson demonstrates the foundation of building a PocketBuilder application using SQL Anywhere databases and MobiLink synchronization technology.

    For more information, see the chapter on SQL Anywhere database technology in the PocketBuilder Users Guide and the chapter on MobiLink technology in the PocketBuilder Resource Guide. Also see the SQL Anywhere documentation that is related to these technologies.