473,785 Members | 2,299 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 11713
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@hotma il!.com> wrote in message
news:me******** *************** *********@4ax.c om...
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\b in\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\Syst em32 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.co m> 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@hotma il!.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@hotma il!.com> wrote in message
news:n9******** *************** *********@4ax.c om...
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\b in\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\Syst em32 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.co m> 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@hotma il!.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_nosp am.com> wrote in message
news:uG******** ******@TK2MSFTN GP12.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 New Member
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
7269
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 school. When I tried to open it in the lab, I got a message saying I couldn't open it because it was created with a newer version. Evidently the lab is using Visual Studio.Net 2002. My professor doesn't just want the executable file, he wants...
6
741
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: "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...
3
2300
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 servername/project1 Programmers C & D servername/project2 All programmers have solutions that have their respective web projects, accessed over file share. Programmers A & B so far are fine. Programmers C & D have a problem.
0
3354
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 Microsoft Visual Studio 2005 Software Development Kit. By providing a full help authoring environment within the Visual Studio 2005 SDK, Innovasys is providing developers building components and products that integrate with Visual Studio 2005 a...
5
4038
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. Examples: Error 1 The type or namespace name 'Soap' does not exist in the namespace 'System.Runtime.Serialization.Formatters' (are you missing an assembly reference?)
0
1819
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. Document! X 5 automatically produces professional quality technical documentation and on-line help for Microsoft .NET Framework assemblies (.NET Framework 1.0, 1.1 and 2.0 are all supported), COM components and controls, Visual Basic source code,...
4
5514
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 a VS Project of its own, and then reference that project from those c# projects in my solution that are dependent on the third party product. I created a c# class library project, ThirdPartyDll. Placed the dll file in question into that...
10
8205
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 everything I can find on COM Interop and .NET. I've also tried many of the 'Walkthroughs' on the MSDN site relating to COM add-ins, .NET and Office XP but am unable to get even these working in Excel 2002 or Word 2002. I've installed the Office XP...
0
3353
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 2008 Headers and libraries Microsoft Windows SDK for Visual Studio 2008 SDK Reference Assemblies Microsoft Windows SDK for Visual Studio 2008 Tools Microsoft Windows SDK for Visual Studio 2008 Win32 Tools Microsoft Windows SDK for Windows Server...
0
1904
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(); voice.Speak("Hallo", SpeechVoiceSpeakFlags.SVSFDefault);
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9485
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10161
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3662
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2890
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.