By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,965 Members | 1,457 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,965 IT Pros & Developers. It's quick & easy.

Exception when using EnvDTE. How to fix?

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.