I inherited this vb application. I can't even edit some forms because I get a class not registered exception so therefore I can't delete the offending class. So I look in the reference list and there are several with yellow exclamation points. A search of the microsoft web site brings up nothing. Where can I find these
AxComCtl2
AxMSMask
ComCtl2
MSMask

can't find references
xishan shigri
ComCtl2 and MSMask are COM controls typically used in VB6 applications. The Ax... file is a COM interop wrapper for the com control that is created when you add a reference to the COM control in question. I'm not sure which user controls from Common Controls 2 (ComCtl2) you are using, but as for the MSMask, I highly recommend you replace it with the MaskedTextBox in VB 2005. You will experience a big performance penalty using the MSMask and you don't have to worry about alot of the flakeyness of the old Masked Edit control.
Jim Wooley
http://devauthority.com/blogs/jwooley
Sam_res03
I have similar problem too. It's windows application, which references that AxInterop.ComCtl2 assemblys. Reference path for that files is /obj folder in my solutions and when i look at that folder files are there.
I can build my application and run it, and it will work fine untill EndInit() method of some of the AxInterop.ComCtl2's controls is called (more interesting that BeginInit method goes well and after setting up some properties and call EndInit the application crashes).
Then i got following message:
Run-time exception thrown : System.Runtime.InteropServices.COMException - Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
If i try 'regsvr32 AxInterop.ComCtl2.dll' i get following: AxInterop.ComCtl2.dll was loaded, but the DllRegisterServer entry point was not found. This file can not be registered.
Thanks.
gshaf
ihatems,
According to your questin, I recommand you:
1. regsvr32 COM.ocx/dll to your system Registry.
2. Make sure you can find the file such as 'C:\WINNT\system32\AxMSMask.dll' and some other ocx controls or dlls.
3. When you successsfully register the components, please look for them in the toolbox or add the reference for them in Visual Studio IDE. There are several panels in Choose Toolbox Items and Add Reference menu, such as COM Component and Projects. Please choose the proper one for your .NET project.
4. If you have any questions on registering these components, please tell me the error message and continue to post question in this thread. Waiting for you reply.
Predator14567
Add a reference to the Com object which is installed as part of VB 6. If you don't already have a license to VB6, you may need to get one in order to distribute the libraries. Also note that you will need a custom installer for these items as you will not be able to XCopy deploy the solution with the COM references.
Jim Wooley
http://devauthority.com/blogs/jwooley
Zep--
Hello,
I found a solution. It's not so clever but it works. I have installed Visual Studio 6, and now everything works fine. Maybe it was problems with dll versions. It's good to have a MSDN Subscription :)
Thank you all for your assistance.
Milan
gokce
Thanks for your suggestions, but this application uses not just maskedtextbox, but UpDown controls, some custom treeviews and many many more, so it will be big job to migrate it to full .Net 2.0. I'm looking for simple explanation/fix for this issue not for workaround.
Milan Kostadinovic