Christopher Green

Now with more Vitamin C!
posts - 41, comments - 30, trackbacks - 1

Convert a DLL to have a Strong Name using it's Type Library and TLBIMP

Recently I was adding interop.wialib to a strongly named project.  As wialib wasn't strongly named I got the following error:

Assembly generation failed - Referenecd assembly 'Interop.WIALib' does not have a strong name

I then came across this excellent tip from CodeProject which allows you to strongly name many of Microsoft assemblies:

The steps are
1) Create a key:
     sn -k keypair.snk

2) Rebuild the com object;
tlbimp OldDll.tlb /out:NewDll.dll /keyfile:keypair.snk

3) Remove the OldDll.dll from the project references

4) Add NewDll.dll the project

5) Full rebuild

Print | posted on Tuesday, January 24, 2006 12:19 PM |

Feedback

Gravatar

# re: Convert a DLL to have a Strong Name using it's Type Library and TLBIMP

i tried with your ex but happens error, pls tell me why?

TlbImp : error TI0000 : Unable to locate input type library: 'Microsoft.Practice
s.EnterpriseLibrary.Data.tlb'
5/20/2006 12:41 PM | cuongdv
Gravatar

# re: Convert a DLL to have a Strong Name using it's Type Library and TLBIMP

Where do I get the COM tlb file to do the conversion ?? If you have a copy could you please post it
9/29/2006 8:59 AM | Dinesh
Gravatar

# re: Convert a DLL to have a Strong Name using it's Type Library and TLBIMP

I am so sick of the TI0000 error..
11/5/2006 10:30 AM | ביטוח רכב
Comments have been closed on this topic.

Powered by: