Mulflar
Mulflar

Reputation: 424

System InvalidOperationException at System.Lightub.Call on Xamarin Forms Android

We have a Xamarin Forms app working both in Android and iOS.

It connects to some services in our network and in our office works perfectly. It reaches the services and gets the data without problem.

But now we have sended a phone (with android) to a remote office, the IT people told us that the network at the other office is "exactly like the one we have" and in fact they have acces to the services through web.

But when we try to connect with the app whe get this exception:

System.InvalidOperationException: Operation is not valid due to the current state of the object at System.Lightup.Call[TI,VI] (System.Delegate&storage, TI instance, System.String methodName, TV parametyer) [0x0000d]

That exception is launching in httpclient.GetAsync()

Upvotes: 0

Views: 215

Answers (1)

Matt Stannett
Matt Stannett

Reputation: 2728

What you can do is:

  1. Go to References of ios Project
  2. Edit References
  3. Check 'System.Net.Http'

As per this link otherwise take a look at this one.

Upvotes: 1

Related Questions