Can't open C++ project on Unreal Engine 4 and prompts this error message

Hi everyone. When I try to generate project as C++, I get this error message!

An error occurred while trying to generate project files. Running C:/Program Files/UnrealEngine/UE_4.26/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“D:/UnrealProjects/GameWork/GameWork.uproject” -game -rocket -progress Discovering modules, targets and source code for project… While compiling C:\Program Files\UnrealEngine\UE_4.26\Engine\Intermediate\Build\BuildRules\UE4Rules.dll: error CS0042: ‘c:\Program Files\UnrealEngine\UE_4.26\Engine\Intermediate\Build\BuildRules\UE4Rules.PDB’
An unexpected error occurred while generating the debug information file – 'c:\Program Files\UnrealEngine\UE_4.26\Engine\Intermediate\Build\BuildRules\UE4Rules.pdb:
Access is denied. ERROR: Unable to compile source files

How can I resolve this?

I’m pretty sure this is the issue. Run as administrator?

Thank you. I didn’t think that was the reason.