Converting from Windows XP to Windows 7, and a Visual Basic Program

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I am converting from windows xp to windows 7 pro. I have a VB program that gives me two errors when trying to run. The first is:

System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly OPCControls, Version=1.0.0.14, Culture=neutral, PublicKeyToken=09c594780a8fc3e6 or one
of its dependencies. The located assemblys manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ---> System.IO.FileLoadException: Could not load file or assembly OPCControls, Version=1.0.0.14, Culture=neutral,
PublicKeyToken=09c594780a8fc3e6 or one of its dependencies. The located assemblys manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)<br/>
File name: OPCControls, Version=1.0.0.14, Culture=neutral, PublicKeyToken=09c594780a8fc3e6<br/>
at FMS.BunSponge.InitializeComponent()
WRN: Assembly binding logging is turned OFF.<br/>
To enable assembly bind failure logging, set the registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1.<br/>
Note: There is some performance penalty associated with assembly bind failure logging.<br/>
To turn this feature off, remove the registry value [HKLMSoftwareMicrosoftFusion!EnableLog].
--- End of inner exception stack trace ---<br/>
at FMS.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 197<br/>
at FMS.form1.Button1_Click(Object sender, EventArgs e) in C:Documents and SettingsShickMy DocumentsVisual Studio 2005ProjectsFMSFMSform1.vb:line 4<br/>
at System.Windows.Forms.Control.OnClick(EventArgs e)<br/>
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)<br/>
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)<br/>
at System.Windows.Forms.Control.WndProc(Message& m)<br/>
at System.Windows.Forms.ButtonBase.WndProc(Message& m)<br/>
at System.Windows.Forms.Button.WndProc(Message& m)<br/>
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)<br/>
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
<br/>
************** Loaded Assemblies **************<br/>
mscorlib<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400)<br/>
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll <br/>
----------------------------------------<br/>
FMS<br/>
Assembly Version: 1.0.0.0<br/>
Win32 Version: 1.0.0.0<br/>
CodeBase: file:///C:/Program%20Files%20(x86)/shick/FMS/FMS.exe
file:///C:/Program%20Files%20(x86)/shick/FMS/FMS.exe <br/>
----------------------------------------<br/>
Microsoft.VisualBasic<br/>
Assembly Version: 8.0.0.0<br/>
Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)<br/>
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll <br/>
----------------------------------------<br/>
System<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400)<br/>
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll <br/>
----------------------------------------<br/>
System.Windows.Forms<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400)<br/>
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll <br/>
----------------------------------------<br/>
System.Drawing<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.5458 (Win7SP1GDR.050727-5400)<br/>
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll <br/>
----------------------------------------<br/>
System.Runtime.Remoting<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)<br/>
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll <br/>
----------------------------------------<br/>
System.Data<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)<br/>
CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll <br/>
----------------------------------------<br/>
System.Xml<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)<br/>
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll <br/>
----------------------------------------
************** JIT Debugging **************<br/>
To enable just-in-time (JIT) debugging, the .config file for this<br/>
application or computer (machine.config) must have the<br/>
jitDebugging value set in the system.windows.forms section.<br/>
The application must also be compiled with debugging<br/>
enabled.
For example:
<configuration><br/>
<system.windows.forms jitDebugging="true" /><br/>
</configuration>
When JIT debugging is enabled, any unhandled exception<br/>
will be sent to the JIT debugger registered on the computer<br/>
rather than be handled by this dialog box.

The second is:
System.InvalidOperationException: The Microsoft.Jet.OLEDB.4.0 provider is not registered on the local machine.<br/>
at System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper)<br/>
at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)<br/>
at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)<br/>
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)<br/>
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)<br/>
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)<br/>
at System.Data.OleDb.OleDbConnection.Open()<br/>
at System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState)<br/>
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)<br/>
at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)<br/>
at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)<br/>
at FMS.ScheduleDataSetTableAdapters.BunScheduleTableAdapter.Fill(BunScheduleDataTable dataTable) in C:Documents and SettingsShickMy DocumentsVisual Studio 2005ProjectsFMSFMSScheduleDataSet.Designer.vb:line 1307<br/>
at FMS.BunSchedule.Form1_Load(Object sender, EventArgs e) in C:Documents and SettingsShickMy DocumentsVisual Studio 2005ProjectsFMSFMSBunSchedule.vb:line 12<br/>
at System.Windows.Forms.Form.OnLoad(EventArgs e)<br/>
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)<br/>
at System.Windows.Forms.Control.CreateControl()<br/>
at System.Windows.Forms.Control.WmShowWindow(Message& m)<br/>
at System.Windows.Forms.Control.WndProc(Message& m)<br/>
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)<br/>
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
<br/>
************** Loaded Assemblies **************<br/>
mscorlib<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400)<br/>
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll <br/>
----------------------------------------<br/>
FMS<br/>
Assembly Version: 1.0.0.0<br/>
Win32 Version: 1.0.0.0<br/>
CodeBase: file:///C:/Program%20Files%20(x86)/shick/FMS/FMS.exe
file:///C:/Program%20Files%20(x86)/shick/FMS/FMS.exe <br/>
----------------------------------------<br/>
Microsoft.VisualBasic<br/>
Assembly Version: 8.0.0.0<br/>
Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)<br/>
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll <br/>
----------------------------------------<br/>
System<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400)<br/>
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll <br/>
----------------------------------------<br/>
System.Windows.Forms<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400)<br/>
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll <br/>
----------------------------------------<br/>
System.Drawing<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.5458 (Win7SP1GDR.050727-5400)<br/>
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll <br/>
----------------------------------------<br/>
System.Runtime.Remoting<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)<br/>
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll <br/>
----------------------------------------<br/>
System.Data<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)<br/>
CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll <br/>
----------------------------------------<br/>
System.Xml<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)<br/>
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll <br/>
----------------------------------------<br/>
System.Configuration<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)<br/>
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll <br/>
----------------------------------------<br/>
System.Transactions<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///C:/Windows/assembly/GAC_64/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
file:///C:/Windows/assembly/GAC_64/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll <br/>
----------------------------------------
************** JIT Debugging **************<br/>
To enable just-in-time (JIT) debugging, the .config file for this<br/>
application or computer (machine.config) must have the<br/>
jitDebugging value set in the system.windows.forms section.<br/>
The application must also be compiled with debugging<br/>
enabled.
For example:
<configuration><br/>
<system.windows.forms jitDebugging="true" /><br/>
</configuration>
When JIT debugging is enabled, any unhandled exception<br/>
will be sent to the JIT debugger registered on the computer<br/>
rather than be handled by this dialog box.

I am running Visual Basic 2010 Express, and have changed the references to look at the proper files. I am not sure how to fix this problem, as I am very new to VB. I did not write this program and am trying to understand the flow and connections involved.
Any help is appreciated.
Thanks,
Angie

View the full article
 
Back
Top