473,387 Members | 1,760 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,387 software developers and data experts.

Calling an executable from an .aspx page hosted on Windows 2003

Hello,
How's everybody???

I have an aspx. page that is calling an executable,....like this...

System.Diagnostics.ProcessStartInfo psi= new
System.Diagnostics.ProcessStartInfo();
psi.FileName="RATE2.exe";
psi.WorkingDirectory=Application["TempDir"].ToString();
System.Diagnostics.Process p= System.Diagnostics.Process.Start(psi );
p.WaitForExit();

I did my development on my computer that is running Windows 2000, and now I
want to deploy on a Windows 2003 server, but the calling to the executable
is not working, I don't even see any error, but I'm pretty sure is a
security issue. I tested configuring IIS 6.0 to run in IIS 5.0 isolation
mode, and it worked.

I'm not familiarize with II6.0, I'm not sure what user I have to give access
to run the executable.

Any ideas???
M.A.R.

Nov 18 '05 #1
6 1881
"Marlene Arauz Martin" <pd*****@nospam.wdsinc.com> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
Hello,
How's everybody???

I have an aspx. page that is calling an executable,....like this...

System.Diagnostics.ProcessStartInfo psi= new
System.Diagnostics.ProcessStartInfo();
psi.FileName="RATE2.exe";
psi.WorkingDirectory=Application["TempDir"].ToString();
System.Diagnostics.Process p= System.Diagnostics.Process.Start(psi );
p.WaitForExit();

I did my development on my computer that is running Windows 2000, and now I want to deploy on a Windows 2003 server, but the calling to the executable
is not working, I don't even see any error, but I'm pretty sure is a
security issue. I tested configuring IIS 6.0 to run in IIS 5.0 isolation
mode, and it worked.


I suggest that you put a try block around this code and display the
exception in the catch clause.
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #2
I have exactly the same problem but no exception is thrown, it just
hangs at the Start method: i.e. event 8 is logged but not event 9.

EventLog.WriteEntry(
EVENT_LOG_SOURCE,
"see event number",
EventLogEntryType.Information,
8
);

Process.Start(psi);

EventLog.WriteEntry(
EVENT_LOG_SOURCE,
"see event number",
EventLogEntryType.Information,
9
);
Any other ideas how to debug this anybody?

John Saunders wrote:
"Marlene Arauz Martin" <pd*****@nospam.wdsinc.com> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
Hello,
How's everybody???

I have an aspx. page that is calling an executable,....like this...

System.Diagnostics.ProcessStartInfo psi= new
System.Diagnostics.ProcessStartInfo();
psi.FileName="RATE2.exe";
psi.WorkingDirectory=Application["TempDir"].ToString();
System.Diagnostics.Process p= System.Diagnostics.Process.Start(psi );
p.WaitForExit();

I did my development on my computer that is running Windows 2000, and now


I
want to deploy on a Windows 2003 server, but the calling to the executable
is not working, I don't even see any error, but I'm pretty sure is a
security issue. I tested configuring IIS 6.0 to run in IIS 5.0 isolation
mode, and it worked.

I suggest that you put a try block around this code and display the
exception in the catch clause.

Nov 18 '05 #3
"Mark Shasby" <ma**@shasby.com> wrote in message
news:OM**************@TK2MSFTNGP11.phx.gbl...
I have exactly the same problem but no exception is thrown, it just
hangs at the Start method: i.e. event 8 is logged but not event 9.
EventLog.WriteEntry(
EVENT_LOG_SOURCE,
"see event number",
EventLogEntryType.Information,
8
);

try
{
Process.Start(psi);
}
catch (Exception ex)
{
EventLog.WriteEntry(
EVENT_LOG_SOURCE,
ex.ToString(),
EventLogEntryType.Information,
10
);
}

EventLog.WriteEntry(
EVENT_LOG_SOURCE,
"see event number",
EventLogEntryType.Information,
9
);

Any other ideas how to debug this anybody?

John Saunders wrote:
"Marlene Arauz Martin" <pd*****@nospam.wdsinc.com> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
Hello,
How's everybody???

I have an aspx. page that is calling an executable,....like this...

System.Diagnostics.ProcessStartInfo psi= new
System.Diagnostics.ProcessStartInfo();
psi.FileName="RATE2.exe";
psi.WorkingDirectory=Application["TempDir"].ToString();
System.Diagnostics.Process p= System.Diagnostics.Process.Start(psi );
p.WaitForExit();

I did my development on my computer that is running Windows 2000, and now

I
want to deploy on a Windows 2003 server, but the calling to the

executableis not working, I don't even see any error, but I'm pretty sure is a
security issue. I tested configuring IIS 6.0 to run in IIS 5.0 isolationmode, and it worked.

I suggest that you put a try block around this code and display the
exception in the catch clause.

Nov 18 '05 #4
Same result - it is already in a try catch as suggested earlier, thanks.
It hangs. try/catch doesn't stop things hanging. Hence the "any OTHER
ideas how to debug this".

John Saunders wrote:
"Mark Shasby" <ma**@shasby.com> wrote in message
news:OM**************@TK2MSFTNGP11.phx.gbl...
I have exactly the same problem but no exception is thrown, it just
hangs at the Start method: i.e. event 8 is logged but not event 9.


EventLog.WriteEntry(
EVENT_LOG_SOURCE,
"see event number",
EventLogEntryType.Information,
8
);

try
{
Process.Start(psi);
}
catch (Exception ex)
{
EventLog.WriteEntry(
EVENT_LOG_SOURCE,
ex.ToString(),
EventLogEntryType.Information,
10
);
}

EventLog.WriteEntry(
EVENT_LOG_SOURCE,
"see event number",
EventLogEntryType.Information,
9
);

Any other ideas how to debug this anybody?

John Saunders wrote:
"Marlene Arauz Martin" <pd*****@nospam.wdsinc.com> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
Hello,
How's everybody???

I have an aspx. page that is calling an executable,....like this...

System.Diagnostics.ProcessStartInfo psi= new
System.Diagnostics.ProcessStartInfo();
psi.FileName="RATE2.exe";
psi.WorkingDirectory=Application["TempDir"].ToString();
System.Diagnostics.Process p= System.Diagnostics.Process.Start(psi );
p.WaitForExit();

I did my development on my computer that is running Windows 2000, and
now
I
want to deploy on a Windows 2003 server, but the calling to the
executable
is not working, I don't even see any error, but I'm pretty sure is a
security issue. I tested configuring IIS 6.0 to run in IIS 5.0
isolation
mode, and it worked.
I suggest that you put a try block around this code and display the
exception in the catch clause.


Nov 18 '05 #5
"Mark Shasby" <ma**@shasby.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
Same result - it is already in a try catch as suggested earlier, thanks.
It hangs. try/catch doesn't stop things hanging. Hence the "any OTHER
ideas how to debug this".
You had not previously indicated that it was in a try block.

Your code with the event logging is a bit different than your earlier code
(with the WaitForExit). If WaitForExit is still there, are you sure the code
is blocking on the Start and not on the WaitForExit?

Also, is the entire site frozen, or just the one request?
--
John Saunders
johnwsaundersiii at hotmail
John Saunders wrote:
"Mark Shasby" <ma**@shasby.com> wrote in message
news:OM**************@TK2MSFTNGP11.phx.gbl...
I have exactly the same problem but no exception is thrown, it just
hangs at the Start method: i.e. event 8 is logged but not event 9.


EventLog.WriteEntry(
EVENT_LOG_SOURCE,
"see event number",
EventLogEntryType.Information,
8
);

try
{
Process.Start(psi);
}
catch (Exception ex)
{
EventLog.WriteEntry(
EVENT_LOG_SOURCE,
ex.ToString(),
EventLogEntryType.Information,
10
);
}

EventLog.WriteEntry(
EVENT_LOG_SOURCE,
"see event number",
EventLogEntryType.Information,
9
);

Any other ideas how to debug this anybody?

John Saunders wrote:

"Marlene Arauz Martin" <pd*****@nospam.wdsinc.com> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
>Hello,
>
>
> How's everybody???
>
> I have an aspx. page that is calling an executable,....like this...
>
>System.Diagnostics.ProcessStartInfo psi= new
>System.Diagnostics.ProcessStartInfo();
>psi.FileName="RATE2.exe";
>psi.WorkingDirectory=Application["TempDir"].ToString();
>System.Diagnostics.Process p= System.Diagnostics.Process.Start(psi );
>p.WaitForExit();
>
>I did my development on my computer that is running Windows 2000, and


now
I
>want to deploy on a Windows 2003 server, but the calling to the


executable
>is not working, I don't even see any error, but I'm pretty sure is a
>security issue. I tested configuring IIS 6.0 to run in IIS 5.0


isolation
>mode, and it worked.
I suggest that you put a try block around this code and display the
exception in the catch clause.


Nov 18 '05 #6
"Mark Shasby" <ma**@shasby.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
Same result - it is already in a try catch as suggested earlier, thanks.
It hangs. try/catch doesn't stop things hanging. Hence the "any OTHER
ideas how to debug this".
Here's another thought. Have you tried this with other executables? In
particular, try writing a console program which does nothing - not even
writing "Hello, world". It should just exit. Then try starting that program
(using the full path to the executable). See if it works.
--
John Saunders
johnwsaundersiii at hotmail

John Saunders wrote:
"Mark Shasby" <ma**@shasby.com> wrote in message
news:OM**************@TK2MSFTNGP11.phx.gbl...
I have exactly the same problem but no exception is thrown, it just
hangs at the Start method: i.e. event 8 is logged but not event 9.


EventLog.WriteEntry(
EVENT_LOG_SOURCE,
"see event number",
EventLogEntryType.Information,
8
);

try
{
Process.Start(psi);
}
catch (Exception ex)
{
EventLog.WriteEntry(
EVENT_LOG_SOURCE,
ex.ToString(),
EventLogEntryType.Information,
10
);
}

EventLog.WriteEntry(
EVENT_LOG_SOURCE,
"see event number",
EventLogEntryType.Information,
9
);

Any other ideas how to debug this anybody?

John Saunders wrote:

"Marlene Arauz Martin" <pd*****@nospam.wdsinc.com> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
>Hello,
>
>
> How's everybody???
>
> I have an aspx. page that is calling an executable,....like this...
>
>System.Diagnostics.ProcessStartInfo psi= new
>System.Diagnostics.ProcessStartInfo();
>psi.FileName="RATE2.exe";
>psi.WorkingDirectory=Application["TempDir"].ToString();
>System.Diagnostics.Process p= System.Diagnostics.Process.Start(psi );
>p.WaitForExit();
>
>I did my development on my computer that is running Windows 2000, and


now
I
>want to deploy on a Windows 2003 server, but the calling to the


executable
>is not working, I don't even see any error, but I'm pretty sure is a
>security issue. I tested configuring IIS 6.0 to run in IIS 5.0


isolation
>mode, and it worked.
I suggest that you put a try block around this code and display the
exception in the catch clause.


Nov 18 '05 #7

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

Similar topics

11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
0
by: Santa | last post by:
I am using Fritz Onion's "Asynchronous Pages" approach as mentioned in the article http://msdn.microsoft.com/msdnmag/issues/03/06/Threading/default.aspx to increase the performance of my ASPX...
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
0
by: Santa | last post by:
I am using Fritz Onion's "Asynchronous Pages" approach as mentioned in the article http://msdn.microsoft.com/msdnmag/issues/03/06/Threading/default.aspx to increase the performance of my ASPX...
5
by: JerryK | last post by:
Hi, I am trying to put a hyperlink to a .cer (certificate) file on a form. Normally (on a ,htm page) when the user clicks on the hyperlink, the file is not recognized and the user is given the...
3
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
7
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file...
1
by: wanaruk | last post by:
Hi all. I am working on a legacy application written in Classic ASP with VB6 COM+ components running on Windows 2003 Adv Server (32bit). There is one page in the app that uses Secure FTP to send...
8
by: Derek Hart | last post by:
I am unclear about what all the requirements are to call a simple vb.net application, installed in the GAC, from COM (such as writing vba in Word to call the dotnet dll). I believe I have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.