[英]Xamarin : debugging application with local instance on Azure Mobile App Service
我正在将Xamarin.Forms应用程序与Azure移动应用程序一起用作后端服务。 如何使用服务的本地实例进行调试?
尝试以下操作,但返回错误:
public const string applicationURL = @"http://192.168.0.4:59996/";
public const string gatewayURL = @"";
public const string applicationKey = @"Overridden by portal settings";
public static MobileServiceClient client = new MobileServiceClient (
Constants.applicationURL, Constants.gatewayURL,
Constants.applicationKey);
引发的错误是:
System.Net.WebException:错误:ConnectFailure(连接被拒绝)---> System.Net.Sockets.SocketException:连接被拒绝
以下是移动应用程序服务中的键:
<add key="MS_MobileServiceName" value="XXXMobileApp" />
<add key="MS_ApplicationKey" value="Overridden by portal settings" />
<add key="MS_MasterKey" value="Overridden by portal settings" />
<add key="MS_SigningKey" value="Overridden by portal settings" />
<add key="EMA_MicroserviceID" value="XXXMobileApp" />
<add key="EMA_RuntimeUrl" value="https://groupa2edxxx.azurewebsites.net" />
<add key="EMA_Secret" value="Overridden by portal settings" />
如何在Xamarin中定义客户端?
PS:本地主机服务正在调试模式下运行。
我的问题是,本地IISExpress无法从任何其他设备访问。 必须根据以下文章配置IISExpress: https ://azure.microsoft.com/zh-cn/documentation/articles/mobile-services-dotnet-backend-how-to-configure-iis-express/
我仍然遇到错误,但这可能与此问题无关。 (稍后可能会对此进行更多更新)
Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException:无法完成请求。 (未授权)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.