"interface not registered" when attempting to create or edit a macro ...

Hi,

Each time a try to create or edit a macro inside the Visual Studio 2005 ide, i get an 'Interface not registered" error...

It's a fresh VS 2005 install (no beta previously installed), and i already attempted a repair, without success...

I have the same error when i try to add a Script.Net task inside a SQL Server 2005 Integration Service package ...

Anyone have an idea

thanks.

ben




Answer this question

"interface not registered" when attempting to create or edit a macro ...

  • Hugo Barauna

    This appears to be a general .NET framework registration problem since you are seeing the problem with multiple applications. Can you try re-installing/repairing just the framework The setup program should be named dotnetfx.exe. It sounds like something has been unregistered, something that happens occasionally when a program is uninstalled, and the uninstall program removes registry settings that it should not.

    Craig



  • osubvr

    I tried to repair both VS and the .Net framework, without success...

    But : i tried to manually register some dlls : msxml3.dll, msxml6.dll and ole32.dll , at first it didn't changed anything, so i tried to investigate a little bit more with sysinternal's RegMon and FileMon , just to see what dll are not registered.

    The strange thing is that, while doing some tracing, i tried to press the ALT+F11 shortcut , and it worked ! Since, i no longer have the 'interface not registered' error, everything is normal ! I think it's related to the manual dll registration, but it didn't have a direct effet ...

    Very strange, but it works !

    ben



  • TopSQL


    James,

    THANK YOU. He is right this fixes it!!!
    Cut and paste this into notepad, save as .reg file, click it and FIXED!!!!
    ------------------------------------- START-----------------------------------------
    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\Interface\{0000000C-0000-0000-C000-000000000046}]
    @="IStream"

    [HKEY_CLASSES_ROOT\Interface\{0000000C-0000-0000-C000-000000000046}\NumMethods]
    @="14"

    [HKEY_CLASSES_ROOT\Interface\{0000000C-0000-0000-C000-000000000046}\ProxyStubClsid32]
    @="{00000320-0000-0000-C000-000000000046}"
    -------------------------------------END------------------------------------------





  • stlb

    I've just used RegMon from SysInternals to get to the bottom of this. Somehow, the registry key:

    HKCR\Interface\{00000000-0000-0000-C000-000000000046}

    had been removed.

    This is the IStream interface, which is a fundamental Windows facility for saving/loading files.

    Quite how this got unregistered, I don't know (I re-installed VS6, VS2003, VS2005, SQL2005, etc, several times - no change), but adding the key back to the registry makes it all come to life:

    HKEY_CLASSES_ROOT\Interface\{0000000C-0000-0000-C000-000000000046}
    (DefaultValue)="IStream"
    HKEY_CLASSES_ROOT\Interface\{0000000C-0000-0000-C000-000000000046}\NumMethods
    (DefaultValue)="14"
    HKEY_CLASSES_ROOT\Interface\{0000000C-0000-0000-C000-000000000046}\ProxyStubClsid32
    (DefaultValue)="{00000320-0000-0000-C000-000000000046}"

    Adding this information in RegEdit is waaaaay faster than reinstalling

    James

  • Robin Message

    I have the same problem here. Can you please say which dll-s you re-registrated
  • Anders Ryden

    The list is in my previous post !

    msxml3.dll, msxml6.dll and ole32.dll

    As i said, it was very strange, because just after having re-registered those Dll's nothing changed, i rebooted, again nothing happens, the error was corrected while trying to investigate a little bit more with RegMon and FileMon, i pressed the shortcut key to access the macro environment, and it worked ! Now, i can use it normally ...

    Strange thing ....



  • "interface not registered" when attempting to create or edit a macro ...