Process class in asp.net applications

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

One of my applications need to upload some data to some secured sites, using
SFTP. This is to be done dynamically. So I'm creating a batch file on the fly
and calling a script file(.txt), using the process class to start the
execution of that file. But, the process is remaining in the started state,
and the browser is not responding after that.
The same batch file, I'm able to run from widows appli. What may be the
problem.
I'm using winscp client console commands for the purpose.

Thanks
 
I'm guessing that WinSCP depends on some sort of SSH key that is user
specific.

Perhaps the key is stored in the registry or a file under your
account, but the ASP.NET account (typically ASPNET or NETWORK SERVICE)
does not have the key or file, or does not have access to the key or
file. The program might even be trying to prompt for someone to press
a key to create the encryption keys it needs, but since the process is
invisible and in a service desktop, noone can press the key to
continue.

Two tools you can use to track down the problem are RegMon and FileMon
from sysinternals.com.
 
Thanks Scott. I'll track the problem.

Scott Allen said:
I'm guessing that WinSCP depends on some sort of SSH key that is user
specific.

Perhaps the key is stored in the registry or a file under your
account, but the ASP.NET account (typically ASPNET or NETWORK SERVICE)
does not have the key or file, or does not have access to the key or
file. The program might even be trying to prompt for someone to press
a key to create the encryption keys it needs, but since the process is
invisible and in a service desktop, noone can press the key to
continue.

Two tools you can use to track down the problem are RegMon and FileMon
from sysinternals.com.
 
I'm unable to track the exact prob. :-( But surely, the process is not
exiting itself.
As I can run successfully the same windows appli., the prob. may be coz of
the security reasons in asp.net appli. What may be the solution or
alternative for this. Can anyone pl. help me.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top