Monday 18 February 2013

Upgrading issue - Visual Basic 6 Project to Visual Studio.NET Project

When i am trying upgrade my VB 6 Project to Visual Studio 2005.NET, i encountered an error saying

"Upgrade failed: Exception Occured : Could not load referenced component MSCOMCT2.OCX(2.0.0)
You need to install this component before u upgrade the project."


Solution:
  • Install .ocx component
  • Open command pro
                  REGSVR32 "C:\Windows\System32\MSCOMCT2.OCX"

                                                                                (OR)
  • Run the project in already installed vb.6.5 machine. Because 6.5 version  have MSCOMCT2.OCX.ocx file.



No comments: