Xamarin Mac Agent and Active Directory

I have been struggling for the better part of a day to get the Xamarin Mac Agent setup in Visual Studio 2015 and finally found that something does not seem to like trying to connect to a Mac that is connected to Active Directory using my domain user account. I am able to SSH into the Mac using both the SSHConsoleApp project and Putty from Windows using my domain user account, but the connection via Visual Studio fails every time with the following error:

<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>0</EventID><Type>3</Type><SubType Name="Error">0</SubType><Level>2</Level><TimeCreated SystemTime="2016-01-12T18:35:17.6298821Z" /><Source Name="Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="devenv" ProcessID="7132" ThreadID="66" /><Channel /><Computer>WIN8_1PC</Computer></System><ApplicationData>Couldn't connect to devmac.local. Please try again.</ApplicationData></E2ETraceEvent>

After discovering this, I created a local account and was able to connect to the Mac using it, but now I get several warnings and an error that seems to indicate I have to be logged into the Mac with the account used to connect to the Mac:

<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>0</EventID><Type>3</Type><SubType Name="Warning">0</SubType><Level>4</Level><TimeCreated SystemTime="2016-01-12T18:49:57.7066142Z" /><Source Name="Xamarin.Messaging.Client.Ssh.SshCommandRunner" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="devenv" ProcessID="7132" ThreadID="19" /><Channel /><Computer>WIN8_1PC</Computer></System><ApplicationData>Failed to execute 'ls /usr/bin/mono': ExitStatus=1</ApplicationData></E2ETraceEvent>
<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>0</EventID><Type>3</Type><SubType Name="Warning">0</SubType><Level>4</Level><TimeCreated SystemTime="2016-01-12T18:49:57.7155898Z" /><Source Name="Xamarin.Messaging.Client.Ssh.SshCommandRunner" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="devenv" ProcessID="7132" ThreadID="8" /><Channel /><Computer>WIN8_1PC</Computer></System><ApplicationData>ls: /usr/bin/mono: No such file or directory
</ApplicationData></E2ETraceEvent>
<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>0</EventID><Type>3</Type><SubType Name="Warning">0</SubType><Level>4</Level><TimeCreated SystemTime="2016-01-12T18:49:58.2465809Z" /><Source Name="Xamarin.Messaging.Client.Ssh.SshCommandRunner" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="devenv" ProcessID="7132" ThreadID="86" /><Channel /><Computer>WIN8_1PC</Computer></System><ApplicationData>Failed to execute 'launchctl load -S Aqua /tmp/com.xamarin.designer.2d6b5f33/app.plist': ExitStatus=112</ApplicationData></E2ETraceEvent>
<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>0</EventID><Type>3</Type><SubType Name="Warning">0</SubType><Level>4</Level><TimeCreated SystemTime="2016-01-12T18:49:58.2585826Z" /><Source Name="Xamarin.Messaging.Client.Ssh.SshCommandRunner" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="devenv" ProcessID="7132" ThreadID="86" /><Channel /><Computer>WIN8_1PC</Computer></System><ApplicationData>Could not find domain for 
</ApplicationData></E2ETraceEvent>
<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>0</EventID><Type>3</Type><SubType Name="Error">0</SubType><Level>2</Level><TimeCreated SystemTime="2016-01-12T18:49:58.3555790Z" /><Source Name="Xamarin.VisualStudio.IOS.MacServer" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="devenv" ProcessID="7132" ThreadID="75" /><Channel /><Computer>WIN8_1PC</Computer></System><ApplicationData>An error occured starting the Designer 4.0.0.1717 agent: The user 'maclocaluser' must be logged in on the mac in order to start the agent. Please make sure the user 'maclocaluser' is logged in and try to connect to the mac again.

System.InvalidOperationException: The user 'maclocaluser' must be logged in on the mac in order to start the agent. Please make sure the user 'maclocaluser' is logged in and try to connect to the mac again.
   at Xamarin.Messaging.Client.Ssh.SshCommands.StartProcessViaLaunchCtl(String exeFile, Int32 port, Boolean debugMode, Int32 timeout, String[] extraArgs)
   at Xamarin.Messaging.Client.Ssh.AgentCommands.StartAgent(AgentInfo agent, Int32 port, Int32 timeout, Boolean debugMode, String[] extraArgs)
   at Xamarin.Messaging.VisualStudio.MessagingService.StartAgent(AgentInfo agentInfo, Boolean restartAutomatically)
   at Xamarin.VisualStudio.IOS.MacServer.StartAgent(AgentInfo agentInfo) in C:\Users\builder\data\lanes\2599\1390b70a\source\XamarinVS\src\Core\VisualStudio.IOS\Messaging\MacServer.cs:line 366</ApplicationData></E2ETraceEvent>

Is there any way to connect to a Mac connected to Active Directory using a domain user account from Visual Studio? If so, can someone provide details?

Thanks,

Chance

Answers

  • lidilidi DEUniversity ✭✭

    Hi,

    Did you manage to resolve this issue? We have exactly the same problem.

    L

  • ChanceUlrichChanceUlrich USMember

    On 1/26, I received a private e-mail from Xamarin:

    I wanted to get in touch and let you know that we have been discussing this issue internally to determine our next best steps. I've escalated your help ticket to a couple of our senior support engineers, and we are going to work with another team internally to look for an alternate solution.

    Thank you very much for your patience while we work through this. I will let you know of any updates/developments as soon as they become available.

    A few weeks after, I asked for an update and never received a response. Unfortunately, we moved in a different direction, so getting this working fell by the wayside.

    Chance

  • lidilidi DEUniversity ✭✭

    Hi Chance,

    Thank you for much for your reply. It's a shame this issue wasn't resolved for you after such a long time. We are trying to get through Xamarin support for assistance at the moment.

    L

  • MarcoBortolinMarcoBortolin ITMember

    Hi Chance,

    I have the same problem with my Mac. 
    
Sign In or Register to comment.