Skip to content

Error accessing RAWFileReader library! - The type initializer for 'ThermoFisher.CommonCore.Data.Business.ScanAveragerFactory' threw an exception. #17

@misak-acrivon

Description

@misak-acrivon

Hi,

I created a .Net 8 Console application in Visual Studio 2022 on my laptop running Windows 11. Then I installed the following Nuget packages specified in the NetCore/NetCore8 folder

  • ThermoFisher.CommonCore.Data
  • ThermoFisher.CommonCore.MassPrecision
  • ThermoFisher.CommonCore.RawFileReader

When running the RawFileReader example script (ExampleProgram/NetCore) I can read a RAW file and extract some info from it, however I eventually get an error saying:

Error accessing RAWFileReader library! - The type initializer for 'ThermoFisher.CommonCore.Data.Business.ScanAveragerFactory' threw an exception.

Any idea what is causing this issue?

It seems like there is some issue with the dependency ThermoFisher.CommonCore.Data.Business

The full output is as follows:

"""
The RAW file has data from {0} instruments1
System Information:
OS Version: Microsoft Windows NT 10.0.22631.0
64 bit OS: True
Computer: ACV-LT-1021
Cores: 32
Date: 2024-12-19 13:53:22

General File Information:
RAW file: C:\Users\MarcIsaksson\Documents\qc_files\test_lcms\230912_GM_EXP1_EVO1_IOElite3_40SPD_DIA_P029_QC_50ng_03.raw
RAW file version: 66
Creation date: 2023-12-09 23:17:04
Operator: Thermo
Number of instruments: 1
Description:
Instrument model: Orbitrap Exploris 480
Instrument name: Orbitrap Exploris MA10680C
Serial number: MA10680C
Software version: 4.0-4.0.262.18-SP1/4.0.309.28
Firmware version: rev. 1
Units: None
Mass resolution: 0,500
Number of scans: 43060
Scan range: 1 - 43060
Time range: 0,00 - 31,00
Mass range: 120,0000 - 2154,8601

Sample Information:
Sample name:
Sample id:
Sample type: Unknown
Sample comment:
Sample vial: EvoSlot 4:18
Sample volume: 0
Sample injection volume: 0
Sample row number: 0
Sample dilution factor: 1

Instrument name: TNG-Merkur

Instrument count: 1
A/D count: 0
MS count: 1
MS analog count: 0
Status count: 0
PDA count: 0
UV count: 0

Selecting each MS instrument:
Selecting MS instrument: 1

Filter Information:
Scan filter (first scan): FTMS + p NSI Full ms [350.0000-1400.0000]
Scan filter (last scan): FTMS + c NSI Full ms2 [email protected] [120.0000-1176.6801]
Total number of filters:51

Error accessing RAWFileReader library! - The type initializer for 'ThermoFisher.CommonCore.Data.Business.ScanAveragerFactory' threw an exception.
"""

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions