locked
Can't connect to Mac machine RRS feed

  • Question

  • User155051 posted

    We’re unable to connect to our Mac machine using the Xamarin Mac agent in Visual Studio 2015 (we had previously been using the connection successfully). The error message we get is “Couldn't connect to machinename.local.. Please try again.”

    I’ve followed the troubleshooting guide at https://developer.xamarin.com/guides/ios/gettingstarted/installation/windows/connecting-to-mac/troubleshooting/ but the issue persists. Things I’ve tried: • Made sure Remote Login is enabled • Mac firewall is turned off • I am able to ping the Mac from my PC • Both computers are in a wired connection • There is no .bashrc file in the home directory of the Mac • Uninstall and reinstall Xamarin Studio on the Mac • Added the Mac IP manually in Xamarin Mac agent • Cleared the Broker, IDB, Build, and Designer Agents on the Mac by deleting the XMA folder in the $HOME/Library/Caches/Xamarin directory • Added the line UseDNS no to the file /etc/ssh/sshconfig • Deleted file in the MonoTouch directory at C:\Users\username\AppData\Local\Xamarin/MonoTouch • Restarted both machines multiple times throughout troubleshooting process • Delete ALL contents of the directory "$HOME/Library/Caches/Xamarin" • Established a SSH connection to the Mac using an OpenSSH Windows client • Delete ALL contents of the "$HOME/Library/Caches/Xamarin" directory • Using an SSH client on my PC, I was able to established a SSH connection with the mac computer

    Looking at the Xamarin logs in Visual Studio, I see some errors related to an invalid license. Some of these errors are:

    Xamarin.VisualStudio.ActivationManager|Error|0|mtouch: error MT9000: This version was released after your subscription expired (9/1/2016 3:52:14 PM). Xamarin.VisualStudio.ActivationManager|Error|0|Read invalid license: iOS Business 2016-09-01 09:52:14Z. This version was released after your subscription expired (9/1/2016 3:52:14 PM). (MT9000) Xamarin.VisualStudio.ActivationManager|Information|0|Found UseDefaultEdition file for iOS, downgrading Xamarin.VisualStudio.ActivationManager|Information|0|Updated license: Android Business 9/1/2016 3:52:14 PM Xamarin.VisualStudio.ActivationManager|Information|0|Checking whether Android license valid for installed version. Xamarin.VisualStudio.ActivationManager|Error|0|monodroid: error XA9000: This version was released after your subscription expired (9/1/2016 3:52:14 PM). Xamarin.VisualStudio.ActivationManager|Error|0|Read invalid license: Android Business 2016-09-01 09:52:14Z. This version was released after your subscription expired (9/1/2016 3:52:14 PM). (XA9000)

    However, I’m signed in with my individual company enterprise account. When I login to Xamarin Studio and Visual Studio I can confirm that my account is an enterprise account, which includes a Xamarin license. However, I don’t even know if this is what is causing our connectivity problem.

    Also, I found an error on the logs that could be the issue... Xamarin.VisualStudio.Remote.State.DisconnectedState|Error|0|Method not found: 'Void Newtonsoft.Json.JsonSerializer.setTypeNameAssemblyFormat(System.Runtime.Serialization.Formatters.FormatterAssemblyStyle)'. System.MissingMethodException: Method not found: 'Void Newtonsoft.Json.JsonSerializer.setTypeNameAssemblyFormat(System.Runtime.Serialization.Formatters.FormatterAssemblyStyle)'.

    I’ve attached text files containing my Visual Studio 2015 and Xamarin Studio information as well as the Xamarin log file.

    Thank you,

    Wednesday, April 5, 2017 7:54 PM

Answers

  • User155051 posted

    For anybody struggling with this, I posted how I solved this issue in this post - https://forums.xamarin.com/discussion/comment/264405#Comment_264405

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, April 6, 2017 6:41 PM