Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi i implemented Windows Phone 8.1 Silver Light application Background scheduler using below link.

The scheduler is working fine but when i call Async method it is not pining with server.
Here this async method without background is working fine. But when i call this async method in background it is not calling the server.The following is my code.

1) WebservicePortTypeClient client = null;
2) client = new WebservicePortTypeClient();
3) client.MMAsync(objlog.Stringify(), valueacccoundid.ToString(), valuePushToken.ToString(), "version14");
4) client.MMCompleted += new EventHandler<mmcompletedeventargs>(returnmlp);

At step 3 it is throwing following exception.
The program '[3436] BACKGROUNDTASKHOST.EXE' has exited with code 1 (0x1). The program '[2828] AgHost.exe' has exited with code 0 (0x0).

Any advise would be greatly appreciated.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900