The VNC Manager - SmartCode Solutions Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



ViewerX and Windows 7 Expand / Collapse
Author
Message
Posted 9/23/2009 10:59:18 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 9/23/2009 2:47:13 PM
Posts: 10, Visits: 27
I have recently upgraded to Windows 7 (impressive for a non service pack OS from Microsoft) but I am having trouble with the ViewerX control. 

I have registered it with regsvr, I have copied my lic file to the directory where it lives.  I have rebooted, restarted VS2008, unregistered and reregistered, checked the forums, googled for activeX windows 7 issues.  I'm at a loss.

Everytime I run the app and load the form with the ViewerX on it, I get

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

System.Runtime.InteropServices.COMException was unhandled
  ErrorCode=-2147221164
  Message="Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"
  Source="System.Windows.Forms"
  StackTrace:
       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 getservd_Command_Center.dialog_VNCViewer.InitializeComponent() in D:\Projects\GetServd.com\gsCommandCenter\v3.1\Dialogs\dlg_VNCViewer.designer.vb:line 172
       at getservd_Command_Center.dialog_VNCViewer..ctor() in D:\Projects\GetServd.com\gsCommandCenter\v3.1\Dialogs\dlg_VNCViewer.vb:line 193

Any assistance or suggestions you might have would be greatly appreciated.

Thanks

M

Post #2702
Posted 9/23/2009 3:57:40 PM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Yesterday @ 7:10:09 PM
Posts: 1,163, Visits: 1,909
I think I know what is happening. This has nothing to do with Windows 7. ViewerX is a 32-bit ActiveX (we are planning to release a 64-bit build by the end of this year) and your .Net application was compiled as either 64 bit or as Any CPU. Due to this when you run the application it's unable to load ViewerX because 64 bit applications cannot use 32 bit ActiveX controls.

In order to get rid of this problem you would have to compile your application as 32-bit (x86).



Kindest Regards,
SmartCode Solutions Support

Post #2703
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Support (s-code), Alex (s-code)

Permissions Expand / Collapse

All times are GMT -8:00, Time now is 7:12pm

Powered by InstantForum.NET v4.1.4 © 2010
Execution: 0.203. 9 queries. Compression Disabled.