HighTechTalks DotNet Forums  

Strange tlb-reference problem in VS2005

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Strange tlb-reference problem in VS2005 in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Henning Friese
 
Posts: n/a

Default Strange tlb-reference problem in VS2005 - 07-27-2007 , 08:52 AM






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


Reply With Quote
  #2  
Old   
Henning Friese
 
Posts: n/a

Default Re: Strange tlb-reference problem in VS2005 - 07-27-2007 , 10:48 AM






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


On 27 Jul., 14:52, Henning Friese <henning.fri... (AT) gmx (DOT) de> wrote:
Quote:
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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.