question

shackdaddy avatar image
0 Votes"
shackdaddy asked NicholasPiasecki-6962 answered

Azure AD Connect Install fails on Win2012 Server

Installing Azure AD Connect on a Win2012 server.

The old version of ADSync from 2013 was installed on a different 2012 server. We disabled sync in the cloud via PowerShell and then uninstalled ADSync from that server.

Then on a different Win 2012 server which had not had ADSync on it, we tried to install Azure AD Connect. (We originally tried to install it on the same server, but it saw that it had already had ADSync and wanted to read a config file that was no longer there since we'd uninstalled it, and we couldn't get past that.)

On the fresh server I chose the Express option, and during the Configure stage, it stopped with this error:

Unable to install the Synchronization Service. The filename or extension is too long. Please see the Application and System event logs for additional details.

In the app log there were 906 events that essentially repeat what I found in the trace file.

This is the error from the trace file:

[10:20:08.238] [ 18] [ERROR] PerformConfigurationPageViewModel: Caught exception while installing synchronization service.
Exception Data (Raw): System.Exception: Unable to install the Synchronization Service. The filename or extension is too long Please see the Application and System event logs for additional details. ---> System.ComponentModel.Win32Exception: The filename or extension is too long
at System.ServiceProcess.ServiceInstaller.Install(IDictionary stateSaver)
at Microsoft.Online.Deployment.Framework.Providers.ServiceControllerProvider.CreateService(String serviceName, String serviceDescription, String username, String password, String assemblyPath)
at Microsoft.Azure.ActiveDirectory.Synchronization.Setup.SynchronizationServiceSetupTask.CreateBootstrapService(SyncServiceAccount syncServiceAccount)
at Microsoft.Azure.ActiveDirectory.Synchronization.Setup.SynchronizationServiceSetupTask.InstallCore(String logFilePath, String logFileSuffix)
at Microsoft.Azure.ActiveDirectory.Synchronization.Framework.ActionExecutor.ExecuteWithSetupResultsStatus(SetupAction action, String description, String logFileName, String logFileSuffix)
at Microsoft.Azure.ActiveDirectory.Synchronization.Setup.SetupBase.Install()

azure-active-directory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

shackdaddy avatar image
0 Votes"
shackdaddy answered yannara commented

Rebooting doesn't help.

I get the same error whether I use Custom or Express. Normally I'd only ever use Custom, but tried using Express to see if it would make a difference.

.Net 3.5 is already installed.

I think we are going to create a new Win2019 VM, join it to the domain, and run Azure AD Connect there.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

2019 good idea!

0 Votes 0 ·
yannara avatar image
0 Votes"
yannara answered

Try to reboot the server first. Also AD Connect requires some prerequirement components to be installed. I would really suggest to not to use express, but custom option, it gives you the control to select multiple different options how to sync passwords and what OUs to read. Avoid using express, I think :)

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

NicholasPiasecki-6962 avatar image
0 Votes"
NicholasPiasecki-6962 answered

I hit this too on our 2012 server. It clearly just doesn't work. I think they fixed a lot of these MAX_PATH issues in the Windows 10 timeframe. I'm using it as a reason to force the upgrade to 2019.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.