WINSCP.SessionLocalexception:Winscp.exe可执行

发布于 2025-01-22 10:08:52 字数 4433 浏览 0 评论 0原文

我是一个在实验室中的新工作,该实验室将数据从本地计算机发送到HPC。我整天都解决以下问题,我根本不熟悉它。

4/19/2022 3:21:28 PM ERROR: WinSCP.SessionLocalException: The winscp.exe executable was not found at location of the assembly WinSCPnet (C:\WRGLPipeline\WRGLPipeline\bin\dlls), nor the entry assembly WRGLPipeline (C:\WRGLPipeline\WRGLPipeline\bin), nor in an installation path. You may use Session.ExecutablePath property to explicitly set path to winscp.exe.
   at WinSCP.ExeSessionProcess.GetExecutablePath()
   at WinSCP.ExeSessionProcess..ctor(Session session, Boolean useXmlLog, String additionalArguments)
   at WinSCP.Session.Open(SessionOptions sessionOptions)
   at WRGLPipeline.PanelPipelineWrapper.ConnectToIridis()
   at WRGLPipeline.PanelPipelineWrapper.UploadAndExecute()
   at WRGLPipeline.PanelPipelineWrapper.ExecutePanelPipeline()
   at WRGLPipeline.Programme.Main(String[] args)

到目前为止,我一直在阅读文档和论坛上的目录中一切都还好,但是我想确保这一点,因为我实际上是在Windows机器上工作的新工作。

这是我的bin文件夹的结构

.
├── WRGLPipeline.exe
├── WRGLPipeline.exe.config
├── WRGLPipeline.ini
├── dlls
│   ├── CommandLine.dll
│   ├── Microsoft.Extensions.Configuration.Abstractions.dll
│   ├── Microsoft.Extensions.Configuration.FileExtensions.dll
│   ├── Microsoft.Extensions.Configuration.Ini.dll
│   ├── Microsoft.Extensions.Configuration.dll
│   ├── Microsoft.Extensions.FileProviders.Abstractions.dll
│   ├── Microsoft.Extensions.FileProviders.Physical.dll
│   ├── Microsoft.Extensions.FileSystemGlobbing.dll
│   ├── Microsoft.Extensions.Primitives.dll
│   ├── System.Buffers.dll
│   ├── System.Memory.dll
│   ├── System.Numerics.Vectors.dll
│   ├── System.Runtime.CompilerServices.Unsafe.dll
│   ├── System.Security.Cryptography.Algorithms.dll
│   ├── System.Security.Cryptography.Primitives.dll
│   ├── System.ValueTuple.dll
│   └── WinSCPnet.dll
└── keys
    ├── nhs.key
    └── soton.key

,我可以看到可执行文件位于bin文件夹中。现在,我在家中查看了这一点,是否需要在dlls文件夹中留下我的可执行文件的副本?按照错误消息,如果我需要指定session.executable,那应该在哪里?

这些是在编译应用程序之前的文件

├── AuxillaryFunctions.cs
├── Coverage.cs
├── FileManagement.cs
├── GenerateGenotypingVCFs.cs
├── GenotypingPipelineWrapper.cs
├── Manual
│   └── WRGLPipeline-Manual.md
├── MyeloidPipelineWrapper.cs
├── PanelPipelineWrapper.cs
├── ParseArgs.cs
├── ParseBED.cs
├── ParseSampleSheet.cs
├── ParseVCF.cs
├── Programme.cs
├── ProgrammeParameters.cs
├── Properties
│   └── AssemblyInfo.cs
├── Static
│   ├── PipelineInterface.exe
│   ├── WRGLPipeline.ini
│   └── WRGL_logo.ico
├── WRGLPipeline.csproj
├── WRGLPipeline.csproj.user
├── app.config
└── packages.config

<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="CommandLineParser" version="2.8.0" targetFramework="net472" />
  <package id="Microsoft.Extensions.Configuration" version="3.1.9" targetFramework="net472" />
  <package id="Microsoft.Extensions.Configuration.Abstractions" version="3.1.9" targetFramework="net472" />
  <package id="Microsoft.Extensions.Configuration.FileExtensions" version="3.1.9" targetFramework="net472" />
  <package id="Microsoft.Extensions.Configuration.Ini" version="3.1.9" targetFramework="net472" />
  <package id="Microsoft.Extensions.FileProviders.Abstractions" version="3.1.9" targetFramework="net472" />
  <package id="Microsoft.Extensions.FileProviders.Physical" version="3.1.9" targetFramework="net472" />
  <package id="Microsoft.Extensions.FileSystemGlobbing" version="3.1.9" targetFramework="net472" />
  <package id="Microsoft.Extensions.Primitives" version="3.1.9" targetFramework="net472" />
  <package id="System.Buffers" version="4.5.1" targetFramework="net472" />
  <package id="System.Memory" version="4.5.4" targetFramework="net472" />
  <package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net472" />
  <package id="System.Runtime.CompilerServices.Unsafe" version="4.7.1" targetFramework="net472" />
  <package id="WinSCP" version="5.17.10" targetFramework="net47" />
</packages>

I am new working in a lab that sends data from a local computer to an HPC. I have been all day working around the following problem I am not familiar with it at all.

4/19/2022 3:21:28 PM ERROR: WinSCP.SessionLocalException: The winscp.exe executable was not found at location of the assembly WinSCPnet (C:\WRGLPipeline\WRGLPipeline\bin\dlls), nor the entry assembly WRGLPipeline (C:\WRGLPipeline\WRGLPipeline\bin), nor in an installation path. You may use Session.ExecutablePath property to explicitly set path to winscp.exe.
   at WinSCP.ExeSessionProcess.GetExecutablePath()
   at WinSCP.ExeSessionProcess..ctor(Session session, Boolean useXmlLog, String additionalArguments)
   at WinSCP.Session.Open(SessionOptions sessionOptions)
   at WRGLPipeline.PanelPipelineWrapper.ConnectToIridis()
   at WRGLPipeline.PanelPipelineWrapper.UploadAndExecute()
   at WRGLPipeline.PanelPipelineWrapper.ExecutePanelPipeline()
   at WRGLPipeline.Programme.Main(String[] args)

As far I have been reading in documentation and forums everything is ok in my directories but I would like to ensure this as I am practically new working on Windows machines.

This is the structure of my bin folder

.
├── WRGLPipeline.exe
├── WRGLPipeline.exe.config
├── WRGLPipeline.ini
├── dlls
│   ├── CommandLine.dll
│   ├── Microsoft.Extensions.Configuration.Abstractions.dll
│   ├── Microsoft.Extensions.Configuration.FileExtensions.dll
│   ├── Microsoft.Extensions.Configuration.Ini.dll
│   ├── Microsoft.Extensions.Configuration.dll
│   ├── Microsoft.Extensions.FileProviders.Abstractions.dll
│   ├── Microsoft.Extensions.FileProviders.Physical.dll
│   ├── Microsoft.Extensions.FileSystemGlobbing.dll
│   ├── Microsoft.Extensions.Primitives.dll
│   ├── System.Buffers.dll
│   ├── System.Memory.dll
│   ├── System.Numerics.Vectors.dll
│   ├── System.Runtime.CompilerServices.Unsafe.dll
│   ├── System.Security.Cryptography.Algorithms.dll
│   ├── System.Security.Cryptography.Primitives.dll
│   ├── System.ValueTuple.dll
│   └── WinSCPnet.dll
└── keys
    ├── nhs.key
    └── soton.key

As far I can see the executable is in the bin folder. Now I am looking at this from home, do I need to leave a copy of my executable in the dlls folder? Following the error message, If I need to specify the Session.ExecutablePath, where should this be?

These is the files before compiling the application

├── AuxillaryFunctions.cs
├── Coverage.cs
├── FileManagement.cs
├── GenerateGenotypingVCFs.cs
├── GenotypingPipelineWrapper.cs
├── Manual
│   └── WRGLPipeline-Manual.md
├── MyeloidPipelineWrapper.cs
├── PanelPipelineWrapper.cs
├── ParseArgs.cs
├── ParseBED.cs
├── ParseSampleSheet.cs
├── ParseVCF.cs
├── Programme.cs
├── ProgrammeParameters.cs
├── Properties
│   └── AssemblyInfo.cs
├── Static
│   ├── PipelineInterface.exe
│   ├── WRGLPipeline.ini
│   └── WRGL_logo.ico
├── WRGLPipeline.csproj
├── WRGLPipeline.csproj.user
├── app.config
└── packages.config

<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="CommandLineParser" version="2.8.0" targetFramework="net472" />
  <package id="Microsoft.Extensions.Configuration" version="3.1.9" targetFramework="net472" />
  <package id="Microsoft.Extensions.Configuration.Abstractions" version="3.1.9" targetFramework="net472" />
  <package id="Microsoft.Extensions.Configuration.FileExtensions" version="3.1.9" targetFramework="net472" />
  <package id="Microsoft.Extensions.Configuration.Ini" version="3.1.9" targetFramework="net472" />
  <package id="Microsoft.Extensions.FileProviders.Abstractions" version="3.1.9" targetFramework="net472" />
  <package id="Microsoft.Extensions.FileProviders.Physical" version="3.1.9" targetFramework="net472" />
  <package id="Microsoft.Extensions.FileSystemGlobbing" version="3.1.9" targetFramework="net472" />
  <package id="Microsoft.Extensions.Primitives" version="3.1.9" targetFramework="net472" />
  <package id="System.Buffers" version="4.5.1" targetFramework="net472" />
  <package id="System.Memory" version="4.5.4" targetFramework="net472" />
  <package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net472" />
  <package id="System.Runtime.CompilerServices.Unsafe" version="4.7.1" targetFramework="net472" />
  <package id="WinSCP" version="5.17.10" targetFramework="net47" />
</packages>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

神经暖 2025-01-29 10:08:52

看来您认为错误是指应用程序的.exewrglpipeline.exe)。它没有。它是指winscp.exe。 winscp .net汇编winscpnet.dll需要winscp.exe二进制二进制。

https://winscp.net/eng/eng/eng/docs/docs/library_install#install#install#install#install-pall.install#install#imest

请参阅 解决方案是使用 winscp nuget package 包括两个二聚体。

It seems that you believe the error refers to the .exe of your application (WRGLPipeline.exe). It does not. It refers to WinSCP.exe. WinSCP .NET assembly WinSCPnet.dll needs WinSCP.exe binary to work.

See https://winscp.net/eng/docs/library_install#installing

The easiest solution is using WinSCP NuGet package that includes both binaries.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文