Click to See Complete Forum and Search --> : setup file for class library com interop


rchiu5hk
October 11th, 2009, 11:26 PM
Dear all,

I have created setup file for c sharp class library com interop used in excel.
But after I had run the setup.exe in client, the excel in the client cannot use this tlb or dll.
As the dll function call prompt error that "Active X cannot create object".

do you have any solutions??

Client -- Windows XP and Office 2007

rchiu5hk
October 12th, 2009, 12:42 AM
I have solved this by running below command:

regasm /codebase dllname.dll \tld:tlbname.tlb

in the dll and tlb folder.
in my case:

\project folder\bin\debug\