all groups > dotnet interop > july 2006 >
You're in the

dotnet interop

group:

Since Visual Studio 2005 error loading type library


Since Visual Studio 2005 error loading type library mj
7/31/2006 10:30:01 AM
dotnet interop:
Hello,
After I installed Visual Studio 2005 I noticed that when I try to add a
reference to a type library (tlb) I get the message "Could not load the type
library, Error loading the type library. After much research I uninstalled
VS2005 and went back VS2003 but with still the same problem. Note: Before I
installed VS2005 adding a reference to type libraries in my projects using
VS2003 worked fine, this is why I am assuming it has something to do with
VS2005.

I really need help with this. Does anyone know what I could do to resolve
this?

Thank you in advance for your help!
--
mj
--
RE: Since Visual Studio 2005 error loading type library v-phuang NO[at]SPAM online.microsoft.com (
8/1/2006 12:00:00 AM
Hi

I understand that the tlb file you means is COM Object but not a ActiveX
control.
If I misunderstand, please let me know.

Because the VS.NET 2005 IDE will generally do the similar job as the tool
tlbimp did.
So I think you may try to use the tlbimp tool to generate the interop
assembly to see what is the detailed error message.

Also I understand that add reference to the tlb previously understand
Vs.NET 2003 will work fines.
I assume the tlb file is OK.

But because the tlb file may refer to other dll/tlb file, the problem may
be caused by that certain tlb/dll required by the tlb is changed or
corrupted.

So please try the tlbimp directly to see what is the error message.
Type Library Importer (Tlbimp.exe)
http://msdn2.microsoft.com/en-us/library/tt0cf3sx.aspx

Best regards,

Peter Huang

Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
RE: Since Visual Studio 2005 error loading type library mj
8/3/2006 7:44:01 AM
Hi Peter,
Thank you for your quick response. I will do as you have suggested. With
all the other test I have done it looks like the tlb given to me by a third
party vendor is currupted. I will do what you suggested to further test the
tlb file.

Thanks again for all your help!
--
mj


[quoted text, click to view]
RE: Since Visual Studio 2005 error loading type library v-phuang NO[at]SPAM online.microsoft.com (
8/4/2006 12:00:00 AM
Hi,

Thanks for your quickly reply!
Please take your time to perform the test.
If you have any question about this issue, please feel free to post here.

Best regards,

Peter Huang

Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
AddThis Social Bookmark Button