Click here to Skip to main content
11,930,788 members (58,964 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET
Hi All, very good afternoon.

I have a project developed in 2003(Dotnet 1.0) it consist of AxInterop.MSFlexGridLib. The grid used is MSFLEXgrid. I have migrated the whole project to VS 2005 then while opening the form that consist of the grid throws me a error as below:
One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. 
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.CreateInstanceCore(Guid clsid)
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.set_Site(ISite value)
at System.ComponentModel.Container.Add(IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.Add(IComponent component, String name)
Please help.
Posted 23-Apr-11 0:18am
Edited 23-Apr-11 4:59am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

It looks like whichever program or process you're trying to initialize either isn't installed on your machine, has a damaged installation or needs to be registered.
Either install it, repair it (via Add/Remove Programs) or register it (via regsrv32.exe).

You should resister your MSFlexGridLib comm control
because it may damage or corrupted
santosh dhanawade 23-Apr-11 6:17am
First Add comment instead of adding AnswerSecondYou and get SetUp of AxInterop.MSFlexGridLib.dll in

Install it and then reply
Sandeep Mewara 23-Apr-11 9:59am
Comment from OP:
santhosh thx for the reply

i try to regsiter the dll using regsvrr32.exe then i get the following error
iam using a VistaHome premium 4 bit os

[Window Title]
The module "AxInterop.MSFlexGridLib.dll" was loaded but the entry-point DllRegisterServer was not found.
Make sure that "AxInterop.MSFlexGridLib.dll" is a valid DLL or OCX file and then try again.

can you please provide the me the dll

Rate this: bad
Please Sign up or sign in to vote.

Solution 3

I think you are trying to reference the old .NET 1.1 interop DLLs. Try removing those references and re-add the COM reference, which will automatically create the .NET 2.0 interop shim DLLs for you.
santosh dhanawade 23-Apr-11 10:52am
may be but how we resolved such problem
Nishant Sivakumar 23-Apr-11 10:54am
I'v suggested what you can do. Have you given that a try?
shanavas_sm 23-Apr-11 11:24am
yes iam trying to refer 1.1 interop dlls.but these MSFlexgrid dll are not available with me
Nishant Sivakumar 23-Apr-11 11:25am
You need the original COM DLL to be able to resolve this. The 1.1 interop DLLs will not work any more.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.151126.1 | Last Updated 23 Apr 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100