Forum Visual Studio

Connecting to the Mac "System.ArgumentException: Illegal characters in path"

MKSMKS USMember ✭✭

Hi
When i try to connect to mac i get error message in window "Couldn't connect to KOMP0059.local. Please try again."

in logs on pc i get this

Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-16 07:42:57.1504] MacServer State transition from DisconnectedState to SshConnectingState on KOMP0059.local (10.110.12.217) Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Error: 0 : [2016-12-16 07:43:02.6946] An unexpected error occurred while configuring SSH for the user p Xamarin.Messaging.Exceptions.MessagingException: An unexpected error occurred while configuring SSH for the user p ---> System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) at System.IO.Path.Combine(String path1, String path2) at Xamarin.Messaging.Client.Ssh.SshCommands.<GetSshServerPathAsync>d__61.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.SshCommands.<HasAuthorizedKeyAsync>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 Xamarin.Messaging.VisualStudio.SshKeysGenerator.<GenerateSshKeysAsync>d__4.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.<ConfigureHostAsync>d__68.MoveNext() --- End of inner exception stack trace --- at Xamarin.Messaging.VisualStudio.MessagingService.<ConfigureHostAsync>d__68.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.VisualStudio.IOS.Messaging.State.DisconnectedState.<EnsureHostConfiguredAsync>d__9.MoveNext() in C:\data\lanes\4132\fa989ec0\source\xamarinvs\src\Core\VisualStudio.IOS\Messaging\State\DisconnectedState.cs:line 112 --- 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.VisualStudio.IOS.Messaging.State.DisconnectedState.<ConnectAsync>d__8.MoveNext() in C:\data\lanes\4132\fa989ec0\source\xamarinvs\src\Core\VisualStudio.IOS\Messaging\State\DisconnectedState.cs:line 59 Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Error: 0 : [2016-12-16 07:43:02.9178] Couldn't connect to KOMP0059.local. Please try again. Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-16 07:43:02.9658] MacServer State transition from SshConnectingState to DisconnectedState on KOMP0059.local (10.110.12.217) Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-16 07:43:03.0173] Disconnected from Mac KOMP0059.local (10.110.12.217)

on mac I don't get anything

im using on pc
Microsoft Visual Studio Enterprise 2015 Version 14.0.25431.01 Update 3 ... Xamarin 4.2.1.73 (fa989ec) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android. Xamarin.Android 7.0.2.37 (ce955cc) Visual Studio extension to enable development for Xamarin.Android. Xamarin.iOS 10.3.0.0 (e02d272) Visual Studio extension to enable development for Xamarin.iOS.

on mac
=== Xamarin Studio Community === ... Version 6.1.2 (build 44) Runtime: Mono 4.6.2 (mono-4.6.0-branch/08fd525) (64-bit) GTK+ 2.24.23 (Raleigh theme) Package version: 406020007 ... === Apple Developer Tools === Xcode 8.2 (11766) Build 8C38 ... === Xamarin.iOS === Version: 10.3.0.0 (Xamarin Studio Community) Hash: e02d272 Branch: xcode8.2 Build date: 2016-12-12 23:00:41-0500 === Xamarin.Android === Version: 7.0.2.37 (Xamarin Studio Community) Android SDK: /Users/proteus/Library/Android/sdk Supported Android versions: 2.3 (API level 10) 4.0.3 (API level 15) 4.1 (API level 16) 4.4 (API level 19) 5.0 (API level 21) 5.1 (API level 22) 6.0 (API level 23) 7.0 (API level 24) SDK Tools Version: 25.2.2 SDK Platform Tools Version: 24.0.3 SDK Build Tools Version: 24.0.2 Java SDK: /usr java version "1.8.0_102" Java(TM) SE Runtime Environment (build 1.8.0_102-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode) Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL ... === Build Information === Release ID: 601020044 Git revision: 0ccfcd52b95305ebd5b7eca0d88c1017035910ae Build date: 2016-10-28 15:12:43-04 Xamarin addins: a39a869d8a78d87bdc6775f696c13a4cc9024501 Build lane: monodevelop-lion-cycle8 === Operating System === Mac OS X 10.12.1 Darwin KOMP0059.local 16.1.0 Darwin Kernel Version 16.1.0 Thu Oct 13 21:26:57 PDT 2016 root:xnu-3789.21.3~60/RELEASE_X86_64 x86_64

can someone help me?

Best Answer

  • MKSMKS US ✭✭
    Accepted Answer

    in my case the problem was that i have .bashrc

Answers

  • ClintStLaurentClintStLaurent USUniversity ✭✭✭✭✭

    Try not using the name but the IP address. Same problem?

  • MKSMKS USMember ✭✭

    connecting via ip not solve problem

  • AshleyGazichAshleyGazich USMember, Xamarin Team Xamurai

    Has the Mac been successfully connected to previously? There are some known limitations--for instance, when full names include accented characters, it is best to connect to the Mac with the username rather than full name. Please give the troubleshooting steps mentioned in the Connection Troubleshooting guide a run to see if that helps.

  • MKSMKS USMember ✭✭

    earlier i was able to connect now i can't
    i done troubleshooting (no effect)
    i'm trying to connect using username & i don't have accented characters in username or full name

  • MichaelTarleton.4361MichaelTarleton.4361 USUniversity ✭✭

    Bump ^^^

  • MKSMKS USMember ✭✭
    Accepted Answer

    in my case the problem was that i have .bashrc

  • EigilKroghSorensenEigilKroghSorensen USMember ✭✭

    removing .bashrc solved the problem here also!!!

    Best regards
    Eigil

Sign In or Register to comment.