Home
TeamSite
IManOXP.dll as C#.NET reference?
BjoernWeber
Hi!
Is there any way to add the IManOXP.dll (the "Worksite Office2000 integration") to a C#-Project in MS Visual-Studio.NET 2005?
If I try to do this, the reference gets a yellow exclamation mark, the path-and name-property of the reference is empty and if I try to build the project I get the following error:
"The referenced component 'iManO2K' could not be found."
Best regards,
Björn
Find more posts tagged with
Comments
jny
Yes, this is actually an issue with interop assembly conversion. Try this work-around:
Instead of relying on .NET framework to determine this for the COM DLL, use the tlbimp.exe to explicitly specify the assembly reference
For example, create an assembly for the IManage and IManExt type libraries from a VS.NET command prompt, like so:
tlbimp "%ProgramFiles%\Interwoven\WorkSite\IManage.dll" /out:MyApp.Interop.IManage.dll /namespace:IManage /sysarray
tlbimp "%ProgramFiles%\Interwoven\WorkSite\IManExt.dll" /out:MyApp.Interop.IManExt.dll /namespace:IMANEXTLib /sysarray /reference:MyApp.Interop.IManage.dll
Then, create the interop for the MS Add-In Designer type library as follows:
tlbimp "%CommonProgramFiles%\Designer\MSADDNDR.TLB" /out:MyApp.Interop.AddInDesignerObjects.dll /namespace:AddinDesignerObjects /sysarray
Lastly, create the interop for the iManO2k type library (in this example, iManOXP.DLL):
tlbimp "%ProgramFiles%\Interwoven\WorkSite\iManOXP.dll" /out:MyApp.Interop.IManOXP.dll /namespace:iManO2k /sysarray /reference:MyApp.Interop.IManage.dll /reference:MyApp.Interop.IManExt.dll /reference:MyApp.Interop.AddinDesignerObjects.dll
BjoernWeber
Hi jny!
Thanks a lot. That worked perfectly!
Best regards
Björn
matt_woodward
Hey Guys,
I have used this process before successfully, I am now trying to go through the same process but for IManExt.dll (8.0.116.0) i.e. DeskSite SP4.
The tlbImp seems to generate a load of warnings and an error which prevent the interop from being generated. Has anyone else successfully generated an interop for the same version of IManExt.dll?
Here are the warnings / error (right at the bottom) in case it helps:
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: '_IDialogEvents'; parameter: 'field'; method: 'OnChange').
TlbImp : warning TI0000 : Type '_IDialogEvents' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: '_ISearchDlgEvents'; parameter: 'field';method: 'OnChange').
TlbImp : warning TI0000 : Type '_ISearchDlgEvents' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: '_INewVersionDlgEvents'; parameter: 'field'; method: 'OnChange').
TlbImp : warning TI0000 : Type '_INewVersionDlgEvents' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: '_IEditProfileDlgEvents'; parameter: 'field'; method: 'OnChange').
TlbImp : warning TI0000 : Type '_IEditProfileDlgEvents' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: '_INewProfileDlgEvents'; parameter: 'field'; method: 'OnChange').
TlbImp : warning TI0000 : Type '_INewProfileDlgEvents' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: IMANEXTLib._IDialogEvents_OnChangeEventHandler'; parameter: 'field'; method: 'Invoke').
TlbImp : warning TI0000 : Type 'ExportDlg' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: IMANEXTLib._ISearchDlgEvents_OnChangeEventHandler'; parameter: 'field'; method: 'Invoke').
TlbImp : warning TI0000 : Type 'SearchDlg' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'ISearchDlg'; parameter: 'AttributeNumber'; method: 'GetAttributeByID').
TlbImp : warning TI0000 : Type 'ISearchDlg' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'CheckinDlg'; parameter: 'pVal'; method:'get_CheckinOption').
TlbImp : warning TI0000 : Type 'CheckinDlg' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'ICheckinDlg'; parameter: 'pVal'; method: 'get_CheckinOption').
TlbImp : warning TI0000 : Type 'ICheckinDlg' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: IMANEXTLib._IEditProfileDlgEvents_OnChangeEventHandler'; parameter: 'field'; method: 'Invoke').
TlbImp : warning TI0000 : Type 'EditProfileDlg' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'IEditProfileDlg'; parameter: 'AttributeNumber'; method: 'GetAttributeByID').
TlbImp : warning TI0000 : Type 'IEditProfileDlg' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: IMANEXTLib._INewProfileDlgEvents_OnChangeEventHandler'; parameter: 'field'; method: 'Invoke').
TlbImp : warning TI0000 : Type 'NewProfileDlg' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'INewProfileDlg'; parameter: 'field'; method: 'GetAttributeByID').
TlbImp : warning TI0000 : Type 'INewProfileDlg' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: IMANEXTLib._IEditProfileDlgEvents_OnChangeEventHandler_2'; parameter: 'field'; method: 'Invoke').
TlbImp : warning TI0000 : Type 'PortableProfileDlg' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'IMANEXTLib._IEditProfileDlgEvents_OnChangeEventHandler_3'; parameter: 'field'; method: 'Invoke').
TlbImp : warning TI0000 : Type 'PortableEditProfileDlg' is invalid and may onlybe partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: IMANEXTLib._INewProfileDlgEvents_OnChangeEventHandler_2'; parameter: 'field'; method: 'Invoke').
TlbImp : warning TI0000 : Type 'PortableNewProfileDlg' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'IMANEXTLib._INewVersionDlgEvents_OnChangeEventHandler'; parameter: 'field'; method: 'Invoke').
TlbImp : warning TI0000 : Type 'NewVersionDlg' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'INewVersionDlg'; parameter: 'field'; method: 'GetAttributeByID').
TlbImp : warning TI0000 : Type 'INewVersionDlg' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'ImportCmd'; parameter: 'field'; method:'OnChange').
TlbImp : warning TI0000 : Type 'ImportCmd' is invalid and may only be partiallyconverted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'INewProfileDlgCPSink'; parameter: 'field'; method: 'OnChange').
TlbImp : warning TI0000 : Type 'INewProfileDlgCPSink' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'UsrGrpSecurityDlg'; parameter: 'pVal'; method: 'get_DefaultSecurityType').
TlbImp : warning TI0000 : Type 'UsrGrpSecurityDlg' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'IUsrGrpSecurityDlg'; parameter: 'pVal';method: 'get_DefaultSecurityType').
TlbImp : warning TI0000 : Type 'IUsrGrpSecurityDlg' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'FolderACLDlg'; parameter: 'pVal'; method: 'get_SecurityType').
TlbImp : warning TI0000 : Type 'FolderACLDlg' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'IFolderACLDlg'; parameter: 'pVal'; method: 'get_SecurityType').
TlbImp : warning TI0000 : Type 'IFolderACLDlg' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'PortableUpdate'; parameter: 'db'; method: 'WriteCaptions').
TlbImp : warning TI0000 : Type 'PortableUpdate' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'IPortableUpdate'; parameter: 'db'; method: 'WriteCaptions').
TlbImp : warning TI0000 : Type 'IPortableUpdate' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'FakeCallingObj'; parameter: 'id'; method: 'GetAttributeByID').
TlbImp : warning TI0000 : Type 'FakeCallingObj' is invalid and may only be partially converted.
TlbImp : warning TI0000 : Error while importing type: parameter referenced a type library that is not available (type: 'IFakeCallingObj'; parameter: 'id'; method: 'GetAttributeByID').
TlbImp : warning TI0000 : Type 'IFakeCallingObj' is invalid and may only be partially converted.
TlbImp : error TI0000 : System.SystemException - The type library importer encountered an error during type verification. Try importing without class members. : System.TypeLoadException - Missing definition for required runtime implemented delegate method.