473,383 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Visual Studio can't add COM reference.

Using Visual Studio .NET 2003 I've tried to add a COM reference
to a Windows Form project via the Add Reference dialog (specifically
the Active DS Type Library) but always get the error message:

"A reference to 'Active DS Type Library' could not be added. The
type library wrapper tool 'tlbimp' cannot be found on this system.
Please re-install Visual Studio."

This occurs regardless of the actual tlb or dll selected and happens
on Win2000 and XP with various flavors of SP's using Framework 1.1
SP1.

TlbImp.exe exists in the Framework SDK bin directory and can be
executed from the Visual Studio command-line tool with no
qualification.

I've chatted with other developers over the phone and they
add COM references with no problem. While seeking a solution I've
made clean installs of Win2000 and XP, reinstalled Framework from
my prerequistite disk, and reinstalled VS a number of times with
identical results.

On searching these groups I've found a couple others (over the last
couple years) who've had the same problem, but I've never seen a
solution.

MS has a KB article 883608 that discusses a scenario that generates
the same error message, but doesn't seem to apply in my case.

Any help?
Thanks,
--J.
Nov 22 '05 #1
7 11620
Did you try running tlbimp.exe from commandline? Try that out.

- Sahil Malik
You can reach me thru my blog http://www.dotnetjunkies.com/weblog/sahilmalik

"jemmaq99" <jemmaq99@hotmail!.com> wrote in message
news:me********************************@4ax.com...
Using Visual Studio .NET 2003 I've tried to add a COM reference
to a Windows Form project via the Add Reference dialog (specifically
the Active DS Type Library) but always get the error message:

"A reference to 'Active DS Type Library' could not be added. The
type library wrapper tool 'tlbimp' cannot be found on this system.
Please re-install Visual Studio."

This occurs regardless of the actual tlb or dll selected and happens
on Win2000 and XP with various flavors of SP's using Framework 1.1
SP1.

TlbImp.exe exists in the Framework SDK bin directory and can be
executed from the Visual Studio command-line tool with no
qualification.

I've chatted with other developers over the phone and they
add COM references with no problem. While seeking a solution I've
made clean installs of Win2000 and XP, reinstalled Framework from
my prerequistite disk, and reinstalled VS a number of times with
identical results.

On searching these groups I've found a couple others (over the last
couple years) who've had the same problem, but I've never seen a
solution.

MS has a KB article 883608 that discusses a scenario that generates
the same error message, but doesn't seem to apply in my case.

Any help?
Thanks,
--J.

Nov 22 '05 #2
Yes, tlbimp executes fine from the command line. With no additional
environment variable settings and a plain DOS box, you have to
naviagate to the framework SDK bin drectory to execute it, or you
can use the fully-quaified pathname "c:\Program File\Microsoft Visual
Studio .NET 2003\SDK\v1.1\bin\tlbimp.exe"

From the Visual Studio command-line tool (Start->Programs->Microsoft
Visual Studio .NET 20030->Visual Studio .NET tools->Visual Studio .NET
2003 Command Prompt" (which is just a DOS box with vsvars32.bat
already run) it executes with no qualification.

I've also set the path environment variable so that it'll execute with
no qualifiaction, but still Visual Studio itself can't seem to find it
when I try to add a reference.

I've performed clean installations of Win2000 and XP partitoned and
formatted the drive during the installation, gotten all of the updates
at windowsupdates.microsoft.com, installed clean versions of
Visual Studio .NET 2003. Nevertheless, when I try to add a COM
reference to a simple "hello world" Windows Form app, I consistenly
get the same error. The .tlb and the .dll for the target COM component
exist in the c:\Windows\System32 directory.

I'm at a loss for an explanation.

Thanks, though, for your response...
--J.
On Sat, 9 Oct 2004 22:52:12 -0400, "Sahil Malik"
<co*****************@nospam.com> wrote:
Did you try running tlbimp.exe from commandline? Try that out.

- Sahil Malik
You can reach me thru my blog http://www.dotnetjunkies.com/weblog/sahilmalik

"jemmaq99" <jemmaq99@hotmail!.com> wrote in message
news:me********************************@4ax.com.. .
Using Visual Studio .NET 2003 I've tried to add a COM reference
to a Windows Form project via the Add Reference dialog (specifically
the Active DS Type Library) but always get the error message:

"A reference to 'Active DS Type Library' could not be added. The
type library wrapper tool 'tlbimp' cannot be found on this system.
Please re-install Visual Studio."

This occurs regardless of the actual tlb or dll selected and happens
on Win2000 and XP with various flavors of SP's using Framework 1.1
SP1.

TlbImp.exe exists in the Framework SDK bin directory and can be
executed from the Visual Studio command-line tool with no
qualification.

I've chatted with other developers over the phone and they
add COM references with no problem. While seeking a solution I've
made clean installs of Win2000 and XP, reinstalled Framework from
my prerequistite disk, and reinstalled VS a number of times with
identical results.

On searching these groups I've found a couple others (over the last
couple years) who've had the same problem, but I've never seen a
solution.

MS has a KB article 883608 that discusses a scenario that generates
the same error message, but doesn't seem to apply in my case.

Any help?
Thanks,
--J.


Nov 22 '05 #3
Funny .. but atleast you have a workaround ..

- Sahil Malik
You can reach me thru my blog http://www.dotnetjunkies.com/weblog/sahilmalik

"jemmaq99" <jemmaq99@hotmail!.com> wrote in message
news:n9********************************@4ax.com...
Yes, tlbimp executes fine from the command line. With no additional
environment variable settings and a plain DOS box, you have to
naviagate to the framework SDK bin drectory to execute it, or you
can use the fully-quaified pathname "c:\Program File\Microsoft Visual
Studio .NET 2003\SDK\v1.1\bin\tlbimp.exe"

From the Visual Studio command-line tool (Start->Programs->Microsoft
Visual Studio .NET 20030->Visual Studio .NET tools->Visual Studio .NET
2003 Command Prompt" (which is just a DOS box with vsvars32.bat
already run) it executes with no qualification.

I've also set the path environment variable so that it'll execute with
no qualifiaction, but still Visual Studio itself can't seem to find it
when I try to add a reference.

I've performed clean installations of Win2000 and XP partitoned and
formatted the drive during the installation, gotten all of the updates
at windowsupdates.microsoft.com, installed clean versions of
Visual Studio .NET 2003. Nevertheless, when I try to add a COM
reference to a simple "hello world" Windows Form app, I consistenly
get the same error. The .tlb and the .dll for the target COM component
exist in the c:\Windows\System32 directory.

I'm at a loss for an explanation.

Thanks, though, for your response...
--J.
On Sat, 9 Oct 2004 22:52:12 -0400, "Sahil Malik"
<co*****************@nospam.com> wrote:
Did you try running tlbimp.exe from commandline? Try that out.

- Sahil Malik
You can reach me thru my blog
http://www.dotnetjunkies.com/weblog/sahilmalik

"jemmaq99" <jemmaq99@hotmail!.com> wrote in message
news:me********************************@4ax.com. ..
Using Visual Studio .NET 2003 I've tried to add a COM reference
to a Windows Form project via the Add Reference dialog (specifically
the Active DS Type Library) but always get the error message:

"A reference to 'Active DS Type Library' could not be added. The
type library wrapper tool 'tlbimp' cannot be found on this system.
Please re-install Visual Studio."

This occurs regardless of the actual tlb or dll selected and happens
on Win2000 and XP with various flavors of SP's using Framework 1.1
SP1.

TlbImp.exe exists in the Framework SDK bin directory and can be
executed from the Visual Studio command-line tool with no
qualification.

I've chatted with other developers over the phone and they
add COM references with no problem. While seeking a solution I've
made clean installs of Win2000 and XP, reinstalled Framework from
my prerequistite disk, and reinstalled VS a number of times with
identical results.

On searching these groups I've found a couple others (over the last
couple years) who've had the same problem, but I've never seen a
solution.

MS has a KB article 883608 that discusses a scenario that generates
the same error message, but doesn't seem to apply in my case.

Any help?
Thanks,
--J.

Nov 22 '05 #4
Hi

I have exactly the same problem since upgrading to WinXP SP2.
Have you figured out the cause of the problem?
I've been searching desperately for a solution but Microsoft's only knowledge base article doesnt seem relevant. I'm a .net newbie so would welcome some help from anybody on this one.

I can be contacted at jp@oxoboys.com

Thanks
Using Visual Studio .NET 2003 I've tried to add a COM reference
to a Windows Form project via the Add Reference dialog (specifically
the Active DS Type Library) but always get the error message:

"A reference to 'Active DS Type Library' could not be added. The
type library wrapper tool 'tlbimp' cannot be found on this system.
Please re-install Visual Studio."

This occurs regardless of the actual tlb or dll selected and happens
on Win2000 and XP with various flavors of SP's using Framework 1.1
SP1.

TlbImp.exe exists in the Framework SDK bin directory and can be
executed from the Visual Studio command-line tool with no
qualification.

I've chatted with other developers over the phone and they
add COM references with no problem. While seeking a solution I've
made clean installs of Win2000 and XP, reinstalled Framework from
my prerequistite disk, and reinstalled VS a number of times with
identical results.

On searching these groups I've found a couple others (over the last
couple years) who've had the same problem, but I've never seen a
solution.

MS has a KB article 883608 that discusses a scenario that generates
the same error message, but doesn't seem to apply in my case.

Any help?
Thanks,
--J


User submitted from AEWNET (http://www.aewnet.com/)
Nov 22 '05 #5
Here a guess: maybe this is a path problem. Are you using the same account
that the one you have used for installing VS.NET 2003 and have you checked
the available paths in your environment?

S. L.

"Guest" <Guest@aew_nospam.com> wrote in message
news:uG**************@TK2MSFTNGP12.phx.gbl...
Hi

I have exactly the same problem since upgrading to WinXP SP2.
Have you figured out the cause of the problem?
I've been searching desperately for a solution but Microsoft's only
knowledge base article doesnt seem relevant. I'm a .net newbie so would
welcome some help from anybody on this one.

I can be contacted at jp@oxoboys.com

Thanks
Using Visual Studio .NET 2003 I've tried to add a COM reference
to a Windows Form project via the Add Reference dialog (specifically
the Active DS Type Library) but always get the error message:

"A reference to 'Active DS Type Library' could not be added. The
type library wrapper tool 'tlbimp' cannot be found on this system.
Please re-install Visual Studio."

This occurs regardless of the actual tlb or dll selected and happens
on Win2000 and XP with various flavors of SP's using Framework 1.1
SP1.

TlbImp.exe exists in the Framework SDK bin directory and can be
executed from the Visual Studio command-line tool with no
qualification.

I've chatted with other developers over the phone and they
add COM references with no problem. While seeking a solution I've
made clean installs of Win2000 and XP, reinstalled Framework from
my prerequistite disk, and reinstalled VS a number of times with
identical results.

On searching these groups I've found a couple others (over the last
couple years) who've had the same problem, but I've never seen a
solution.

MS has a KB article 883608 that discusses a scenario that generates
the same error message, but doesn't seem to apply in my case.

Any help?
Thanks,
--J.


User submitted from AEWNET (http://www.aewnet.com/)

Nov 22 '05 #6
I was having the exact same problem. I couldn't add COM references through VS, but I could run tlbimp.exe from the command prompt even though VS said that it couldn't find it.

I reformatted, and everything worked again.. until... I installled Office Professional 2003. After that, VS couldn't find tlbimp again. I uninstalled Office, VS finds tlbimp.

I am guessing that one of the components of Office is conflicting with tlbimp inside of the GAC.

If anyone else is having this problem, try uninstalling Office, and share your results.

--Michael F.

User submitted from AEWNET (http://www.aewnet.com/)
Nov 22 '05 #7
jwen
1
take look at http://dallas.sark.com/SarkBlog/cbol...9/29/2156.aspx

It seems that your real problem is permissions. If you created a shortcut on your desktop for VS.NET and the target has a mapped directory path - even if it is a local drive - there will be problems using any of the programs in the \sdk\bin folder.

I was having the same problem when I created a shorcut on my desktop and started using it instead fo using the Visual Studio icon in the Programs menu. For some reason, when the shortcut was created, it created a target value with a drive mapping rather than an explicit c:\ drive.

I altered the shortcut properties target to point to the explicit local drive - not a mapped path. It works as it should. Hope this helps.

J.
Mar 1 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: angelag | last post by:
I am currently taking a college course in Visual Basic.Net and I am a beginner. I bought Visual Studio.Net 2003 to do my homework at home. I built my first project and e-mailed it to myself at...
6
by: jemmaq99 | last post by:
Using Visual Studio .NET 2003 I've tried to add a COM reference to a Windows Form project via the Add Reference dialog (specifically the Active DS Type Library) but always get the error message: ...
3
by: Rob Mayo | last post by:
I am working in an environment with 4 developers. 2 groups of 2 people working on the same server on the same web project with no version control management on the web server. Programmers A & B...
0
by: fiona | last post by:
Innovasys Ltd., a leader in help authoring and documentation tools, today announced the inclusion of a tailored version of the Innovasys HelpStudio help authoring product, HelpStudio Lite, in the...
5
by: Mads Peter Nymand | last post by:
Hi, Background: I'm a Java programmer new to c# and Visual Studio. Problem: When I compile in Visual Studio 2005, the compiler complains, that it can not find several different namespaces....
0
by: innovasys | last post by:
TORQUAY, DEVON, UK - Innovasys announced the release of Document! X 5, the fifth version of the documentation solution of choice for developers using Microsoft Visual Studio or the .NET Framework....
4
by: m11533 | last post by:
I am developing a large application with Visual Studio .NET 2003 using C#. We recently added a new third party product with a native .NET library. I want to place this third party product's dll in...
10
by: Steve | last post by:
I am trying to create a DLL in Visual Studio 2005-Visual Basic that contains custom functions. I believe I need to use COM interop to allow VBA code in Excel 2002 to access it. I've studied...
0
by: _Who | last post by:
I'm trying to free up some space on my system disk. In Add or Remove Programs I see: Microsoft Windows SDK for Visual Studio 2008 .NET Framework Tools Microsoft Windows SDK for Visual Studio...
0
by: garbmail10 | last post by:
Hallo to all I'm using visual studio 2010 c# on windows 7 In a program i use SpeechLib (located in C:\Windows\System32\Speech\Common\sapi.dll) with SpVoice voice = new SpVoice();...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.