Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/64.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 调试Xamarin iOS System.Net.HttpMessageHandler时出错_C#_Xamarin.ios_Azure Mobile Services_Xamarin Studio - Fatal编程技术网

C# 调试Xamarin iOS System.Net.HttpMessageHandler时出错

C# 调试Xamarin iOS System.Net.HttpMessageHandler时出错,c#,xamarin.ios,azure-mobile-services,xamarin-studio,C#,Xamarin.ios,Azure Mobile Services,Xamarin Studio,我是Xamarin的新手。。。 我正在尝试在mac上使用Xamarin Studio构建iOS应用程序,我也在尝试使用Azure移动服务,但出现以下错误: 类型System.Net.HttpMessageHandler在未引用的程序集中定义。考虑对程序集“Stase.NET.HTTP,版本= 1.5.0.0,Cule=中立”,Pub KealToeKe= B03F5F7F11D50A3A(CS012)添加引用。 关于以下代码: public static MobileServiceClient

我是Xamarin的新手。。。 我正在尝试在mac上使用Xamarin Studio构建iOS应用程序,我也在尝试使用Azure移动服务,但出现以下错误:

类型System.Net.HttpMessageHandler在未引用的程序集中定义。考虑对程序集“Stase.NET.HTTP,版本= 1.5.0.0,Cule=中立”,Pub KealToeKe= B03F5F7F11D50A3A(CS012)

添加引用。 关于以下代码:

public static MobileServiceClient client = new MobileServiceClient("URL","Key");

有人知道发生了什么事吗?

我建议将HttpClient PCL Nuget包以及BCL.Async PCL包添加到您的项目中


希望这有帮助。

我建议将HttpClient PCL Nuget包以及BCL.Async PCL包添加到您的项目中


希望这能有所帮助。

我在使用跨平台应用程序时遇到了同样的问题。我只是在android项目中添加了对System.Net.Http的引用,这就解决了问题。我假设同样的方法也适用于您的IOS项目。

我在使用跨平台应用程序时遇到了同样的问题。我只是在android项目中添加了对System.Net.Http的引用,这就解决了问题。我假设同样的方法也适用于您的IOS项目。

简单地添加对System.Net.Http的引用对我有效。简单地添加对System.Net.Http的引用对我有效。