无法将Visual Studio连接到MAC Mini-Xamarin

乌玛·阿里(Umar Ali)

我试图将MAC Mini连接到运行Visual Studio的Windows PC,但无法连接。

我曾尝试在Xamarin文档中提到的一切这里
我们已经成功连接相同的Mac Mini到网络上的另一台电脑,但似乎无法得到它与另一台电脑连接(Note: We are not connecting both at the same time)

我们已经检查了SSH,这似乎还不错-我们可以使用PUTTY和GIT Bash进行连接。

另外,我们使用的是MAC的正确用户名-我们使用whoamicommand进行了检索

以下是日志文件的内容。

Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-10-28 15:58:04.7169] MacServer State transition from DisconnectedState to SshConnectingState on XT-14.local (192.168.0.214)
Xamarin.Messaging.Client.Ssh.SshMessagingConnection Error: 0 : [2016-10-28 15:58:15.0329] An unexpected error occurred on with the current SSH Session
Renci.SshNet.Common.SshException: Message type 80 is not valid.
   at Renci.SshNet.Session.LoadMessage(Byte[] data)
   at Renci.SshNet.Session.ReceiveMessage()
   at Renci.SshNet.Session.MessageListener()
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-10-28 15:58:18.9447] Starting Broker 4.1.1.3 in port 50843...
System.Net.Mqtt.TcpChannel Warning: 0 : [2016-10-28 15:58:26.0069] The TCP Network Stream has completed sending bytes. The observable sequence will be completed and the channel will be disposed
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-10-28 15:58:26.2103] MacServer State transition from SshConnectingState to DisconnectedState on XT-14.local (192.168.0.214)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Error: 0 : [2016-10-28 15:58:26.3702] An error occurred on the underlying client while executing an operation. Details: The client vs4940Lenov has been disconnected while trying to perform the connection
System.Net.Mqtt.Client.ClientPacketListener Warning: 0 : [2016-10-28 15:58:26.5290] Client vs4940Lenov - Packet Channel observable sequence has been completed
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Information: 0 : [2016-10-28 15:58:26.6871] Disconnected from Mac XT-14.local (192.168.0.214)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Error: 0 : [2016-10-28 15:58:26.8482] Couldn't connect to XT-14.local. Please try again.
System.Net.Mqtt.Client.Client Error: 0 : [2016-10-28 15:58:27.0164] System.Net.Mqtt.Client.ClientException: The client vs4940Lenov has been disconnected while trying to perform the connection
   at System.Net.Mqtt.Client.Client.<ConnectAsync>d__29.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.MessagingConnection.<ConnectAsync>d__18.MoveNext()
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Error: 0 : [2016-10-28 15:58:27.2886] There was an error while trying to connect the client vs4940Lenov to the server.
Xamarin.Messaging.Exceptions.MessagingException: There was an error while trying to connect the client vs4940Lenov to the server. ---> System.Net.Mqtt.Client.ClientException: The client vs4940Lenov has been disconnected while trying to perform the connection
   at System.Net.Mqtt.Client.Client.<ConnectAsync>d__29.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.MessagingConnection.<ConnectAsync>d__18.MoveNext()
   --- End of inner exception stack trace ---
   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__37.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__73.MoveNext()
System.Net.Mqtt.TcpChannel Error: 0 : [2016-10-28 15:58:27.7771] An error occurred while closing underlying channel. Error code: 10054
System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.Socket.Shutdown(SocketShutdown how)
   at System.Net.Mqtt.TcpChannel.Dispose(Boolean disposing)

更新1

这是一张图片

Git图像

艾伦·克拉克(Alan Clark)

将Visual Studio连接到Mac主机时,重要的是要确保Xamarin工具在两个系统上都同步,并且版本号匹配。

在这种情况下,其中一台计算机似乎正在运行Xamarin工具的过时版本。将其更新为最新的稳定版可以解决此问题。

可以在Xamarin的“连接到Mac”指南中找到更多信息,如果问题仍然存在,我建议您查阅“故障排除”指南,因为它概述了常见问题/已知问题/解决方法。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

我无法使用Visual Studio 2015的Xamarin Mac Agent连接到Mac

来自分类Dev

无法将Visual Studio连接到Mac

来自分类Dev

无法连接到 Visual Studio 中的 mac 构建服务器(Xamarin 表单)

来自分类Dev

从Visual Studio 2019 Xamarin.iOS连接到Mac的代理问题

来自分类Dev

多个Visual Studio连接到一台Mac,用于Xamarin iOS

来自分类Dev

使用Visual Studio在Mac上连接Xamarin

来自分类Dev

xamarin无法连接到Mac-登录失败

来自分类Dev

无法将Visual Studio连接到MySQL

来自分类Dev

从Visual Studio连接到Mac时出错

来自分类Dev

从Visual Studio连接到Mac无法正常工作

来自分类Dev

Xamarin:无法从Visual Studio将iOS发布到App Store

来自分类Dev

Visual Studio(xamarin),无法将项目类型设置为 Android

来自分类Dev

无法将Xamarin.Forms连接到Web服务

来自分类Dev

将Xamarin iOS UI项目链接到Visual Studio项目

来自分类Dev

将多台PC连接到Apple上的同一Xamarin Mac Agent

来自分类Dev

Xamarin Debugger无法连接到iPad

来自分类Dev

Xamarin中的代码无法连接到wifi

来自分类Dev

无法连接到Xamarin中的相机服务

来自分类Dev

如何在Visual Studio上使用Xamarin(iOS项目)连接到Cloud SQL

来自分类Dev

断电后Mac mini无法打开吗?

来自分类Dev

为什么我的Mac mini无法启动?

来自分类Dev

Galaxt Tab 3 Mini连接到Android Studio

来自分类Dev

如何在Visual Studio上将远程MAC连接为Xamarin的构建主机?

来自分类Dev

无法为Visual Studio更新Xamarin

来自分类Dev

无法在Visual Studio中注销Xamarin帐户

来自分类Dev

无法为Visual Studio更新Xamarin

来自分类Dev

将TeamCity连接到Visual Studio Online

来自分类Dev

如何将STLINK-V3MINI连接到Blue Pill?

来自分类Dev

如何将Win 10 PC连接到Samsung SR75上的Mini DisplayPort

Related 相关文章

热门标签

归档