I built a VSTO project on my dev box and received the following error when Excel opened up.
Customization could not be loaded because the application domain could not be created.
************** Exception Text **************
Microsoft.VisualStudio.Tools.Applications.Runtime.CannotCreateCustomizationDomainException: Customization could not be loaded because the application domain could not be created. ---> System.IO.FileLoadException: Could not load file or assembly or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key
One way to get around this exception is to use the sn.exe utility with the 'Vr' flag.
sn –Vr <assembly>
You can use the Vl flag to see the list of assemblies registered for strong name verification.
No comments:
Post a Comment