How to use external dll

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • huston
    New Member
    • May 2007
    • 1

    How to use external dll

    Hi all,

    I have an external dll file, which i want to add it to my Web project.

    But whenever I try to add the same through references, I get the error as "This is not a valid com component, use file with extension '.dll' "

    The dll file has the extension as dll, but still it is not taking.

    please help.
  • Tatter
    New Member
    • May 2007
    • 6

    #2
    Did you compile the .dll yourself? That message also occurrs if you try to use a file that is not actually a .dll, even though the file extension may be .dll. For example, if someone renamed a .gif file to have a .dll extension, and then gave you that file claiming it was a .dll file. Or, the .dll could be corrupt, damaged, or malformed in some way that prevents .NET from properly locating its COM interop information.

    Comment

    • Motoma
      Recognized Expert Specialist
      • Jan 2007
      • 3236

      #3
      Is it a COM assembly? What may be happening is that you are trying to reference a DLL with a newer .NET framework than the one you are building with. You can not reference a .NET 2.0 DLL in a .NET 1.1 project.

      Comment

      Working...