COM Interop registration failure

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • SteveS

    #1

    COM Interop registration failure

    Recently I changed computers and had to reinstall Visual Studio. After this,
    a solution that used to compile and produce a COM callable DLL now produces
    the error message: "COM Interop registration failed. Could not find type
    library for assembly 'Microsoft.Visu alBasic' "

    I haven't found any MSDN or KB articles that address this problem directly.
    What do I need to do to fix this?
  • Ken Tucker [MVP]

    #2
    Re: COM Interop registration failure

    Hi,

    Try reinstalling the dot net framework

    Ken
    ------------------
    "SteveS" <SteveS@nospam. nospam> wrote in message
    news:08945D08-CC28-48C2-85E4-ED6288E55695@mi crosoft.com...
    Recently I changed computers and had to reinstall Visual Studio. After
    this,
    a solution that used to compile and produce a COM callable DLL now produces
    the error message: "COM Interop registration failed. Could not find type
    library for assembly 'Microsoft.Visu alBasic' "

    I haven't found any MSDN or KB articles that address this problem directly.
    What do I need to do to fix this?


    Comment

    • SteveS

      #3
      Re: COM Interop registration failure

      Unfortunately, the result is the same.

      "Ken Tucker [MVP]" wrote:
      [color=blue]
      > Hi,
      >
      > Try reinstalling the dot net framework
      >
      > Ken
      > ------------------
      > "SteveS" <SteveS@nospam. nospam> wrote in message
      > news:08945D08-CC28-48C2-85E4-ED6288E55695@mi crosoft.com...
      > Recently I changed computers and had to reinstall Visual Studio. After
      > this,
      > a solution that used to compile and produce a COM callable DLL now produces
      > the error message: "COM Interop registration failed. Could not find type
      > library for assembly 'Microsoft.Visu alBasic' "
      >
      > I haven't found any MSDN or KB articles that address this problem directly.
      > What do I need to do to fix this?
      >
      >
      >[/color]

      Comment

      • SteveS

        #4
        RE: COM Interop registration failure - SOLUTION

        The problem turned out to be that somehow Microsoft.Visua lBasic.dll had
        become unregistered.

        The solution was to run regasm from the VS.Net Command Prompt

        regasm Microsoft.Visua lBasic.dll /codebase /tlb (space before each slash)

        This fixed the problem.

        If you do a system search for Microsoft.Visua lBasic.tlb and don't find it,
        run the regasm above.

        "SteveS" wrote:
        [color=blue]
        > Recently I changed computers and had to reinstall Visual Studio. After this,
        > a solution that used to compile and produce a COM callable DLL now produces
        > the error message: "COM Interop registration failed. Could not find type
        > library for assembly 'Microsoft.Visu alBasic' "
        >
        > I haven't found any MSDN or KB articles that address this problem directly.
        > What do I need to do to fix this?[/color]

        Comment

        Working...