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 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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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
|
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...
|
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...
|
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...
|
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...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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...
|
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...
|
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,...
| |