HighTechTalks DotNet Forums  

Won't instantiate

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Won't instantiate in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
=?Utf-8?B?Q2hyaXMgRGF2b2xp?=
 
Posts: n/a

Default Won't instantiate - 09-07-2007 , 04:26 PM






Here is the error I am getting. Anybody know what I need to do to this
component? Do I need to register it? It won't let me regiter it. (see
previous post)

{"Class not registered (Exception from HRESULT: 0x80040154
(REGDB_E_CLASSNOTREG))"}
[System.Runtime.InteropServices.COMException]: {"Class not registered
(Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: null
InnerException: null
Message: "Class not registered (Exception from HRESULT: 0x80040154
(REGDB_E_CLASSNOTREG))"
Source: "System.Windows.Forms"
StackTrace: " at
System.Windows.Forms.UnsafeNativeMethods.CoCreateI nstance(Guid& clsid, Object
punkOuter, Int32 context, Guid& iid)\r\n at
System.Windows.Forms.AxHost.CreateWithoutLicense(G uid clsid)\r\n at
System.Windows.Forms.AxHost.CreateWithLicense(Stri ng license, Guid clsid)\r\n
at System.Windows.Forms.AxHost.CreateInstanceCore(Gui d clsid)\r\n at
System.Windows.Forms.AxHost.CreateInstance()\r\n at
System.Windows.Forms.AxHost.GetOcxCreate()\r\n at
System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)\r\n at
System.Windows.Forms.AxHost.CreateHandle()\r\n at
System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)\r\n at
System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)\r\n at
System.Windows.Forms.AxHost.EndInit()\r\n at
ISEDisplay.ISESampleDlg.InitializeComponent() in C:\\Program
Files\\Stentor\\iSiteSDK\\iSiteSDK3.5\\VisualCShar p.NET\\VisualCSharp.NET\\ISESampleDlg.cs:line 321"
TargetSite: {System.Object CoCreateInstance(System.Guid ByRef,
System.Object, Int32, System.Guid ByRef)}

--
Chris Davoli


Reply With Quote
  #2  
Old   
G Himangi
 
Posts: n/a

Default Re: Won't instantiate - 09-12-2007 , 06:23 AM






Are you trying to create an ActiveX control? Which one? Have you made sure
that the control is registered on the system using regsvr32.exe or similar
tool?

---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
---------


"Chris Davoli" <ChrisDavoli (AT) discussions (DOT) microsoft.com> wrote

Quote:
Here is the error I am getting. Anybody know what I need to do to this
component? Do I need to register it? It won't let me regiter it. (see
previous post)

{"Class not registered (Exception from HRESULT: 0x80040154
(REGDB_E_CLASSNOTREG))"}
[System.Runtime.InteropServices.COMException]: {"Class not registered
(Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: null
InnerException: null
Message: "Class not registered (Exception from HRESULT: 0x80040154
(REGDB_E_CLASSNOTREG))"
Source: "System.Windows.Forms"
StackTrace: " at
System.Windows.Forms.UnsafeNativeMethods.CoCreateI nstance(Guid& clsid,
Object
punkOuter, Int32 context, Guid& iid)\r\n at
System.Windows.Forms.AxHost.CreateWithoutLicense(G uid clsid)\r\n at
System.Windows.Forms.AxHost.CreateWithLicense(Stri ng license, Guid
clsid)\r\n
at System.Windows.Forms.AxHost.CreateInstanceCore(Gui d clsid)\r\n at
System.Windows.Forms.AxHost.CreateInstance()\r\n at
System.Windows.Forms.AxHost.GetOcxCreate()\r\n at
System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)\r\n at
System.Windows.Forms.AxHost.CreateHandle()\r\n at
System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)\r\n
at
System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)\r\n
at
System.Windows.Forms.AxHost.EndInit()\r\n at
ISEDisplay.ISESampleDlg.InitializeComponent() in C:\\Program
Files\\Stentor\\iSiteSDK\\iSiteSDK3.5\\VisualCShar p.NET\\VisualCSharp.NET\\ISESampleDlg.cs:line
321"
TargetSite: {System.Object CoCreateInstance(System.Guid ByRef,
System.Object, Int32, System.Guid ByRef)}

--
Chris Davoli




Reply With Quote
  #3  
Old   
Daniel Passwater
 
Posts: n/a

Default Error: Class not registered in CreateInstance(CLSID) - 09-13-2007 , 05:07 PM



Did you ever figure this out? I'm having a similar problem. I'm calling some C# code from unmanaged C++; and when I go to CreateInstance(CLSID), I get a "Class not registered" error. My class ID is correct, so I can't figure this out.

Thanks, and good luck.

EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.