rdavisau / sockets-for-pcl

Cross-platform socket API for Xamarin iOS/Android/Forms, Xamarin.Mac/MonoMac, Windows Phone 8/8.1, Windows Store and Windows Desktop.
MIT License
223 stars 72 forks source link

The empty PCL implementation for Sockets was loaded. #129

Closed tilo2804 closed 7 years ago

tilo2804 commented 7 years ago

Hi, i installed the package rda.SocketsForPCL.2.0.2 with NuGet in my Project. If i run the following code i get the exception:

_System.NotImplementedException: The empty PCL implementation for Sockets was loaded. Ensure you have added the Sockets nuget package to each of your platform projects. 04-14 18:30:09.442 I/MonoDroid( 3840): at Sockets.Plugin.TcpSocketClient..ctor () [0x00006] in C:\Users\rdavis\Source\Repos\sockets-for-pcl-forreal\Sockets\Sockets.Plugin\TcpSocketClient.cs:22

var client = new Sockets.Plugin.TcpSocketClient(); await client.ConnectAsync(address, port);

I develop a App with Xamarin Forms (v. 2.3.3.193) for Android 7.1 and iOS.

mddsilva commented 7 years ago

Hi, try install the package Sharpcaster.SocketsForPCL as well

rdavisau commented 7 years ago

You should install the NuGet into your PCL and all platform projects (iOS, Android, UWP etc.) also.