Search code examples
c#windowsvisual-studioshdocvw

The referenced component 'SHDocVw' could not be found


Compiling a solution on a new "build" server is throwing

The referenced component 'SHDocVw' could not be found.

Solution builds fine on other build servers and on developers machines. I could swear it built fine two days ago.

One noticeable difference for this server is that is a Windows 2008 R2. Other build servers are Windows 2012 and developer machines range form Windows 8.1 to 10.

I tried removing the reference and add it again (COM reference Microsoft Internet Controls) with no luck.

More from the error message:

Could not resolve COM reference "eab22ac0-30c1-11cf-a7eb-0000c05bae0b" version 1.1. Strong name key container not found.


Solution

  • After many years this happened to me again today. This time I was able to fix it.

    It's a permission issue on the C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys folder.

    Just give the user executing the action full access to this folder.