FIX: (Windows 7) GetHostNameW could not be located

For technical support and bug reports for all editions of CSS HTML Validator, including htmlval for Linux and Mac.
Post Reply
User avatar
Albert Wiersch
Site Admin
Posts: 3767
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

FIX: (Windows 7) GetHostNameW could not be located

Post by Albert Wiersch »

If you are using CSS HTML Validator 2022/v22 on Windows 7 (still an officially supported OS for 2022/v22) and get an error message like this when checking JavaScript:
"The procedure entry point GetHostNameW could not be located in the dynamic link library WS2_32.dll."

The problem is due to a version of node.exe that is not compatible with Windows 7.

An older version of node.exe (v14.17.6) that should work with Windows 7 can be found here:

Please see the Windows7FixReadMe.txt file in the above ZIP for installation instructions. Installation simply involves replaces your node.exe file with the one in the ZIP file.

Do not apply the above fix if you are using Windows 8/8.1/10/11. Instead, continue to use the newer node.exe file.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Post Reply