WINSCP.SessionLocalexception:Winscp.exe可执行
我是一个在实验室中的新工作,该实验室将数据从本地计算机发送到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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来您认为错误是指应用程序的
.exe
(wrglpipeline.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 toWinSCP.exe
. WinSCP .NET assemblyWinSCPnet.dll
needsWinSCP.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.