MobileService Publish 不会改变 Mobileservice

MobileService Publish does not change the Mobileservice

我有一个移动服务,运行,但是当我发布时突然有一个功能停止更新,我没有收到任何错误。除了我想联系它的时候。

该函数的代码是:

[Route("api/Game/GetCurGame")]
    [AuthorizeLevel(AuthorizationLevel.User)]
    public async Task<IHttpActionResult> GetCurGame(DTO.returnGameFoundData search)
    {
        Services.Log.Info("GetCurGame Function");
        using (Db db = new Db())
        {
            try
            {
                DTO.returnGameFoundData ret = new DTO.returnGameFoundData() { playersTurn = true, gameID = search.gameID, NavigationParameter = 1 };
                //Services.Log.Info("GetCurGame Function");
                return Ok(ret);
            }
            catch(Exception)
            {
                DTO.returnGameFoundData ret = new DTO.returnGameFoundData() { playersTurn = false, gameID = search.gameID, NavigationParameter = -1 };
                return Ok(ret);
            }
        }
    }

所以很简单,日志里我只got/get: 在我的客户端 ( windows phone 8.1) 我收到错误:

Method not allowed.

不知道错误我更改了代码,使用更多日志,并将第一个日志更改为 "AWESOME"。发布移动服务,成功,获得笑脸移动服务运行。

但是,日志是一样的,错误也是一样的。尽管我将日志代码 Services.Log.Info("GetCurGame Function"); 更改为 Services.Log.Info("AWESOME");

我在这里错过了什么?

您可以做的最好的事情之一就是查看该站点的 Kudu。它位于 https://<your-mobile-site>.scm.azure-mobile.net - 它包含大量诊断信息,您可以使用这些信息来查看您的移动站点是否正在部署。首先登录到 Azure 门户,然后转到 Kudu 站点。

此外,我建议安装某种 JSON 漂亮的打印机。我为此使用 JSONFormatter 和 Google Chrome - 它可以通过 Chrome 商店获得。