Process class in asp.net applications

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
 
S

Scott Allen

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.
 
G

Guest

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.
 
G

Guest

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
 
Joined
Mar 5, 2008
Messages
1
Reaction score
0
SFTP in web application (ASP.Net)

Hi,

Were you able to solve this problem regarding SFTP? I'm facing a similar problem.

thanks!



=?Utf-8?B?U3JlZWx1?= said:
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

"Sreelu" wrote:

> Thanks Scott. I'll track the problem.
>
> "Scott Allen" wrote:
>
> > 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.
> >
> > --
> > Scott
> > http://www.OdeToCode.com/blogs/scott/
> >
> > On Thu, 28 Jul 2005 09:12:01 -0700, Sreelu
> > <[email protected]> wrote:
> >
> > >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
> > >

> >
> >
 

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

Members online

Forum statistics

Threads
474,183
Messages
2,570,965
Members
47,512
Latest member
FinleyNick

Latest Threads

Top