Windows Vista Forums

Run-Time Error only in Vista

  1. #1


    Dweezil38 Guest

    Run-Time Error only in Vista

    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/mscorlib.dll
    ----------------------------------------
    InstalledAdvantage
    Assembly Version: 1.0.2637.18113
    Win32 Version: 1.0.2637.18113
    CodeBase:
    file:///C:/Program%20Files/Installed%20Advantage/InstalledAdvantage.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.5000.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__b77a5c561934e089/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__b03f5f7f11d50a3a/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.5000.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__b77a5c561934e089/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.ADODB.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__b77a5c561934e089/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.ADOX.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.MSMask.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__b03f5f7f11d50a3a/accessibility.dll
    ----------------------------------------
    Interop.MSMask
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase:
    file:///C:/Program%20Files/Installed%20Advantage/Interop.MSMask.DLL
    ----------------------------------------

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

    Thanks, Dweezil

      My System SpecsSystem Spec

  2. #2


    Peter Ritchie [C# MVP] Guest

    RE: Run-Time Error only in Vista

    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/mscorlib.dll
    > ----------------------------------------
    > InstalledAdvantage
    > Assembly Version: 1.0.2637.18113
    > Win32 Version: 1.0.2637.18113
    > CodeBase:
    > file:///C:/Program%20Files/Installed%20Advantage/InstalledAdvantage.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.5000.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__b77a5c561934e089/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__b03f5f7f11d50a3a/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.5000.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__b77a5c561934e089/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.ADODB.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__b77a5c561934e089/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.ADOX.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.MSMask.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__b03f5f7f11d50a3a/accessibility.dll
    > ----------------------------------------
    > Interop.MSMask
    > Assembly Version: 1.1.0.0
    > Win32 Version: 1.1.0.0
    > CodeBase:
    > file:///C:/Program%20Files/Installed%20Advantage/Interop.MSMask.DLL
    > ----------------------------------------
    >
    > Is there something that needs to be installed on the Vista machines? Any
    > help is greatly appreciated.
    >
    > Thanks, Dweezil

      My System SpecsSystem Spec

Run-Time Error only in Vista

Similar Threads
Thread Forum
Run time error '75' path/file access error
Hi Guys, I am trying to digitally sign an xml document using client software. the application has a ' digitally sign button' and when i click on...
General Discussion
Vista Ultimate is Freezing from time to time
I have a big problem withj my vista - i think. I ahve board a new top-computer and it was pre-installed with Vista Ultimate. Everything work ok,...
Vista General
Run Time Error 216
I get this message when I am working in my system: Problem signature: Problem Event Name: APPCRASH Application Name: iexplore.exe Application...
Vista security
Run-time error 70 - Permission Denied - when running a particular program in Vista
I installed Vista Home Premium only days ago and tested the program in question, and it works fine for me just as it has in XP for more than 2...
Vista General
Vista freezes for a few seconds from time to time
Once in a while Windows Vista Home Premium will freeze for a short while (about 10 seconds or so) and then resume everything. I cannot figure out...
Vista General
Loading Zune Software in Vista. Error all the time..
I can't get Zune software to load on Vista, I have read all the tricks and tips and no luck. I read one article and I was able to get the Zune...
Vista General
XP64 to Vista File Transfer Run time error
Hi I wonder if anyone has had similar problems or knows how to get around this one. I used the file transfer program that came with the Vista...
Vista General