Reputation: 1083
Times from times when we try to run our Xamarin UI Tests our app/test fails to start with the following error:
System.Net.Http.HttpRequestException : An error occurred while sending the request
----> System.IO.IOException : Unable to write data to the transport connection: The socket has been shut down.
----> System.Net.Sockets.SocketException : The socket has been shut down
What is happening? Here is my environment:
Upvotes: 2
Views: 948
Reputation: 1
Please update your xamarin UI test package after updating your visual studio that will resolve your problem
Upvotes: 0
Reputation: 61
Solution:
Don't get the latest version of the Visual Studio.
Install version 5.10.1 of the Mono package : https://www.mono-project.com/download/stable/
Before install, close Visual Studio then proceeds with the downloaded package installation.
Cheers!
Upvotes: 4
Reputation: 607
If the problem persists and you are on Mac, you may need to do a complete clean up in the Environment on the system modified by the Visual Studio Installer (Library/Framework folder) before installing again.
Follow these guidelines to truly uninstall Visual Studio (and its dependencies).
Upvotes: 1
Reputation: 1083
Sometimes during IDE updates, even Mono can be updated. It seems, from my experience, that the version 5.10.1.17
is the most reliable for UI Testing and 5.12.x
doesn't even works. So if you are having this sort of problem, try to downgrade your Mono version.
You may need to reinstall everything up, depending on how much of a mess is your environment.
Upvotes: 1