473,503 Members | 756 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Addin problem - "invalid class string"

Help, please, I can't get any addins working on a new machine. I registered
the correct plugin names into the right registry location. I gave
VSControlHostLib with a strong name, created the interop assembly, put them
both in the GAC. On my main development machine plugins work OK. On this new
machine no plugins work (not even the ToolWindow example). I keep getting
this error message when invoking EnvDTE.Windows.CreateToolWindow:

System.Interop.RunTimeServices.COMException (0x800401F3): Invalid Class
String.

If someone could help me get this up and running before noon I would be very
grateful.

Thanks,
Paul
Nov 21 '05 #1
3 5228
Hi,

I assume that the host (target) of your add-in is VS.NET (not an Office
product) and that you are using a shim control (because you can call
CreateToolwindow without the shim control in VS.NET 2002 and even in VS.NET
2003 with a hack).

The shim control, provided by MS or other versions out there, needs to be
re-ProgID and re-GUID to avoid collisions with shim controls of other
products. Have you done that? See

http://groups.google.es/group/micros...0741c50a665b2e

That said, the shim control, being an ActiveX (COM) control, must be
registered with regsvr32.exe or similar. Have you done this on the client
machines?

Finally, why are you deploying it to the GAC? There is no need for that,
unless you are sharing it with other apps.

--
Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Paul" <no***@executespammers.org> escribió en el mensaje
news:u3****************@TK2MSFTNGP09.phx.gbl...
Help, please, I can't get any addins working on a new machine. I
registered
the correct plugin names into the right registry location. I gave
VSControlHostLib with a strong name, created the interop assembly, put
them
both in the GAC. On my main development machine plugins work OK. On this
new
machine no plugins work (not even the ToolWindow example). I keep getting
this error message when invoking EnvDTE.Windows.CreateToolWindow:

System.Interop.RunTimeServices.COMException (0x800401F3): Invalid Class
String.

If someone could help me get this up and running before noon I would be
very
grateful.

Thanks,
Paul

Nov 21 '05 #2
regsvr32.exe did it you were right yes yes yes

Wohoo! Pulled out of the fire!

Thanks!

Paul

"Carlos J. Quintero [.NET MVP]" <ca*****@NOSPAMsogecable.com> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

I assume that the host (target) of your add-in is VS.NET (not an Office
product) and that you are using a shim control (because you can call
CreateToolwindow without the shim control in VS.NET 2002 and even in VS.NET 2003 with a hack).

The shim control, provided by MS or other versions out there, needs to be
re-ProgID and re-GUID to avoid collisions with shim controls of other
products. Have you done that? See

http://groups.google.es/group/micros...0741c50a665b2e
That said, the shim control, being an ActiveX (COM) control, must be
registered with regsvr32.exe or similar. Have you done this on the client
machines?

Finally, why are you deploying it to the GAC? There is no need for that,
unless you are sharing it with other apps.

--
Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Paul" <no***@executespammers.org> escribió en el mensaje
news:u3****************@TK2MSFTNGP09.phx.gbl...
Help, please, I can't get any addins working on a new machine. I
registered
the correct plugin names into the right registry location. I gave
VSControlHostLib with a strong name, created the interop assembly, put
them
both in the GAC. On my main development machine plugins work OK. On this
new
machine no plugins work (not even the ToolWindow example). I keep getting this error message when invoking EnvDTE.Windows.CreateToolWindow:

System.Interop.RunTimeServices.COMException (0x800401F3): Invalid Class
String.

If someone could help me get this up and running before noon I would be
very
grateful.

Thanks,
Paul


Nov 21 '05 #3
Well, then you can re-ProgID and re-GUID now. Be aware if you don´t do it
and another add-in developer does the same, your add-in could end using the
shim control of the another add-in if it was registered after yours, or even
worse, it could break your add-in if it is uninstalled.

BTW, the microsoft.public.vsnet.ide newsgroup is better than this for add-in
questions, and the Yahoo forum (http://groups.yahoo.com/group/vsnetaddin/)
even better.

--
Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Paul" <no***@executespammers.org> escribió en el mensaje
news:ev**************@TK2MSFTNGP15.phx.gbl...
regsvr32.exe did it you were right yes yes yes

Wohoo! Pulled out of the fire!

Thanks!

Paul


Nov 21 '05 #4

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

Similar topics

0
4585
by: Brian Morris | last post by:
I'm new to .NET and just trying a few things out, like emailing. I created a form in Visual Studio .Net to input some information for generating an email and I'm getting the following error when it...
1
3843
by: Ron | last post by:
I am trying to run asp.net pages. The server is accessed via http://sitename/username I have verified it is using port 80 and aspx extensions are configured. But when I run and asp.net page I...
1
3958
by: verb13 | last post by:
In an asp page in localhost I have this: Set x = Server.CreateObject("Scripting.Dictionary") And I get this error: Invalid class string If I omit Server like this: Set x =...
7
17858
by: Dica | last post by:
i've used the sample code from msdn to create an encyption/decryption assembly as found here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT10.asp i'm...
7
2228
by: GS | last post by:
Hi! I am getting an "Invalid Xml" exception when I try to load an xsl file using XslTransform.Load(string url). The Xsl file is valid and works fine if I just rename the file. There are some...
7
9511
by: Søren Dreijer | last post by:
Hi, I have a mixed C#, managed C++ and unmanaged C++ project. The managed class calls a method which exists in an unmanaged singleton class. During the entire lifetime of the application, this...
1
7997
by: Java Guy | last post by:
I'm trying to view a web page. IE tells me there are (Java?) errors on the page. Here they are: Line: 15 Char: 7 Error: Wrong number of arguments or invalid propert assignment Code: 0 URL:...
10
4014
by: jonathanemil | last post by:
Hello, I am a 1st semester Computer Science student in a Python class. Our current assignment calls for us to read a list from a file, create a 2-dimensional list from the file, and check to see...
1
2791
by: eBob.com | last post by:
I have some code which is trying to determine where text will wrap in a custom text box (which Inherits from Control). It determines the number of characters which will fit in the first line, but...
0
7203
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
7089
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...
0
7463
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
5581
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5017
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4678
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
3168
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
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
389
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.