473,513 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Exception when using EnvDTE. How to fix?

Hi

Has anybody encountered this:

EnvDTE.DTE env = new EnvDTE.DTE();

raises this exception:
{"COM object with CLSID {3C9CFE1E-389F-4118-9FAD-365385190329} is
either not valid or not registered." }
Cruising over the internet I have found out that this happends only
when the framework version is bigger that 1.0 (beta, v1.1). I am using
1.1.
Is there any method for getting rid of this issue?

Any help is greatly appreciated.

Christina Androne.

Nov 15 '05 #1
2 3511
The guid 3C9CFE1E-389F-4118-9FAD-365385190329 refers to VSDTE7.0

try:

EnvDTE.DTE env = (EnvDTE.DTE)
System.Runtime.InteropServices.Marshal.GetActiveOb ject("VisualStudio.DTE.7.1
");
"Christina Androne" <ac********@home.ro> wrote in message
news:eO*************@TK2MSFTNGP10.phx.gbl...
Hi

Has anybody encountered this:

EnvDTE.DTE env = new EnvDTE.DTE();

raises this exception:
{"COM object with CLSID {3C9CFE1E-389F-4118-9FAD-365385190329} is
either not valid or not registered." }
Cruising over the internet I have found out that this happends only
when the framework version is bigger that 1.0 (beta, v1.1). I am using
1.1.
Is there any method for getting rid of this issue?

Any help is greatly appreciated.

Christina Androne.

Nov 15 '05 #2
Yves Tourchot wrote:
The guid 3C9CFE1E-389F-4118-9FAD-365385190329 refers to VSDTE7.0

try:

EnvDTE.DTE env = (EnvDTE.DTE)
System.Runtime.InteropServices.Marshal.GetActiveOb ject("VisualStudio.D
TE.7.1 ");


Thank you, I've found this in the MS docs just before reading your post
:-). Now I have another problem: I have to create a toolbox item and
add on it like 30 or more controls form the same dll. The problem is
that this opperation is incredibly slow (I understood the assembly is
loaded and freed for every added item), and we're trying to find a
faster solution. Do you (or anybody else for that matter) have any idea
on how to speed up the process?

TIA,
Christina Androne

Nov 15 '05 #3

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

Similar topics

0
2396
by: Fred Chen | last post by:
Hi, I've created a custom component and I am trying to add this component to my toolbox through an installer. I've read previous posts and msdn documentation on using the DTE object and the...
0
4594
by: Jindrich Hora | last post by:
This code is in MSDN as example for attach to active instance EnvDTE.DTE. (example in C#) EnvDTE.DTE myDTE = (EnvDTE.DTE)...
0
920
by: whyithappen | last post by:
I am building a add-in project to extend the VS environment. Code excerpt: EnvDTE.DTE hostApplication; .... SelectedItems selItems = hostApplication.SelectedItems; SelectedItem selItemObj =...
0
1107
by: Nadav | last post by:
Hi, I am writing an AddIn that adds a new EnvDTE.Command, upon setting a key for the command ( Command.Bindings = "Global::f12" ) an exception is being generated... Why can't I set a Key for the...
3
4546
by: Allen Anderson | last post by:
due to some installer problems, I need to ship envdte.dll and put it on a client machine briefly during the install of one of my controls. Does anyone know if ms restricts the redistribution of...
1
1501
by: Gustavo De la Espriella | last post by:
Hi, I'm starting to build a wizard application that needs to add controls to a form using the EnvDTE library (in VB.NET). I guess it's something like what the Dataform wizard does. Is there some...
1
3375
by: SQLJunkie | last post by:
Hi, I have installed SQL 2005 RTM on a new server and I keep getting this error (described below) quite frequently. Was wondering if anyone has a clue on what's happening here. I tried googling...
2
1867
by: xavendano | last post by:
Hi, I have a tool made in vb.net that generate code.....class files o mod files. If this tool is an Add-in, how can I insert this new files into a current project using code...???? ...
2
5636
by: GS | last post by:
that causes this reference and redirect <assemblyIdentity name="EnvDTE" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0"/>
0
7264
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,...
0
7386
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7543
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...
1
7106
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...
0
7534
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4749
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...
0
3236
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...
0
3226
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
459
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...

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.