I have been running Acumatica 22r1 and 23r1 instances on my Windows 11 Pro work computer for months. Tonight, I tried to publish my 23.110.0025 project, and I suddenly started getting errors with the path being too long. It appears that on the 16th (2 days ago) Microsoft pushed out a Windows Configuration Update which I suspect is the culprit.
Error:
e2023-09-19 02:12:09.674] Patching the file C:\Projects\SSCS_23_110_0025\Customization\SSCS_23_110_0025\SSCS_23_110_0025Validation\SSCS_23_110_0025Website\CstPublished\Pages_SS\SSCS1000.aspx.cs
e2023-09-19 02:12:17.038] System.Exception: An error occurred while copying files to the temp directory ---> System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost) at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
Can anyone else confirm this problem or know a solution? I found old threads stating that Acumatica ERP cannot be installed on Windows 11, which was incorrect until this weekend. I also found posts describing how to enable long path names in group policy and registry settings.
Registry
- regedit
- Navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
- set LongPathsEnabled to 1
Group Policy
- gpedit
- Navigate to Computer Config, Adminstrative Templates, System, Filesystem
- Set Enable W32 Long Paths to Enabled