473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Process class in asp.net applications

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
Nov 19 '05 #1
3 994
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
<Sr****@discussions.microsoft.com> 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


Nov 19 '05 #2
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
<Sr****@discussions.microsoft.com> 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


Nov 19 '05 #3
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
<Sr****@discussions.microsoft.com> 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


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Åstrand | last post by:
There's a new PEP available: PEP 324: popen5 - New POSIX process module A copy is included below. Comments are appreciated. ---- PEP: 324 Title: popen5 - New POSIX process module
77
by: Charles Law | last post by:
Hi guys I have a time critical process, running on a worker thread. By "time critical", I mean that certain parts of the process must be completed in a specific time frame. The time when the...
80
by: Charles Law | last post by:
Hi guys I have a time critical process, running on a worker thread. By "time critical", I mean that certain parts of the process must be completed in a specific time frame. The time when the...
2
by: Henrik | last post by:
Hi all, I'm working with a win app in vb that needs access to actual process id of the office-applications Word, Excel and PowerPoint. I know I can loop the processes and check for processes of...
83
by: Charles Law | last post by:
Hi guys I have a time critical process, running on a worker thread. By "time critical", I mean that certain parts of the process must be completed in a specific time frame. The time when the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.