Converting Type Library to .NET Assembly

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am programming online shop in .NET using Commerce Server 2000 type library.
I'm need to convert the DLLs to .NET assembly and I use tlbimp.exe for that,
but I get error when I try to convert shipmgr.dll.

First I enter the Bin folder:
cd "C:\Program Files\Microsoft.NET\SDK\v1.1\Bin"

Make a keypair:
sn -k commerce.snk

And then:
tlbimp /out:export\CS_Catalog.dll Catalog.dll /keyfile:commerce.snk /primary
tlbimp /out:export\CS_requisition.dll requisition.dll /keyfile:commerce.snk
tlbimp /out:export\CS_pipeline.dll pipeline.dll /keyfile:commerce.snk /primary
tlbimp /out:export\CS_mscscache.dll mscscache.dll /keyfile:commerce.snk
/primary
tlbimp /out:export\CS_AppHelper.dll AppHelper.dll /keyfile:commerce.snk
/primary
tlbimp /out:export\CS_shipmgr.dll shipmgr.dll /keyfile:commerce.snk


I can make all those assemblys except shipmgr.dll. When I execute the last
line: tlbimp /out:export\CS_shipmgr.dll shipmgr.dll /keyfile:commerce.snk,
this error pops up:

C:\Program Files\Microsoft.NET\SDK\v1.1\Bin>tlbimp
/out:export\CS_shipmgr.dll shipmgr.dll /keyfile:commerce.snk
Microsoft (R) .NET Framework Type Library to Assembly Converter 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

TlbImp error: System.Runtime.InteropServices.COMException - Error loading
type library/DLL.
 
Normally that error message would appear if the DLL you are trying to scan
is not a COM dll. If it is not, don't worry about it. While you cannot
call it, you do not need to. The commerce server libraries would use it
directly.

Not sure why you are using Commerce Server 2000 still, but then again, I
left the commercial dot-com space a few years ago. Have you seen the
e-commerce community starter kit? It is written entirely in .NET, is free,
and comes with fully debugged code on www.asp.net

Give it a shot.

--- Nick
 
Back
Top