locked
COM Inerop issue with strong named assemblies in .NET 1.1 RRS feed

  • Question

  • User-180577609 posted

    we are using EXCEL com interop in the .NET 1.1 class library project. it is working fine, if .NET assembly is not strong named. but if we make that assembly strong named, it is giving compilation error like EXCEL should be strong named.

    We signed EXCEL using tlbImp tool. But it is of no use. because it is generating dll rather than EXE. When we invoke this newly genarated dll, it is throwing run time error. it is giving object set to null reference error.


    Any help will be appreciated.

    Thanks in Advance
    Raj

    Thursday, January 15, 2009 9:28 AM

Answers

  • User-1136466523 posted

    Hi,

    Do you meet the following error:

    "Referenced assembly Interop.Excel does not have a strong name"

    It should be installed as part of Office, as an optional component. It can only be installed if you already have the .Net Framework installed on the machine when you install Office -- repairing Office would also be sufficient.

    The specifics will vary depending on what version of Office you need to repair.

    Thanks.

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 20, 2009 1:54 AM