Discussion:
Cant not read tlb file?
(too old to reply)
Kenneth
2009-11-02 09:46:01 UTC
Permalink
Hi

I have a problem :-)

I have created a .net DLL which is com visible and I have exported the dll
using regasm to a tlb. So far so good. I have also created a small c program
that calls this typelibrary and everything is working fine on my machine.

But if I copy this project (Visual studio 2008) to another machine compile
the dll run regasm and run the c program, I get an error saying "fatal error
C1084: Cannot read type library file: c:\.....': Error loading type
library/DLL.

I dont understand that I'm getting this error on other machines than my own.
PLEASE HELP, I'm desperate
Jani Järvinen [MVP]
2009-11-03 15:55:45 UTC
Permalink
Hi Kenneth,

I unfortunately don't have a ready answer for you, but have ideas of what
you could try. Is your COM objects complex and/or using complex types? If
yes, you might wish to create a very simple COM object, and test whether
that works on the other machine you mentioned.

Secondly, does your COM object have dependencies to other libraries,
objects, or so forth? If yes, then likely they do not exists on your other
machine. If this is the case, make sure the other machine has the same
libraries/DLLs/whatever is needed.

Hope this helps!
--
Regards,

Jani Järvinen
C# MVP
Vantaa, Finland
E-mail: ***@removethis.dystopia.fi
Business: http://www.nimacon.net/
Personal: http://www.saunalahti.fi/janij/
Post by Kenneth
Hi
I have a problem :-)
I have created a .net DLL which is com visible and I have exported the dll
using regasm to a tlb. So far so good. I have also created a small c program
that calls this typelibrary and everything is working fine on my machine.
But if I copy this project (Visual studio 2008) to another machine compile
the dll run regasm and run the c program, I get an error saying "fatal error
C1084: Cannot read type library file: c:\.....': Error loading type
library/DLL.
I dont understand that I'm getting this error on other machines than my own.
PLEASE HELP, I'm desperate
Loading...