Question

Locked

VB Program not working in Win7

By martinbullock15 ·
Hi

We had a VB program written for us some years ago and has worked fine in XP and Vista with no problems. We recently bought a new computer which had Win7 installed and the VB Program will now not work and i get the following error message and detail:

I FORGOT TO SAY IT IS A 64bit VERSION of Win7!!


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.COMException (0x800A0E7: Operation is not allowed when the object is closed.
at ADODB.ConnectionClass.Close()
at JustSportSalesOrderEntry.DBProcedures.PopulateOutstandingOrders()
at JustSportSalesOrderEntry.frmSalesOrd.txtCustAcc_Leave(Object eventSender, EventArgs eventArgs)
at System.Windows.Forms.Control.OnLeave(EventArgs e)
at System.Windows.Forms.Control.NotifyLeave()
at System.Windows.Forms.ContainerControl.UpdateFocusedControl()


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
JustSportSalesOrderEntry
Assembly Version: 1.0.2501.28786
Win32 Version: 1.0.2501.28786
CodeBase: file:///C:/Users/JM/AppData/Local/Apps/2.0/VBWBXWKG.LYR/CLJ2ZZVB.4HQ/just..tion_8c96ee85ed44b14a_0001.0000_523042f57e602cde/JustSportSalesOrderEntry.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.VisualBasic.Compatibility
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.4927
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic.Compatibility/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.Compatibility.dll
----------------------------------------
ADODB
Assembly Version: 7.0.3300.0
Win32 Version: 7.10.6070
CodeBase: file:///C:/Windows/assembly/GAC/ADODB/7.0.3300.0__b03f5f7f11d50a3a/ADODB.dll
----------------------------------------
AxInterop.MSFlexGridLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/JM/AppData/Local/Apps/2.0/VBWBXWKG.LYR/CLJ2ZZVB.4HQ/just..tion_8c96ee85ed44b14a_0001.0000_523042f57e602cde/AxInterop.MSFlexGridLib.DLL
----------------------------------------
Interop.MSFlexGridLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/JM/AppData/Local/Apps/2.0/VBWBXWKG.LYR/CLJ2ZZVB.4HQ/just..tion_8c96ee85ed44b14a_0001.0000_523042f57e602cde/Interop.MSFlexGridLib.DLL
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Thanks in advance for any help

Kind Regards

Martin

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

I'm no expert i admit

by tintoman In reply to VB Program not working in ...

But this looks like an Access database that runs in access runtime.
If this is so then I guess you will need to install Access 2007 runtime on the Win 7 computer. You can get it free from Microsoft.
It might also be necessary to open the application for editing in Access 2007 and compile it again for this one machine

Collapse -

I'll give it a try - Still not working

by martinbullock15 In reply to I'm no expert i admit

Thanks,

I'm currently downloading the Runtime and i will give it a try

I tried the Access 2007 Runtime but i am still getting the same error.

Thanks again

Martin

Collapse -

Well then as I said before

by tintoman In reply to I'll give it a try - Stil ...

You need to open the programme in Access 2007 and see if it will run, once you alter the coding and re-compile it you ought to be able to run it on the Win7 machine

Collapse -

That's pretty much a "sumfng has gone wrong error"

by Tony Hopkinson In reply to VB Program not working in ...

and quite possibly in one of the dlls.

If you google it, you get all sorts of hit's many which only mention sql2005.

Have you set the compatibility level of the executable?

Also you might get some clues trying to set up a connection to the database through excel or access.

Other than that you might be down to loading VB up on to win7 64 and debugging it...

We've found quite a few little gotchas making our code compatible with that flavour of OS.

Back to Windows Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums