Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OCX won't import to VS2010 IDE

Status
Not open for further replies.

vbdbcoder

Programmer
Nov 23, 2006
247
US
I have been scratching my head for a couple days over this problem.

Environment: 32 bit Windows 7; VS 2010
Target: to build a WinForm application with an OCX control
.NET Framework: 3.5

I could add the OCX control to my Toolbox to the left. As soon as I drag and drop it to the Windows form designer, VS2010 prompted me an error message "Failed to import the ActiveX control. Please ensure it is properly registered.". The OCX was registered correctly. I could see some of the dependency files were added to the project References from the OCX.

Is there any pointer to fix it...??

Thanks in advance.
 
Have you ensured that the dll that contains the OCX is visible within the C:\windows\assemby\ folder?
You may need to physically drag the .dll into the assembly to get it registered correctly.

Then restart both VS and IIS.

Lod

You've got questions and source code. We want both!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top