Esri / arcgis-powershell-dsc

This repository contains scripts, code and samples for automating the install and configuration of ArcGIS (Enterprise and Desktop) using Microsoft Windows PowerShell DSC (Desired State Configuration).
Apache License 2.0
113 stars 61 forks source link

Web Adaptor fails to install with exit code 1642 #523

Open BrendanEsri opened 8 months ago

BrendanEsri commented 8 months ago

Community Note

Module Version

Affected Resource(s)

Configuration Files

Expected Behavior

Actual Behavior

Steps to Reproduce

Important Factoids

References

BrendanEsri commented 8 months ago

Just opened this for reference if others run into the same thing. Potentially put some messaging in PowerShell DSC ArcGIS Module logs to tell us to check if other versions of .NET are installed. Issue is resolved though through the provided workaround

lachlanwainwright commented 7 months ago

Hi @BrendanEsri

I encountered this exact same issue, thanks for the workaround.

I grabbed the .net bundle installer from https://dotnet.microsoft.com/en-us/download/dotnet/6.0 that matched the version already on my Win 2022 server and used that to do the uninstall, then referenced it in my dsc config file. Ran perfectly.

PS, the AZURE Win 2022 servers we have are rolling 6.0.26

I also found that running the DSC, let it fail then repairing .NET and running again worked, BUT, I don't like the act of crashing out, who else know what else could be half cooked.