Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

OK, but that's an account that runs the assembly. That's something that the assembly itself has no control over.
The ExecutableProcessUserName sets an account to run the winscp.exe.
Guest

Hi,

As requested I am sending u debug log file.

Because of error session log file not created.

in log file I am getting - User: WebAppAccess@WRDS2TRIAL@WRDS2TRIAL; Interactive: False


Pls find.

Thanks
NIkesh
martin

Re: Using WinSCP in Web Site getting error - Timeout waiting for WinSCP to respond - WinSCP has not resp

Show us the log files. Both session and debug.
nikesh_digitek

Re: Using WinSCP in Web Site getting error - Timeout waiting for WinSCP to respond - WinSCP has not resp

Hi,

We can not looking IIS configuration.

My problem is that when we pass
session.ExecutableProcessUserName = "ABCD" and
session.ExecutableProcessPassword = "12345"

then in log file I am getting : username@machinename@machinename;

and code is not working.

How to resolve this problem.
Please suggest the solution of this problem.

Thanks
Nikesh
martin

Re: Using WinSCP in Web Site getting error - Timeout waiting for WinSCP to respond - WinSCP has not resp

Sorry, but we cannot help you with configuring IIS.
nikesh_digitek

Re: Using WinSCP in Web Site getting error - Timeout waiting for WinSCP to respond - WinSCP has not resp

Hi,

I have use both the property in code. But still getting error.

Our config file setting is expliained below :

Point 1 - First setting in config file
in web.config file, If we set
<authentication mode="Windows"/>

Then winscp code works.

Point 2 - Second setting in config file which we normally use in our Web site.
But if we set
<authentication mode="Windows"/>
<identity impersonate="true" password="12345" userName="ABCD" />

We receive error - Timeout waiting for WinSCP to respond - WinSCP has not responded in time. There was no output. Response log file C:\Windows\TEMP\wscp37A8.03CBA501.tmp was not created. This could indicate lack of write permissions to the log folder or problems starting WinSCP itself.

Where the User "ABCD" has read and write permission on Temp (C:\Windows\TEMP\) Directory.

How can we fix this problem.

Thanks
Nikesh
nikesh_digitek

Using WinSCP in Web Site getting error - Timeout waiting for WinSCP to respond - WinSCP has not resp

Hi,

I am calling WinSCP in our aspx web page for doing FTPS from web Site. when we do the FTPS getting below error :

Timeout waiting for WinSCP to respond - WinSCP has not responded in time. There was no output. Response log file C:\Windows\TEMP\wscp3228.02982183.tmp was not created. This could indicate lack of write permissions to the log folder or problems starting WinSCP itself.


I an writing below code in our web page.
SessionOptions sessionOptions = new SessionOptions
{
Protocol = Protocol.Ftp,
FtpSecure = FtpSecure.Implicit,
HostName = hostName,
//PortNumber = portNumber,
UserName = userName,
Password = password,
TlsHostCertificateFingerprint = sFingerprint,
};

using (Session session = new Session())
{
session.SessionLogPath = ConfigurationManager.AppSettings["FTP_Log_File"].ToString() + DateTime.Now.ToString("yyMM") + "/" + "Log_" + DateTime.Now.ToString("ddMMyyyy") + ".txt".Replace("/", "\\");
session.Open(sessionOptions);

TransferOptions transferOptions = new TransferOptions();
transferOptions.TransferMode = TransferMode.Binary;
transferOptions.FilePermissions = null;
transferOptions.PreserveTimestamp = false;
transferOptions.ResumeSupport.State = TransferResumeSupportState.Off;
TransferOperationResult transferResult;

transferResult = session.PutFiles(sourceFilePath, filename, false, transferOptions);

transferResult.Check();
}
Also I am not able to create Session log file due to this error.

Pls look into this and give me the solution how I can fix this problem.

Thanks
Nikesh