Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 17960 [details]
I was running master/C9 builds on both my mac and pc and everything was working fine (XMA connected with full support). I downgraded both the mac and the pc to Cycle8 builds and suddenly the pc was unable to connect to the mac.
The Xamarin Output window only says these three lines:
Starting connection to Mac kyles-mbp...
Couldn't connect to kyles-mbp. Please try again.
Disconnected from Mac kyles-mbp (10.1.16.22)
When it happened, I was running devenv via "devenv /log" so verbose logs should be attached. There was _no_ new logs on the mac host in ~/Library/Logs/Xamarin-4.2/..
Next, I went to the XMA dialog in VS and chose "Forget this Mac" for 'kyles-mbp' and then tried connecting again, and it magically worked.
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-10-10 15:38:49.5785] MacServer State transition from DisconnectedState to SshConnectingState on kyles-mbp (10.1.16.22)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-10-10 15:38:50.5883] Starting connection to Mac kyles-mbp...
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Error: 0 : [2016-10-10 15:38:52.4246] username
at Renci.SshNet.AuthenticationMethod..ctor(String username)
at Xamarin.Messaging.Client.Ssh.MessagingAuthenticationMethod..ctor(String username, Func`1 passwordProvider, ISshInformationProvider sshInformationProvider)
at Xamarin.Messaging.VisualStudio.MessagingService.GetMessagingConnection(Int32 boundPort, Func`1 passwordProvider, ISshInformationProvider sshInformationProvider)
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Error: 0 : [2016-10-10 15:38:52.7156] Couldn't connect to kyles-mbp. Please try again.
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-10-10 15:38:52.9066] MacServer State transition from SshConnectingState to DisconnectedState on kyles-mbp (10.1.16.22)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-10-10 15:38:53.0896] Disconnected from Mac kyles-mbp (10.1.16.22)
I was able to reproduce this when downgrading from 126.96.36.199 (master) to 188.8.131.523 (xvs-win-cycle8-sr0)
IDE Log: https://gist.github.com/BenBeckley/d6aa1ff4a4e7261f3782f50f3ecb5df6
This is a known issue, and the way to avoid it is to forget the mac and add it again.
Unfortunately, it cannot be avoided and is listed already as part of the release notes.