1 Reply Latest reply on Jul 30, 2018 7:37 AM by ryoboyle

    System.IO.Path Too Long Exception

    romulo89

      Hi,

      I have the problem with GC instrument in our lab. It is Agilent GC-7890B with Agilent MSD-5977B mass selective detector

      When we open the MassHunter software it appears

       

      Sorry, a system error has occured ! The program will close now. Examine LOGGING if LOGGING is on.

       

      System.IO.PathtooLongException

      the specified path, file name, or both are too long. the fully qualified name must be less than 260 characters, and the name of the directory must be less than 248 characters.

       

      See the end of this message for details on invoking

      just-in-time (JIT) debugging instead of this dialog box.

       

       

      ************** Exception Text **************

      System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

         at System.IO.PathHelper.GetFullPathName()

         at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)

         at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)

         at System.IO.Path.GetFullPathInternal(String path)

         at System.IO.DirectoryInfo.Init(String path, Boolean checkHost)

         at System.IO.DirectoryInfo..ctor(String path)

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 213

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.GetSizeOfTotalFolderContents(String strFolderContents) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 221

         at HIA.CommandProcessorEx.corecp_function_filestat(CCpClient pCpClient, OBJ_BASECLASS[] args, OBJ_BASECLASS& ppResult) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CoreCP\Function_FileStat.cs:line 293

         at Agilent.MassSpectrometry.MSDChem.Parse.FunCall(String funcName, OBJ_BASECLASS[] pFuncArgs, OBJ_BASECLASS& ppResult) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\Parse.cs:line 799

         at Agilent.MassSpectrometry.MSDChem.Parse.nt_Variable() in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\Parse.cs:line 507

         at Agilent.MassSpectrometry.MSDChem.Parse.nt_Element() in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\Parse.cs:line 411

         at Agilent.MassSpectrometry.MSDChem.Parse.nt_Factor() in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\Parse.cs:line 438

         at Agilent.MassSpectrometry.MSDChem.Parse.nt_Term() in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\Parse.cs:line 346

         at Agilent.MassSpectrometry.MSDChem.Parse.nt_Expr() in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\Parse.cs:line 303

         at Agilent.MassSpectrometry.MSDChem.Parse.nt_VExpr() in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\Parse.cs:line 264

         at Agilent.MassSpectrometry.MSDChem.Parse.nt_RelationalExpr() in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\Parse.cs:line 225

         at Agilent.MassSpectrometry.MSDChem.Parse.nt_LogicalNotExpr() in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\Parse.cs:line 199

         at Agilent.MassSpectrometry.MSDChem.Parse.nt_LogicalAndExpr() in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\Parse.cs:line 158

         at Agilent.MassSpectrometry.MSDChem.Parse.nt_Expression() in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\Parse.cs:line 126

         at Agilent.MassSpectrometry.MSDChem.Parse.nt_InputLine() in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\Parse.cs:line 667

         at Agilent.MassSpectrometry.MSDChem.Parse.InputLineAnalyze(String inputText, OBJ_BASECLASS& ppResult) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\Parse.cs:line 998

         at Agilent.MassSpectrometry.CommandProcessor.DoSingleCPcmd(String pCmd, Parse pParse) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CommandProcessor.cs:line 2101

         at Agilent.MassSpectrometry.CommandProcessor.DoCmdLoop(Parse pParse) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CommandProcessor.cs:line 1549

         at Agilent.MassSpectrometry.CommandProcessor.PrimaryCPcmd(String cmd) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CommandProcessor.cs:line 1287

         at Agilent.MassSpectrometry.CommandProcessor.PerformCmd(String cmd) in c:\ccviews\Bronco_B0703\Mustang\parts\cp.net\CommandProcessor.cs:line 1305

         at msconfig.FormMainMSConfig.DoExecuteCPCommand(String command) in c:\ccviews\Bronco_B0703\Mustang\parts\msconfig.net\msconfig\CPInterface.cs:line 224

         at msconfig.FormMainMSConfig.InitializeCommandProcessor(FormMainMSConfig me) in c:\ccviews\Bronco_B0703\Mustang\parts\msconfig.net\msconfig\CPInterface.cs:line 183

         at msconfig.FormMainMSConfig.msconfig_Load(Object sender, EventArgs e) in c:\ccviews\Bronco_B0703\Mustang\parts\msconfig.net\msconfig\FormMainMSConfig.cs:line 581

         at System.Windows.Forms.Form.OnLoad(EventArgs e)

         at System.Windows.Forms.Form.OnCreateControl()

         at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

         at System.Windows.Forms.Control.CreateControl()

         at System.Windows.Forms.Control.WmShowWindow(Message& m)

         at System.Windows.Forms.Control.WndProc(Message& m)

         at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

         at System.Windows.Forms.Form.WmShowWindow(Message& m)

         at System.Windows.Forms.Form.WndProc(Message& m)

         at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

         at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

         at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

       

         ************** Loaded Assemblies **************

      mscorlib

          Assembly Version: 4.0.0.0

          Win32 Version: 4.7.3130.0 built by: NET472REL1LAST_B

          CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

      ----------------------------------------

      msconfig

          Assembly Version: 1.0.0.0

          Win32 Version: 1.0.0.0

          CodeBase: file:///C:/GCMS/Msexe/msconfig.exe

      ----------------------------------------

      System.Windows.Forms

          Assembly Version: 4.0.0.0

          Win32 Version: 4.7.3130.0 built by: NET472REL1LAST_B

          CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

      ----------------------------------------

      System

          Assembly Version: 4.0.0.0

          Win32 Version: 4.7.3130.0 built by: NET472REL1LAST_B

          CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

      ----------------------------------------

      System.Drawing

          Assembly Version: 4.0.0.0

          Win32 Version: 4.7.3130.0 built by: NET472REL1LAST_B

          CodeBase: file: /// C: /Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

      ----------------------------------------

      MSDChemUtil

          Assembly Version: 1.0.0.0

          Win32 Version: 1.0.0.0

          CodeBase: file: /// C: /GCMS/Msexe/MSDChemUtil.DLL

      ----------------------------------------

      System.Configuration

          Assembly Version: 4.0.0.0

          Win32 Version: 4.7.2558.0 built by: NET471REL1

          CodeBase: file: /// C: /Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

      ----------------------------------------

      System.Core

          Assembly Version: 4.0.0.0

          Win32 Version: 4.7.3130.0 built by: NET472REL1LAST_B

          CodeBase: file: /// C: /Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

      ----------------------------------------

      System.Xml

          Assembly Version: 4.0.0.0

          Win32 Version: 4.7.3130.0 built by: NET472REL1LAST_B

          CodeBase: file: /// C: /Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

      ----------------------------------------

      PresentationCore

          Assembly Version: 4.0.0.0

          Win32 Version: 4.7.3130.0 built by: NET472REL1LAST_B

          CodeBase: file: /// C: /Windows/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll

      ----------------------------------------

      WindowsBase

          Assembly Version: 4.0.0.0

          Win32 Version: 4.7.3130.0 built by: NET472REL1LAST_B

          CodeBase: file: /// C: /Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll

      ----------------------------------------

      HIACPNet

          Assembly Version: 1.0.0.0

          Win32 Version: 1.0.0.0

          CodeBase: file: /// C: /GCMS/Msexe/HIACPNet.DLL

      ----------------------------------------

      CommandProcessorEx

          Assembly Version: 1.0.0.0

          Win32 Version: 1.0.0.0

          CodeBase: file: /// C: /GCMS/Msexe/CommandProcessorEx.DLL

      ----------------------------------------

      About

          Assembly Version: 1.0.0.0

          Win32 Version: 1.0.0.0

          CodeBase: file: /// C: /GCMS/Msexe/About.DLL

      ----------------------------------------

      MSDChemCmd

          Assembly Version: 1.0.0.0

          Win32 Version: 1.0.0.0

          CodeBase: file: /// C: /GCMS/Msexe/MSDChemCmd.DLL

      ----------------------------------------

      Cpsecu32

          Assembly Version: 1.0.0.0

          Win32 Version: 1.0.0.0

          CodeBase: file: /// C: /GCMS/Msexe/Cpsecu32.DLL

      ----------------------------------------

      cfr11net

          Assembly Version: 1.0.0.0

          Win32 Version: 1.0.0.0

          CodeBase: file: /// C: /GCMS/Msexe/cfr11net.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.

       

       

       

      Do you mind helping us for this problem?

       

      Thanks

        • Re: System.IO.Path Too Long Exception
          ryoboyle

          Hello,

           

          Sorry for the delay. Would you mind providing a bit more information about your system? Specifically:

           

          • Do you get this error message when launching MassHunter Acquisition, MassHunter Qual, and/or MassHunter Quant?
          • What revision of relevant MassHunter product are you running?
          • What operating system is the software installed on?
          • Has this installation ever worked? When did the error message start occurring? Does the time and date of the first instance of this error correspond to any events similar to power outages, Windows updates, security policy changes, etc...?