Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Type library exporter error - Urgent help needed

Type library exporter error - Urgent help needed

Scheduled Pinned Locked Moved C#
helpcomdebugging
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gopisetty
    wrote on last edited by
    #1

    Hi every one, Am unable to resolve this error: Error: The assembly "D:\ActiveXProjects\csharpactivexglobe\csharpactivexglobe\bin\Debug\csharpactivexglobe.dll" could not be converted to a type library. Type library exporter encountered an error while processing'csharpactivexglobe.Globe.ActiveXObject, csharpactivexglobe'. Error: Element not found. csharpactivexglobe I was trying to do regasm /codebase /tlb MyAssemblie.dll but unable to convert to a type library. Could you please give me any suggession to fix this error. Thanking you all in advance, Cheers & Regards, Sharat. :)

    sharat

    D W 2 Replies Last reply
    0
    • G gopisetty

      Hi every one, Am unable to resolve this error: Error: The assembly "D:\ActiveXProjects\csharpactivexglobe\csharpactivexglobe\bin\Debug\csharpactivexglobe.dll" could not be converted to a type library. Type library exporter encountered an error while processing'csharpactivexglobe.Globe.ActiveXObject, csharpactivexglobe'. Error: Element not found. csharpactivexglobe I was trying to do regasm /codebase /tlb MyAssemblie.dll but unable to convert to a type library. Could you please give me any suggession to fix this error. Thanking you all in advance, Cheers & Regards, Sharat. :)

      sharat

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      First of all, C# cannot target building an ActiveX component. It can make something that looks and acts like one, but isn't a true ActiveX. Which brings me to the question. Is this component attributed to be exposed to COM?

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      1 Reply Last reply
      0
      • G gopisetty

        Hi every one, Am unable to resolve this error: Error: The assembly "D:\ActiveXProjects\csharpactivexglobe\csharpactivexglobe\bin\Debug\csharpactivexglobe.dll" could not be converted to a type library. Type library exporter encountered an error while processing'csharpactivexglobe.Globe.ActiveXObject, csharpactivexglobe'. Error: Element not found. csharpactivexglobe I was trying to do regasm /codebase /tlb MyAssemblie.dll but unable to convert to a type library. Could you please give me any suggession to fix this error. Thanking you all in advance, Cheers & Regards, Sharat. :)

        sharat

        W Offline
        W Offline
        WolfiKo
        wrote on last edited by
        #3

        I have had the same problem sice yesterday, I was spending today to find out waht the problem is. Beside some solutions I hvae found (duplicate guid for assembly and class) but did not work for me, I found the solution for me: I am using a vb6 com-class library dll as a reference in my .NET project. I have changed that com class library dll by removing a function from one of the classes, because it is no more used/needed. After adding this function and recompiling the vb6 com library, registering again in .NET project, the problem was gone. It seams, that the type library exporter remebers some information somewhere, that even a clean did not swipe out. My be the old version of the type library was still hanging aaround somewhere in the registry. Afterwards I again removed the unnecessary function from the dll, unregistered to old one registered the new one and, even then the problem was gone. So seams to be a windows registry mystery. I hope it helps some folks, so they do not search and loose hours and hours like i did. Wolfiko

        J 1 Reply Last reply
        0
        • W WolfiKo

          I have had the same problem sice yesterday, I was spending today to find out waht the problem is. Beside some solutions I hvae found (duplicate guid for assembly and class) but did not work for me, I found the solution for me: I am using a vb6 com-class library dll as a reference in my .NET project. I have changed that com class library dll by removing a function from one of the classes, because it is no more used/needed. After adding this function and recompiling the vb6 com library, registering again in .NET project, the problem was gone. It seams, that the type library exporter remebers some information somewhere, that even a clean did not swipe out. My be the old version of the type library was still hanging aaround somewhere in the registry. Afterwards I again removed the unnecessary function from the dll, unregistered to old one registered the new one and, even then the problem was gone. So seams to be a windows registry mystery. I hope it helps some folks, so they do not search and loose hours and hours like i did. Wolfiko

          J Offline
          J Offline
          Jason McBurney
          wrote on last edited by
          #4

          Wow Thanks... I will try this and see if it is my issue.

          You can only be young once. But you can always be immature. - Dave Barry

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups