DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 27 Jul 2007 05:52:22 -0700,    posted on: microsoft.public.dotnet.framework.interop        back       

Thread Index
  1    Henning Friese
          2    Henning Friese


Strange tlb-reference problem in VS2005   
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
Date:Fri, 27 Jul 2007 05:52:22 -0700   Author:  

Re: Strange tlb-reference problem in VS2005   
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  wrote:

> 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
Date:Fri, 27 Jul 2007 07:48:56 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us