Question Class Not Declared

irion

New member
Joined
Sep 3, 2010
Messages
2
Programming Experience
1-3
Hello everyone.

I wasn't going to post anything, but this is driving me mad, honestly.. I don't know why it's doing this.

Here's my problem :

I coded a vb.net application, was working great, and released v3.0 today. Version in wich I added a bit of what orignally was a VB6 code (an IRC client using winsocks). I didn't code this VB6 application, I hardly know VB6, my mate has given it to me.
So, I used the VS 2008 converter, made the modifications, imported "VB = Microsoft.VisualBasic", added .dll as reference ( "AxInterop.MSWinsockLib" & "Interop.MSWinsockLib" ) and incorporated in my original vb.net application.

No problems debugging or compiling, I've tried it on my laptop, my home PC & on a VM I have on my laptop. There again, no problems (Laptop : Vista, Home : Vista & VM : XP -all 32 bits-).

After that, I released it. And guess what ? No one can use it. The login form loads, but they get a runtime error a user sent me, and this where I request your help.

Error message :

VB.NET:
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details.  The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) ---> System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
   at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
   at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
   at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
   at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
   at System.Windows.Forms.AxHost.CreateInstance()
   at System.Windows.Forms.AxHost.GetOcxCreate()
   at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
   at System.Windows.Forms.AxHost.CreateHandle()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.AxHost.EndInit()
   at PocketBooter.Form1.InitializeComponent()
   --- End of inner exception stack trace ---
   at PocketBooter.My.MyProject.MyForms.Create__Instance__[T](T Instance)
   at PocketBooter.Form4.Timer1_Tick(Object sender, EventArgs e)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
Pocket Booter
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Users/Administrator/Desktop/AJ/Pocket%20Booter.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
DevComponents.DotNetBar2
    Assembly Version: 8.1.0.7
    Win32 Version: 8.1.0.7
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/DevComponents.DotNetBar2/8.1.0.7__5fd520d36328f741/DevComponents.DotNetBar2.dll
----------------------------------------
AxInterop.MSWinsockLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Administrator/Desktop/AJ/AxInterop.MSWinsockLib.DLL
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Pastebin link : See the end of this message fo - Anonymous - 59Je2mRj - Pastebin.com

I have no idea why it's doing this, I've given you all the infos, some might be useless, but that's all I could think off. I've tried embending the .dll (like I usually do), I've tried without embending. I've trying with & without obfuscation. Same thing, always...

And, I'm not getting this error on any of my PCs ..

Thanks if you can help me..

-Irion.

PS : Excuse my bad english.
 
ActiveX controls have to be installed (registered) in client machines.

.Net has excellent socket support, I suggest you look into that and drop the ActiveX socket control.
 
ActiveX controls have to be installed (registered) in client machines.

.Net has excellent socket support, I suggest you look into that and drop the ActiveX socket control.

Hello.

Thanks for your reply.

And yes, I have been thinking about translating this into .net sockets, but I don't know how to modifie it so it uses sockets instead ..
 
Back
Top