I'm trying to run the program and access it's underlying code to understand how to interface with my Ocean Optics FX Spectrophotometer. But, I can't even run the application, I get an error (below) and the program cannot be executed. Can you assist me?
Thanks,
Todd
"Unhandled exception has occured in your applicaiton.... A procedure imported by "NETOmniDriver-NET40.dll" could not be loaded.
Details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
** Exception Text **
System.IO.FileLoadException: A procedure imported by 'NETOmniDriver-NET40.dll' could not be loaded.
File name: 'NETOmniDriver-NET40.dll'
at OceanOpticsSignalToNoise.ClassSpectrometer.IsSpectrometerConnected()
at OceanOpticsSignalToNoise.FormSignalToNoise.backgroundWorkerSpectrometerConnection_DoWork(Object sender, DoWorkEventArgs e) in Z:\Windows_Share\OceanOpticsProjects\working\SignalToNoise_broadband\OceanOpticsSignalToNoise\FormSignalToNoise.cs:line 38
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
** 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.
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."
Did you build the application and use the installer to run it? If not, there are probably a few dlls not being found. You might try adding OmniDriver32.dll and common32.dll to the application’s directory. Even if those dlls are in the OmniDriver library directory, if the original installation of OmniDriver was not done properly, the Windows Registry references them improperly. Usually the issue is caused by installing the standard version of OmniDriver, then removing that and installing the spam version (or visa versa). Cleaning the registry or placing the libraries in the application’s directory usually solves this issue.
I'm trying to run the program and access it's underlying code to understand how to interface with my Ocean Optics FX Spectrophotometer. But, I can't even run the application, I get an error (below) and the program cannot be executed. Can you assist me?
Thanks,
Todd
"Unhandled exception has occured in your applicaiton.... A procedure imported by "NETOmniDriver-NET40.dll" could not be loaded.
Details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
Exception Text
System.IO.FileLoadException: A procedure imported by 'NETOmniDriver-NET40.dll' could not be loaded.
File name: 'NETOmniDriver-NET40.dll'
at OceanOpticsSignalToNoise.ClassSpectrometer.IsSpectrometerConnected()
at OceanOpticsSignalToNoise.FormSignalToNoise.backgroundWorkerSpectrometerConnection_DoWork(Object sender, DoWorkEventArgs e) in Z:\Windows_Share\OceanOpticsProjects\working\SignalToNoise_broadband\OceanOpticsSignalToNoise\FormSignalToNoise.cs:line 38
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
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.
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."
I'm trying to run the program and access it's underlying code to understand how to interface with my Ocean Optics FX Spectrophotometer. But, I can't even run the application, I get an error (below) and the program cannot be executed. Can you assist me?
Thanks,
Todd
"Unhandled exception has occured in your applicaiton.... A procedure imported by "NETOmniDriver-NET40.dll" could not be loaded.
Details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
** Exception Text **
System.IO.FileLoadException: A procedure imported by 'NETOmniDriver-NET40.dll' could not be loaded.
File name: 'NETOmniDriver-NET40.dll'
at OceanOpticsSignalToNoise.ClassSpectrometer.IsSpectrometerConnected()
at OceanOpticsSignalToNoise.FormSignalToNoise.backgroundWorkerSpectrometerConnection_DoWork(Object sender, DoWorkEventArgs e) in Z:\Windows_Share\OceanOpticsProjects\working\SignalToNoise_broadband\OceanOpticsSignalToNoise\FormSignalToNoise.cs:line 38
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
** Loaded Assemblies **
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2115.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
OceanOpticsSignalToNoise
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Program%20Files/Ocean%20Optics/SignalToNoise_Broadband_Installer/OceanOpticsSignalToNoise.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2110.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2634.0 built by: NET471REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2634.0 built by: NET471REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2612.0 built by: NET471REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Windows.Forms.DataVisualization
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.031bf3856ad364e35/System.Windows.Forms.DataVisualization.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2623.0 built by: NET471REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.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."
Last edit: Todd Duncombe 2018-05-07
Todd,
Did you build the application and use the installer to run it? If not, there are probably a few dlls not being found. You might try adding OmniDriver32.dll and common32.dll to the application’s directory. Even if those dlls are in the OmniDriver library directory, if the original installation of OmniDriver was not done properly, the Windows Registry references them improperly. Usually the issue is caused by installing the standard version of OmniDriver, then removing that and installing the spam version (or visa versa). Cleaning the registry or placing the libraries in the application’s directory usually solves this issue.
Regards,
/kirk/
Kirk Clendinning
Ocean Optics OEM
Senior Programmer/Electronic Engineer
+1 (407) 988-9111
kirk.clendinning@oceanoptics.com
From: Todd Duncombe taduncombe@users.sourceforge.net
Reply-To: "[oceanoptics-samplepack:discussion]" general@discussion.oceanoptics-samplepack.p.re.sourceforge.net
Date: Monday, May 7, 2018 at 1:47 PM
To: "[oceanoptics-samplepack:discussion]" general@discussion.oceanoptics-samplepack.p.re.sourceforge.net
Subject: [oceanoptics-samplepack:discussion] Error loading program
I'm trying to run the program and access it's underlying code to understand how to interface with my Ocean Optics FX Spectrophotometer. But, I can't even run the application, I get an error (below) and the program cannot be executed. Can you assist me?
Thanks,
Todd
"Unhandled exception has occured in your applicaiton.... A procedure imported by "NETOmniDriver-NET40.dll" could not be loaded.
Details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
Exception Text
System.IO.FileLoadException: A procedure imported by 'NETOmniDriver-NET40.dll' could not be loaded.
File name: 'NETOmniDriver-NET40.dll'
at OceanOpticsSignalToNoise.ClassSpectrometer.IsSpectrometerConnected()
at OceanOpticsSignalToNoise.FormSignalToNoise.backgroundWorkerSpectrometerConnection_DoWork(Object sender, DoWorkEventArgs e) in Z:\Windows_Share\OceanOpticsProjects\working\SignalToNoise_broadband\OceanOpticsSignalToNoise\FormSignalToNoise.cs:line 38
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
Loaded Assemblies
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2115.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
OceanOpticsSignalToNoise
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Program%20Files/Ocean%20Optics/SignalToNoise_Broadband_Installer/OceanOpticsSignalToNoise.exe
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2110.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0b77a5c561934e089/System.Windows.Forms.dll
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2634.0 built by: NET471REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0b77a5c561934e089/System.dll
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0b03f5f7f11d50a3a/System.Drawing.dll
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0b03f5f7f11d50a3a/System.Configuration.dll
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2634.0 built by: NET471REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0b77a5c561934e089/System.Core.dll
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2612.0 built by: NET471REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0b77a5c561934e089/System.Xml.dll
System.Windows.Forms.DataVisualization
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.031bf3856ad364e35/System.Windows.Forms.DataVisualization.dll
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0b03f5f7f11d50a3a/Accessibility.dll
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2623.0 built by: NET471REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.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."
Error loading programhttps://sourceforge.net/p/oceanoptics-samplepack/discussion/general/thread/1d71cef8/?limit=25#3e3a
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/oceanoptics-samplepack/discussion/general/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/