Connecting Tech Pros Worldwide Forums | Help | Site Map

Process class in asp.net applications

Sreelu
Guest
 
Posts: n/a
#1: Nov 19 '05
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



Scott Allen
Guest
 
Posts: n/a
#2: Nov 19 '05

re: Process class in asp.net applications


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
<Sreelu@discussions.microsoft.com> wrote:
[color=blue]
>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
>[/color]

Sreelu
Guest
 
Posts: n/a
#3: Nov 19 '05

re: Process class in asp.net applications


Thanks Scott. I'll track the problem.

"Scott Allen" wrote:
[color=blue]
> 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
> <Sreelu@discussions.microsoft.com> wrote:
>[color=green]
> >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
> >[/color]
>
>[/color]
Sreelu
Guest
 
Posts: n/a
#4: Nov 19 '05

re: Process class in asp.net applications


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:
[color=blue]
> Thanks Scott. I'll track the problem.
>
> "Scott Allen" wrote:
>[color=green]
> > 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
> > <Sreelu@discussions.microsoft.com> wrote:
> >[color=darkred]
> > >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
> > >[/color]
> >
> >[/color][/color]
Closed Thread