Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Plugin.Connectivity error

$
0
0

Hi again,

Updated XF and Connectivity Plugin to the latest versions. I just have a single line in the constructor of WP8 project that uses the plugin and it is:
if (CrossConnectivity.Current.IsConnected)

That's all but I am getting the following exception. It was working on older XF and CP.

Please somebody help. I just feel really tired. I hated using plugins for Xamarin.Forms but sometimes I just don't have a choice.

{System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NotImplementedException: The method or operation is not implemented.
at Windows.Networking.Connectivity.ConnectionProfile.GetNetworkConnectivityLevel()
at Plugin.Connectivity.ConnectivityImplementation.get_IsConnected()
at Plugin.Connectivity.ConnectivityImplementation..ctor()
at Plugin.Connectivity.CrossConnectivity.CreateConnectivity()
at Plugin.Connectivity.CrossConnectivity.<>c.<.cctor>b__7_0()
at System.Lazy

1.CreateValue()
   at System.Lazy
1.LazyInitValue()
at System.Lazy`1.get_Value()
at Plugin.Connectivity.CrossConnectivity.get_Current()
at AppName.App..ctor()
at AppName.WP8.MainPage..ctor()
--- End of inner exception stack trace ---
at System.Windows.Navigation.PageResourceContentLoader.EndLoad(IAsyncResult asyncResult)
at System.Windows.Navigation.NavigationService.ContentLoader_BeginLoad_Callback(IAsyncResult result)}

Viewing all articles
Browse latest Browse all 75885

Trending Articles