After install AutoCAD Civil 3D 2012 Update 1 you code may not compile COM based plug-ins due some registry number not properly set.
This registry fix file actually only modify the AEC’s COM version to 6.7.49.0 from 6.7.107.0, including 3 AEC type libraries: AEC Base, AEC UI Base, and AEC Details. It is required only on development machines, not on production (end-user) machines.
Steps: copy the content below, according to your system platform (32 or 64 bit), paste new text document (e.g. using Notepad), save the file as .reg, then finally double click. Windows will apply the changes to the registry.
For 64 bit operation system
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\TypeLib\{E8BEE100-BF69-431B-9153-1FF0DEF8F613}\6.7]
"PrimaryInteropAssemblyName"="Autodesk.AEC.Interop.UIBase, Version=6.7.49.0, Culture=neutral, PublicKeyToken=d672471c03b2c408"
@="AEC Base 6.7 Application Library"
[HKEY_CLASSES_ROOT\TypeLib\{E8BEE300-BF69-431B-9153-1FF0DEF8F613}\6.7]
"PrimaryInteropAssemblyName"="Autodesk.AEC.Interop.Base, Version=6.7.49.0, Culture=neutral, PublicKeyToken=d672471c03b2c408"
@="AEC Base 6.7 Object Library"
[HKEY_CLASSES_ROOT\TypeLib\{E8BEE900-BF69-431B-9153-1FF0DEF8F613}\6.7]
"PrimaryInteropAssemblyName"="Autodesk.AEC.Interop.Details, Version=6.7.49.0, Culture=neutral, PublicKeyToken=d672471c03b2c408"
@="AEC Details 6.7 Object Library"
For 32 bit operation system
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\TypeLib\{E7BEE100-BF69-431B-9153-1FF0DEF8F613}\6.7]
"PrimaryInteropAssemblyName"="Autodesk.AEC.Interop.UIBase, Version=6.7.49.0, Culture=neutral, PublicKeyToken=d672471c03b2c408"
@="AEC Base 6.7 Application Library"
[HKEY_CLASSES_ROOT\TypeLib\{E7BEE300-BF69-431B-9153-1FF0DEF8F613}\6.7]
"PrimaryInteropAssemblyName"="Autodesk.AEC.Interop.Base, Version=6.7.49.0, Culture=neutral, PublicKeyToken=d672471c03b2c408"
@="AEC Base 6.7 Object Library"
[HKEY_CLASSES_ROOT\TypeLib\{E7BEE900-BF69-431B-9153-1FF0DEF8F613}\6.7]
"PrimaryInteropAssemblyName"="Autodesk.AEC.Interop.Details, Version=6.7.49.0, Culture=neutral, PublicKeyToken=d672471c03b2c408"
@="AEC Details 6.7 Object Library"