Topic
  • 2 replies
  • Latest Post - ‏2012-04-13T14:30:18Z by SystemAdmin
SystemAdmin
SystemAdmin
570 Posts

Pinned topic [Solved] Application Error : The connection to the server was unsuccessful

‏2012-04-06T14:43:49Z |
Hi,

When i running my hello world application in worklight its showing an error in the Emulator..
The connection to the server was unsuccessful.
(file:///data/data/com.helloworld/files/www/default/helloworld.html)

Could you please tell me how to fix this error...
  • IdanAdar
    IdanAdar
    288 Posts

    Re: [Solved] Application Error : The connection to the server was unsuccessful

    ‏2012-04-06T15:50:06Z  
    Because you did not provide any information at all (Worklight version, which environment), I will assume you are referring to Android. In Android AVDs, this problem typically means that you did not provide the correct IP address for the application to connect to.

    In your application's application-descriptor.xml file, make sure to use your local IP address as a value in the worklightRootURL element. Build and deploy, and run again the application in the emulator.
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: [Solved] Application Error : The connection to the server was unsuccessful

    ‏2012-04-13T14:30:18Z  
    Thank you.. Now its working Good!!! :lol: