简体   繁体   English

无法连接到Azure移动服务Visual Studio 2015

[英]Cannot connect to Azure Mobile Services Visual Studio 2015

I'm new to Microsoft Azure and am struggling to connect to an existing Azure Mobile Service . 我是Microsoft Azure新手,正在努力连接到现有的Azure Mobile Service I'd like to add a service reference to this Mobile site in a Console Application in Visual Studio 2015 . 我想在Visual Studio 2015Console Application中添加对此移动网站的服务引用。

When I right-click References -> Add Connected Service -> Azure Mobile Services , the Configure Button is disabled (see image): 当我右键单击“ References ->“ Add Connected Service ->“ Azure Mobile Services ,“ 配置”按钮被禁用 (见图):

在此处输入图片说明

  • I've installed the Azure SDK 我已经安装了Azure SDK
  • I've added WindowsAzure.MobileServices via NuGet 我已经通过NuGet添加了WindowsAzure.MobileServices
  • Tried right-click on project Add -> Azure API App Client , but the drop down of available services is empty. 尝试右键单击项目“ Add ->“ Azure API App Client ,但可用服务的下拉列表为空。 When I publish the Mobile Service from Visual Studio, it shows up in the drop down for existing mobile services 当我从Visual Studio发布移动服务时,它会显示在现有移动服务的下拉列表中
  • I successfully connect to service using Fiddler and was able to query data. 我使用Fiddler 成功连接到服务,并能够查询数据。

Am I missing SDK or something? 我是否缺少SDK或其他东西?

This tooling gesture is not supported for this client type (console app). 此客户端类型(控制台应用程序)不支持此工具手势。 From this dialog, Mobile Services can be added to Windows and Cordova targets. 通过此对话框,可以将Mobile Services添加到Windows和Cordova目标。 The More Information link from your screenshot shows the full details. 屏幕快照中的“ 更多信息”链接显示了完整的详细信息。

You can still connect to Mobile Services via the SDK you obtained via NuGet . 您仍然可以通过通过NuGet获得SDK连接到移动服务。 You just have to install this manually, rather than using the tooling. 您只需要手动安装它,而不是使用工具。 In order to get started, create a MobileServiceClient object and pass it the URL of your app and the App Key (available in the management portal). 为了开始使用,请创建MobileServiceClient对象,并将其传递给您应用程序的URL和应用程序密钥(在管理门户中可用)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM