This morning I found this annoying message in Event Viewer of my machine where I have a SQL Instance:

Activation context generation failed for “c:\program files (x86)\microsoft sql server\120\Tools\Binn\managementstudio\CopyDatabaseWizard.exe”.Error in manifest or policy file “c:\program files (x86)\microsoft sql server\120\Tools\Binn\managementstudio\CopyDatabaseWizard.exe” on line 8. The value “1.0” of attribute “version” in element “assemblyIdentity” is invalid.

A quick solution is:


1. make a backup copy of “copydatabasewizard.exe”;
2. edit “copydatabasewizard.exe” with an Hex editor;
3. search for “assemblyIdentity”;
4. change “version” value (right of “=” char) from “1.0” to “1.0.0.0”
5. save change

I don’t know why Microsoft has an incorrect manifest embedded in that file. Version number must have 4 digits, not 2.

 

Advertisements