none
Assemblies not loading in office add-in with .net 4 RRS feed

  • Question

  • When I upgrade my add-in project from .net 3.5 to 4.0 I get this error in FusLog when it wants to load my add-in assembly:

    Error extracting manifest import from file (hr = 0x8013101b).

    I also add this to office exe config file (visio.exe.config in my case) but nothing changed.

    <configuration>
        <startup>
            <supportedRuntime version="v4.0"/>
        </startup>
    </configuration>
    Wednesday, December 10, 2014 4:40 PM

Answers

  • Thank you for your response.

    I think I find the answer:
    I should add useLegacyV2RuntimeActivationPolicy="true" as a startup attribute of the config file.
    so I should set the visio.exe.config to :

         <configuration>
         <startup useLegacyV2RuntimeActivationPolicy="true">
           <supportedRuntime version="4.0" sku=".NETFramework,Version=v4.0" />
         </startup>
         </configuration>

    • Marked as answer by Daneshk Thursday, December 11, 2014 2:04 PM
    Wednesday, December 10, 2014 7:37 PM

All replies

  • Hello,

    Could you please be more specific? What Office/Visio version do you have installed on the  problematic PC? Visual Studio?

    Anyway, I'd recommend starting from a newly created empty add-in project. Is it loaded by the host application?

    Do you have any other add-ins installed for Visio?

    Wednesday, December 10, 2014 5:03 PM
  • Thank you for your response.

    I think I find the answer:
    I should add useLegacyV2RuntimeActivationPolicy="true" as a startup attribute of the config file.
    so I should set the visio.exe.config to :

         <configuration>
         <startup useLegacyV2RuntimeActivationPolicy="true">
           <supportedRuntime version="4.0" sku=".NETFramework,Version=v4.0" />
         </startup>
         </configuration>

    • Marked as answer by Daneshk Thursday, December 11, 2014 2:04 PM
    Wednesday, December 10, 2014 7:37 PM