首页 文章

xamarin mac代理无法连接

提问于
浏览
0

我无法弄清楚为什么我不能让我的xamarin mac代理连接 .

这是我正在运行的:

  • OSX 10.11.4
  • Parallels 11.2.0与Windows 10
  • Visual Studio Pro 2015

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

这是我在我的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 回答

  • 1

    你是否尝试过本教程的一步一步?

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

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

    好吧,如果你检查所有这些,如果你使用并行桌面,请确保在硬件 - 网络中的那个胜利的并行配置中 - 如果它不起作用,选择 Shared Network 选择 bridge mode Parallel Settings

  • 0

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

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

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

相关问题