Run-Time Error only in Vista

Run-Time Error only in Vista

am 11.04.2008 19:50:03 von B_A_Enterprizes

Hi there. Hope someone can direct me to a solution. I have a WIndows App that
is quite complex and installs and runs fine on Windows XP machines but when I
install on a Vista Business system I get a runtime error. I think it may have
something to do with my use of MSMask edit text boxes but not sure? I'm using
VS 2005, developed with VB using .NET 2.0 on a XP Pro machine with all OP
updates installed. Here is the JIT error message I get:

System.Runtime.InteropServices.COMException (0x80040154): Class not registered
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.AxHost.EndInit()
at ISTemp.frmStoreInformation.InitializeComponent()
at ISTemp.frmStoreInformation..ctor()
at ISTemp.frmHIParent.miStoreInformation_Click(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorli b.dll
----------------------------------------
InstalledAdvantage
Assembly Version: 1.0.2637.18113
Win32 Version: 1.0.2637.18113
CodeBase:
file:///C:/Program%20Files/Installed%20Advantage/InstalledAd vantage.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.windows.forms/1.0.500 0.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561 934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b 03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.6001.4
CodeBase:
file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.50 00.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a 5c561934e089/system.data.dll
----------------------------------------
Interop.ADODB
Assembly Version: 2.8.0.0
Win32 Version: 2.8.0.0
CodeBase:
file:///C:/Program%20Files/Installed%20Advantage/Interop.ADO DB.DLL
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5 c561934e089/system.xml.dll
----------------------------------------
Interop.ADOX
Assembly Version: 2.8.0.0
Win32 Version: 2.8.0.0
CodeBase:
file:///C:/Program%20Files/Installed%20Advantage/Interop.ADO X.DLL
----------------------------------------
CustomMarshalers
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/custommarshalers/1.0.5000.0_ _b03f5f7f11d50a3a/custommarshalers.dll
----------------------------------------
AxInterop.MSMask
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase:
file:///C:/Program%20Files/Installed%20Advantage/AxInterop.M SMask.DLL
----------------------------------------
Accessibility
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b0 3f5f7f11d50a3a/accessibility.dll
----------------------------------------
Interop.MSMask
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase:
file:///C:/Program%20Files/Installed%20Advantage/Interop.MSM ask.DLL
----------------------------------------

Is there something that needs to be installed on the Vista machines? Any
help is greatly appreciated.

Thanks, Dweezil

RE: Run-Time Error only in Vista

am 11.04.2008 22:35:01 von PRSoCo

The error is telling you that the control you're trying to instantiate isn't
installed on the system.

Do you think it's this MSMask control? You need to (as far as I can tell)
deploye MSMASK32.OCX. As far as I know this is a fairly old control and may
not be included with later editions of Visual Studio.

--
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#


"Dweezil38" wrote:

> Hi there. Hope someone can direct me to a solution. I have a WIndows App that
> is quite complex and installs and runs fine on Windows XP machines but when I
> install on a Vista Business system I get a runtime error. I think it may have
> something to do with my use of MSMask edit text boxes but not sure? I'm using
> VS 2005, developed with VB using .NET 2.0 on a XP Pro machine with all OP
> updates installed. Here is the JIT error message I get:
>
> System.Runtime.InteropServices.COMException (0x80040154): Class not registered
> at System.Windows.Forms.AxHost.CreateInstance()
> at System.Windows.Forms.AxHost.GetOcxCreate()
> at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
> at System.Windows.Forms.AxHost.CreateHandle()
> at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
> at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
> at System.Windows.Forms.AxHost.EndInit()
> at ISTemp.frmStoreInformation.InitializeComponent()
> at ISTemp.frmStoreInformation..ctor()
> at ISTemp.frmHIParent.miStoreInformation_Click(Object sender, EventArgs e)
> at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
> at System.Windows.Forms.MenuItemData.Execute()
> at System.Windows.Forms.Command.Invoke()
> at System.Windows.Forms.Control.WmCommand(Message& m)
> at System.Windows.Forms.Control.WndProc(Message& m)
> at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
> at System.Windows.Forms.ContainerControl.WndProc(Message& m)
> at System.Windows.Forms.Form.WndProc(Message& m)
> at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
> at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
> at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
> IntPtr wparam, IntPtr lparam)
>
>
> ************** Loaded Assemblies **************
> mscorlib
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.2032
> CodeBase:
> file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorli b.dll
> ----------------------------------------
> InstalledAdvantage
> Assembly Version: 1.0.2637.18113
> Win32 Version: 1.0.2637.18113
> CodeBase:
> file:///C:/Program%20Files/Installed%20Advantage/InstalledAd vantage.exe
> ----------------------------------------
> System.Windows.Forms
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.2032
> CodeBase:
> file:///c:/windows/assembly/gac/system.windows.forms/1.0.500 0.0__b77a5c561934e089/system.windows.forms.dll
> ----------------------------------------
> System
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.2032
> CodeBase:
> file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561 934e089/system.dll
> ----------------------------------------
> System.Drawing
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.2032
> CodeBase:
> file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b 03f5f7f11d50a3a/system.drawing.dll
> ----------------------------------------
> Microsoft.VisualBasic
> Assembly Version: 7.0.5000.0
> Win32 Version: 7.10.6001.4
> CodeBase:
> file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.50 00.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
> ----------------------------------------
> System.Data
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.2032
> CodeBase:
> file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a 5c561934e089/system.data.dll
> ----------------------------------------
> Interop.ADODB
> Assembly Version: 2.8.0.0
> Win32 Version: 2.8.0.0
> CodeBase:
> file:///C:/Program%20Files/Installed%20Advantage/Interop.ADO DB.DLL
> ----------------------------------------
> System.Xml
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.2032
> CodeBase:
> file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5 c561934e089/system.xml.dll
> ----------------------------------------
> Interop.ADOX
> Assembly Version: 2.8.0.0
> Win32 Version: 2.8.0.0
> CodeBase:
> file:///C:/Program%20Files/Installed%20Advantage/Interop.ADO X.DLL
> ----------------------------------------
> CustomMarshalers
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.573
> CodeBase:
> file:///c:/windows/assembly/gac/custommarshalers/1.0.5000.0_ _b03f5f7f11d50a3a/custommarshalers.dll
> ----------------------------------------
> AxInterop.MSMask
> Assembly Version: 1.1.0.0
> Win32 Version: 1.1.0.0
> CodeBase:
> file:///C:/Program%20Files/Installed%20Advantage/AxInterop.M SMask.DLL
> ----------------------------------------
> Accessibility
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.573
> CodeBase:
> file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b0 3f5f7f11d50a3a/accessibility.dll
> ----------------------------------------
> Interop.MSMask
> Assembly Version: 1.1.0.0
> Win32 Version: 1.1.0.0
> CodeBase:
> file:///C:/Program%20Files/Installed%20Advantage/Interop.MSM ask.DLL
> ----------------------------------------
>
> Is there something that needs to be installed on the Vista machines? Any
> help is greatly appreciated.
>
> Thanks, Dweezil