Sunday, 30 September 2012

'Microsoft' is undefined

When I am trying to access the Windows Azure Mobile Services in the Windows 8 Metro App, I got the following exception.
0x800a1391 - JavaScript runtime error: 'Microsoft' is undefined windows azure mobile services
I searched the google to find the solution for this problem, but I did not found any solution. I tried many ways of referring script files. Finally I got the solution. The mistake what I did was only referring MobileSerivces.js in the groupedItems.html page where I am using grid layout in my metro application.

Solution:

Refer MobileServices.js in the default.html page as well.