none
Internal Server Error (500 InternalServerError - Details:

    Question

  • I have just started the first tutorial on Azure Mobile Services and I compiled and run the VS2012 C# new application project. My environment is a fresh Windows 8 Enterprise Edition running on Parallels Desktop on MacBook pro.

    The demo application (Todo) is running but after few seconds I get the following exception without even touching the keyboard :

    Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException was unhandledMessage: Internal Server Error  (500 InternalServerError - Details: {"code":500,"error":"Internal Server Error"})

    Any ideas?


    Stavros Menegos

    Monday, September 10, 2012 5:13 PM

All replies

  • Hi Stavros,

    Can you check your logs in the Windows Azure Management portal? Let me know if you see any errors.

    Thanks

    Josh


    http://twitter.com/joshtwist

    Monday, September 10, 2012 7:41 PM
  • Hi Stavros,

    Can you check your logs in the Windows Azure Management portal? Let me know if you see any errors.

    Thanks

    Josh


    http://twitter.com/joshtwist

    Hi,

    I encounter the same kind of error (Internal Server Error, code 500) when I try to insert data in a custom table.

    I am using C# code. Are there different behaviors depending of coding technology (JS/.Net)?

    Any ideas?

    Jon

    Friday, September 14, 2012 8:23 AM
  • Hi Stavros,

    Can you check your logs in the Windows Azure Management portal? Let me know if you see any errors.

    Thanks

    Josh


    http://twitter.com/joshtwist

    I'm getting the same error while trying to insert data into my table while authenticated. Here's my code & more info: http://stackoverflow.com/questions/12434533/500-internal-server-error-while-inserting-to-windows-azure-mobile-services

    no errors in the management portal :\

    Saturday, September 15, 2012 4:36 AM
  • Hi Stavros

    I guess below line is creating problem

     Pins = pinTable.Where(pin => true).ToCollectionView();

    ToCollectionView();  is always return count as 0. this is the bug here. What do you think Josh Twist?

    Stavros: I think below line can help your program to running smooth

    List<Pin> Pins = await pinTable.Where(pin => true).ToListAsync();



    Wednesday, September 26, 2012 1:29 AM
  • Hi Stavros,

    Can you try below code and let us know if it is not work for you.

    Pins = pinTable.Where(pin=> true).ToCollectionView();

    while (Pins.Count <= 0)
    {
     // Just wait till we are not get count value
     await System.Threading.Tasks.Task.Delay(500);
    }
    if (Pins.Count < 1)
    {
      // Do this
    }
    else
    {
     // Do this
    }

    I hope this code will help you to work around with your problem

    Saturday, September 29, 2012 6:54 AM