Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / August 2006

Tip: Looking for answers? Try searching our database.

Since Visual Studio 2005 error loading type library

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mj - 31 Jul 2006 18:30 GMT
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!
Signature

mj
--
mj

"Peter Huang" [MSFT] - 01 Aug 2006 10:16 GMT
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.
mj - 03 Aug 2006 15:44 GMT
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!
Signature

mj

> Hi
>
[quoted text clipped - 29 lines]
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
"Peter Huang" [MSFT] - 04 Aug 2006 06:10 GMT
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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.