xamarin mac代理无法连接

时间:2016-05-13 18:47:29

标签: xamarin visual-studio-2015 xamarin.ios

我无法弄清楚为什么我无法连接我的xamarin mac代理。

这是我正在运行的:
- OSX 10.11.4
- Parallels 11.2.0与Windows 10
- Visual Studio Pro 2015

我已经在osx中​​为所有管理员设置了远程登录,我正在使用我的用户名进行连接,我可以从Windows通过SSH连接到osx。我也在Windows和Mac端的xamarin'稳定'更新频道上。

以下是我在xamarin日志文件中看到的内容..提前感谢。

Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-05-13 11:29:17.4157] MacServer State transition from DisconnectedState to SshConnectingState on myriadsupers-MacBook-Pro.local (10.211.55.2)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-05-13 11:29:20.3975] Starting Broker 4.0.3.214 in port 53976...
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Error: 0 : [2016-05-13 11:29:21.3350] Couldn't connect to myriadsupers-MacBook-Pro.local. Please try again.
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Information: 0 : [2016-05-13 11:29:21.4725] MacServer State transition from SshConnectingState to DisconnectedState on myriadsupers-MacBook-Pro.local (10.211.55.2)
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Information: 0 : [2016-05-13 11:29:21.6061] Disconnected from Mac myriadsupers-MacBook-Pro.local (10.211.55.2)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Error: 0 : [2016-05-13 11:29:21.7344] Method not found: 'System.Reactive.Subjects.AsyncSubject`1<!!0> System.Reactive.Linq.Observable.GetAwaiter(System.IObservable`1<!!0>)'.
System.MissingMethodException: Method not found: 'System.Reactive.Subjects.AsyncSubject`1<!!0> System.Reactive.Linq.Observable.GetAwaiter(System.IObservable`1<!!0>)'.
   at System.Net.Mqtt.Client.Client.<ConnectAsync>d__3.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
   at System.Net.Mqtt.Client.Client.ConnectAsync(ClientCredentials credentials, Will will, Boolean cleanSession)
   at Xamarin.Messaging.Client.MessagingConnection.<ConnectAsync>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Client.Ssh.SshMessagingConnection.<ConnectAsync>d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Xamarin.Messaging.VisualStudio.MessagingService.<ConnectAsync>d__70.MoveNext()

2 个答案:

答案 0 :(得分:1)

我能够找到解决问题的方法。希望这也有助于其他人。

我尝试在新的vm上安装Visual Studio 2015只是为了看看我是否能够连接到mac代理,并且它有效。这告诉我,我的问题与我的Windows 10 vm有关,而不是mac方面。

我最后用谷歌搜索了我遇到的MissingMethodException,我发现this xamarin bugzilla page有完全相同的异常。显然,这与Visual Studio处理插件/扩展的方式有关。我在我的虚拟机上安装了resharper和ozcode,因此卸载ozcode解决了我的问题。看起来xamarin似乎很快就会解决这个问题。

答案 1 :(得分:0)

您是否尝试了本教程的一步一步?

https://developer.xamarin.com/guides/ios/getting_started/installation/windows/connecting-to-mac/

并确保您的并行窗口具有有效的IP地址,并且您的mac不会连接到任何vpn或代理。

好的,如果您检查所有这些并且如果您使用并行桌面,请确保在硬件 - 网络中获胜的并行配置中选择共享网络如果它不起作用,请选择< strong> bridge 模式Parallel Settings