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 / July 2007

Tip: Looking for answers? Try searching our database.

Strange tlb-reference problem in VS2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Henning Friese - 27 Jul 2007 13:52 GMT
Hi NG,

I'm encountering a strange problem with a reference to an activex-tlb
from my C#-VS2005-project. Sometimes when I try to build the project I
get build-errors like "Type or namespace xxx not found..." where xxx
is a namespace within the tlb. The reference-symbol in the solution-
explorer appears with a yellow exclamation mark on it. When I remove
the reference and try to add it again , VS claims that "A reference
to ... could not be added. Please make sure that the file is
accessible and that it is a valid assembly or com component". From
this point I can't reference the tlb in *any* VS-Project. When I
uninstall and reinstall the software which provides the tlb (Abbyy-
FineReader 7.1 btw), everything works fine again...for a while.

However, I am able to use tlbimp on that TypeLib (even after VS
refuses to reference it), but using the tlb that way is unfortunately
not an option.

Does anyone have an idea what's wrong and what I can do about it? Any
help would be highly appreciated!

Cheers
Henning
Henning Friese - 27 Jul 2007 15:48 GMT
Forget it, I sorted it out myself. In case this is relevant to anyone
else: The solution that refused to build includes a setup project.
Whenever the setup-project was build, the registration of the tlb got
deleted for some reason. After running regtlib.exe <tlb-file> the
project would compile again...until the setup is build the next
time :/

Regards
Henning

> Hi NG,
>
[quoted text clipped - 19 lines]
> Cheers
> Henning

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.