error MSB8011: Failed to register output [How to Solve]

error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions.

Cause of formation: in versions above win7, only administrator privileges can run regsvr32.exe program, that is, only administrator privileges can register controls or DLLs.

Solution:

1. When running vs, right-click to run with administrator privileges. Do not open vs directly.

2. Engineering – > Propertier–> Linker–> General–> Register Output–> NO。

Read More: