VB Migration Partner

KNOWLEDGE BASE - General


Previous | Index | Next 

[PRB] .NET applications crash with “Unable to create ActiveX object” error

If you deploy a converted .NET executable on the end user’s computer and the application stops with an error stating that an ActiveX object or control can’t be created, check that the following conditions are all met:

  1. If the application uses either of the following objects:
         Printer, Printers, Print or Print Setup common dialog, WinSock control
    then the VB.NET requires the VBSupportLib.dll COM component at runtime. At the end of the migration process this DLL is deployed in the Support DLLs folder; it should be copied to the end user’s computer and registered using the RegSvr32 utility.
  2. If the application uses either of the following controls:   
         DataGrid, MSHFlexGrid, MSChar, MMControl, Calendar,
         Inet, MAPIMessage, MAPISession, MSComm, ScriptControl, Winsock
    then it is necessary that the corresponding OCX files be copied to the end user’s computer and registered using the RegSvr32 utility.
  3. If the application uses COM+ services that have no managed counterpart in VB Migration Partner’s support library, you should ensure that the COMSVCS.DLL type library be copied to the end user’s computer and registered using the RegSvr32 utility.
  4. Finally, you should ensure that all the type libraries used by the original VB6 projects and that haven’t been completely converted to .NET have been copied to the end user’s computer and registered using the RegSvr32 utility. For example, this is the case with the DAO.DLL and the ADODB type libraries.
Previous | Index | Next 




Follow Francesco Balena on VB6 migration’s group on

LinkedIn





Read Microsoft Corp’s official case study of a VB6 conversion using VB Migration Partner.




Code Architects and its partners offers remote and onsite migration services.

More details




Subscribe to our free newsletter for useful VB6 migration tips and techniques.

newsletter



To learn more about your VB6 applications, run VB6 Analyzer on your source code and send us the generated text file. You will receive a detailed report about your VB6 applications and how VB Migration Partner can help you to quickly and effectively migrate it to .NET.

Get free advice



A fully-working, time-limited Trial Edition of VB Migration Partner allows you to test it against your actual code

Get the Trial




The price of VB Migration Partner depends on the size of the VB6 application, the type of license, and other factors

Request a quote




Migrating a VB6 application in 10 easy steps

Comparing VB Migration Partner with Upgrade Wizard

Migration tools: Feature Comparison Table

All whitepapers