title: x86/x64 The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
body: <p>Good morning,</p>
  
  <p>I am developping a C# add-on to word, the first edition was compiled to run under office word x64, but now I have to run it under x86 version and I get this error when loadin the project in debug mode : The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047) 
  Text of exception : </p>
  
  <blockquote>
    <p>System.IO.FileLoadException: Impossible de charger le fichier ou l'assembly 'AppName, Version=1.0.0.0, Culture=neutral' ou une de ses dépendances. Le nom ou le code base de l'assembly donné n'est pas valide. (Exception de HRESULT : 0x80131047)
    Nom de fichier : 'AppName, Version=1.0.0.0, Culture=neutral'
       à System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
       à System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
       à System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
       à System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)
       à System.Reflection.Assembly.Load(String assemblyString)
       à Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.ExecuteCustomization.CreateEntryPoint(String entryPointTypeName)
       à Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.ExecuteCustomization.Microsoft.VisualStudio.Tools.Office.Runtime.Interop.IExecuteCustomization2.LoadEntryPoints(IntPtr serviceProvider)</p>
  </blockquote>
  
  <p>I already checked my code, there is no quote... </p>
  
  <p>I suspect a problem with folders GAC_32, GAC_64, GAC_MSIL</p>
  
  <p>Any idea ? </p>