Error when Rebuilding project

So I installed all dependencies to latest lumbeyard version using setup assistant, opened project configurator and project. But when I try to rebuild it shows this error:

Build failed
<++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>
Compilation failed - File: 'LocalFileIO.cpp.8510254.obj', Module: 'AzFramework', Configuration: 'win_x64_vs2019|profile', error code 2
	Input Files:   'g:\lmbr\1.28.0.0\dev\Code\Framework\AzFramework\AzFramework\IO\LocalFileIO.cpp'
	Output Files:  'g:\lmbr\1.28.0.0\dev\BinTemp\win_x64_vs2019_profile\Code\Framework\AzFramework\AzFramework\IO\LocalFileIO.cpp.8510254.obj'
	Command:       'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\CL.exe /bigobj /nologo /WX /MP /Gy /GF /Gm- /fp:fast /Zc:wchar_t /Zc:forScope /Gd /Zc:inline /wd4530 /wd4577 /FS /std:c++17 /Zc:__cplusplus /experimental:external /external:W0 /wd4193 /Ox /Ob2 /Ot /Oi /Oy- /GR- /showIncludes /MD /W4 /Z7 /Ig:\lmbr\1.28.0.0\dev\BinTemp\win_x64_vs2019_profile\Code\Framework\AzFramework\AzFramework /Ig:\lmbr\1.28.0.0\dev\Code\Framework\AzFramework\AzFramework /Ig:\lmbr\1.28.0.0\dev\BinTemp\win_x64_vs2019_profile\Code\Framework\AzFramework /Ig:\lmbr\1.28.0.0\dev\Code\Framework\AzFramework /Ig:\lmbr\1.28.0.0\dev\Code\Framework\AzFramework\Platform\Windows /Ig:\lmbr\1.28.0.0\dev\BinTemp\win_x64_vs2019_profile\Code\Framework\GridMate /Ig:\lmbr\1.28.0.0\dev\Code\Framework\GridMate /Ig:\lmbr\1.28.0.0\dev\Code\Framework\GridMate\Platform\Windows /Ig:\lmbr\1.28.0.0\dev\BinTemp\win_x64_vs2019_profile\Code\Framework\AzCore /Ig:\lmbr\1.28.0.0\dev\Code\Framework\AzCore /Ig:\lmbr\1.28.0.0\dev\Code\Framework\AzCore\Platform\Windows /IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include /IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um /IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt /IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared /IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um /IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt /IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /external:IG:\lmbr\1.28.0.0\3rdParty\Lua\5.1.1.9-az /external:IG:\lmbr\1.28.0.0\3rdParty\rapidjson\rapidjson-1.1.0\include /external:IG:\lmbr\1.28.0.0\3rdParty\rapidxml\1.13-modified.1\include /external:IG:\lmbr\1.28.0.0\3rdParty\zstd\1.35-pkg.1\lib /external:IG:\lmbr\1.28.0.0\3rdParty\zstd\1.35-pkg.1\lib\common /external:IG:\lmbr\1.28.0.0\3rdParty\zstd\1.35-pkg.1\lib\compress /external:IG:\lmbr\1.28.0.0\3rdParty\zstd\1.35-pkg.1\lib\decompress /external:IG:\lmbr\1.28.0.0\3rdParty\lz4\r128-pkg.3\lib /external:IG:\lmbr\1.28.0.0\3rdParty\zlib\1.2.8-pkg.3\include /DPRODUCT_SKU_default /D_WIN32 /D_WIN64 /D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING /D_ENABLE_EXTENDED_ALIGNED_STORAGE /D_PROFILE /DPROFILE /DNDEBUG /DAZ_ENABLE_TRACING /DAZ_ENABLE_DEBUG_TOOLS /DPHYSX_ENABLE_MULTI_THREADING /DSCRIPTCANVAS_ERRORS_ENABLED /DENABLE_CRY_PHYSICS=1 /DEXE_VERSION_INFO_0=1 /DEXE_VERSION_INFO_1=28 /DEXE_VERSION_INFO_2=0 /DEXE_VERSION_INFO_3=0 /DPLATFORM_SUPPORTS_AWS_NATIVE_SDK /DUSE_WINDOWS_DLL_SEMANTICS /D_MT /D_DLL /DLY_METRICS_BUILD_TIME=0 /DUSE_ZSTD g:\lmbr\1.28.0.0\dev\Code\Framework\AzFramework\AzFramework\IO\LocalFileIO.cpp /c /Fo g:\lmbr\1.28.0.0\dev\BinTemp\win_x64_vs2019_profile\Code\Framework\AzFramework\AzFramework\I
		g:\lmbr\1.28.0.0\dev\Code\Framework\AzFramework\AzFramework\IO\LocalFileIO.cpp(502): error C2440: <function-style-cast>: ­Ґў®§¬®¦­® ЇаҐ®Ўа §®ў вм "initializer list" ў "AZStd::pair<const char *,const char *>"
		g:\lmbr\1.28.0.0\dev\Code\Framework\AzFramework\AzFramework\IO\LocalFileIO.cpp(502): note: ЌЁ ®¤Ё­ Є®­бвагЄв®а ­Ґ ᬮЈ ЇаЁ­пвм Ёб室­л© вЁЇ, «ЁЎ® а §аҐиҐ­ЁҐ ЇҐаҐЈаг§ЄЁ Є®­бвагЄв®а  ­Ґ®¤­®§­ з­®
<++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>

Process failed with return code: 1

and in the log there are a lot of non ascii error symbols but why

Hello there!
I have the same error. Did you solve this?
I also have a lot of errors in AssetBuilder

Visual Studio 2019
Lumberyard 1.28
Windows 10

SamplesProject_build.log (1000.6 KB)

o:\Amazon\Lumberyard\1.28.0.0\dev\Code\Framework\AzFramework\AzFramework\IO\LocalFileIO.cpp(502): error C2440: <function-style-cast>: невозможно преобразовать "initializer list" в "AZStd::pair<const char *,const char *>"
o:\Amazon\Lumberyard\1.28.0.0\dev\Code\Framework\AzFramework\AzFramework\IO\LocalFileIO.cpp(502): note: Ни один конструктор не смог принять исходный тип, либо разрешение перегрузки конструктора неоднозначно

The solution highlighted at this link solved it for me.
it is about replacing the two instances of CONST CHAR * at line 502 with OSString.
also you may need to update your version Visual Studio to the latest.

https://githubmemory.com/repo/aws/lumberyard/issues/553

A moderator in the Lumberyard Discord channel also suggested Downgrading Visual Studio to 16.9
this solution might save you the source code editing mentioned in the first solution.