Make sure the configuration.h files are from the same Marlin version. They've changed it over the last several RC releases.
You really should only copy the settings inside the configuration.h, not copy the file itself.
You really should only copy the settings inside the configuration.h, not copy the file itself.