Go to the Project Properties screen (Project / Properites Main Menu), and then select the Publish tab. Click the " Prerequisites " button, you will notice in the list that the " Microsoft.NET Framework 4 Client Profile (x86 and x64) " checkbox is already checked.
Check the box " Microsoft.NET Framework 4 (x86 and x64) " above it.
Then republish your project.
When installing, you now need to check the complete structure and install it if it is missing.
source share