【问题标题】:MobileService Publish does not change the MobileserviceMobile Service Publish 不会更改 Mobile Service
【发布时间】:2015-10-10 07:42:53
【问题描述】:

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

函数的代码是:

[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);
            }
        }
    }

在日志中非常简单,我只得到/得到: 在我的客户端(windows phone 8.1)上出现错误:

方法不允许。

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

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

我在这里错过了什么?

【问题讨论】:

    标签: .net azure windows-phone-8 windows-phone-8.1 azure-mobile-services


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-19
      • 1970-01-01
      • 2016-01-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-22
      • 1970-01-01
      相关资源
      最近更新 更多