473,659 Members | 2,662 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Diagnost ics.ProcessStar tInfo psi= new
System.Diagnost ics.ProcessStar tInfo();
psi.FileName="R ATE2.exe";
psi.WorkingDire ctory=Applicati on["TempDir"].ToString();
System.Diagnost ics.Process p= System.Diagnost ics.Process.Sta rt(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 1895
"Marlene Arauz Martin" <pd*****@nospam .wdsinc.com> wrote in message
news:uU******** ******@TK2MSFTN GP10.phx.gbl...
Hello,
How's everybody???

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

System.Diagnost ics.ProcessStar tInfo psi= new
System.Diagnost ics.ProcessStar tInfo();
psi.FileName="R ATE2.exe";
psi.WorkingDire ctory=Applicati on["TempDir"].ToString();
System.Diagnost ics.Process p= System.Diagnost ics.Process.Sta rt(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
johnwsaundersii i 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.WriteE ntry(
EVENT_LOG_SOURC E,
"see event number",
EventLogEntryTy pe.Information,
8
);

Process.Start(p si);

EventLog.WriteE ntry(
EVENT_LOG_SOURC E,
"see event number",
EventLogEntryTy pe.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******** ******@TK2MSFTN GP10.phx.gbl...
Hello,
How's everybody???

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

System.Diagno stics.ProcessSt artInfo psi= new
System.Diagno stics.ProcessSt artInfo();
psi.FileName= "RATE2.exe" ;
psi.WorkingDi rectory=Applica tion["TempDir"].ToString();
System.Diagno stics.Process p= System.Diagnost ics.Process.Sta rt(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.co m> wrote in message
news:OM******** ******@TK2MSFTN GP11.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.WriteE ntry(
EVENT_LOG_SOURC E,
"see event number",
EventLogEntryTy pe.Information,
8
);

try
{
Process.Start(p si);
}
catch (Exception ex)
{
EventLog.WriteE ntry(
EVENT_LOG_SOURC E,
ex.ToString(),
EventLogEntryTy pe.Information,
10
);
}

EventLog.WriteE ntry(
EVENT_LOG_SOURC E,
"see event number",
EventLogEntryTy pe.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******** ******@TK2MSFTN GP10.phx.gbl...
Hello,
How's everybody???

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

System.Diagno stics.ProcessSt artInfo psi= new
System.Diagno stics.ProcessSt artInfo();
psi.FileName= "RATE2.exe" ;
psi.WorkingDi rectory=Applica tion["TempDir"].ToString();
System.Diagno stics.Process p= System.Diagnost ics.Process.Sta rt(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.co m> wrote in message
news:OM******** ******@TK2MSFTN GP11.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.WriteE ntry(
EVENT_LOG_SOURC E,
"see event number",
EventLogEntryTy pe.Information,
8
);

try
{
Process.Start(p si);
}
catch (Exception ex)
{
EventLog.WriteE ntry(
EVENT_LOG_SOURC E,
ex.ToString(),
EventLogEntryTy pe.Information,
10
);
}

EventLog.WriteE ntry(
EVENT_LOG_SOURC E,
"see event number",
EventLogEntryTy pe.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***** *********@TK2MS FTNGP10.phx.gbl ...
Hello,
How's everybody???

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

System.Diag nostics.Process StartInfo psi= new
System.Diag nostics.Process StartInfo();
psi.FileNam e="RATE2.exe" ;
psi.Working Directory=Appli cation["TempDir"].ToString();
System.Diag nostics.Process p= System.Diagnost ics.Process.Sta rt(psi );
p.WaitForEx it();

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.co m> wrote in message
news:%2******** *******@TK2MSFT NGP09.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
johnwsaundersii i at hotmail
John Saunders wrote:
"Mark Shasby" <ma**@shasby.co m> wrote in message
news:OM******** ******@TK2MSFTN GP11.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.WriteE ntry(
EVENT_LOG_SOURC E,
"see event number",
EventLogEntryTy pe.Information,
8
);

try
{
Process.Start(p si);
}
catch (Exception ex)
{
EventLog.WriteE ntry(
EVENT_LOG_SOURC E,
ex.ToString(),
EventLogEntryTy pe.Information,
10
);
}

EventLog.WriteE ntry(
EVENT_LOG_SOURC E,
"see event number",
EventLogEntryTy pe.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***** *********@TK2MS FTNGP10.phx.gbl ...
>Hello,
>
>
> How's everybody???
>
> I have an aspx. page that is calling an executable,.... like this...
>
>System.Diag nostics.Process StartInfo psi= new
>System.Diag nostics.Process StartInfo();
>psi.FileNam e="RATE2.exe" ;
>psi.Working Directory=Appli cation["TempDir"].ToString();
>System.Diag nostics.Process p= System.Diagnost ics.Process.Sta rt(psi );
>p.WaitForEx it();
>
>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.co m> wrote in message
news:%2******** *******@TK2MSFT NGP09.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
johnwsaundersii i at hotmail

John Saunders wrote:
"Mark Shasby" <ma**@shasby.co m> wrote in message
news:OM******** ******@TK2MSFTN GP11.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.WriteE ntry(
EVENT_LOG_SOURC E,
"see event number",
EventLogEntryTy pe.Information,
8
);

try
{
Process.Start(p si);
}
catch (Exception ex)
{
EventLog.WriteE ntry(
EVENT_LOG_SOURC E,
ex.ToString(),
EventLogEntryTy pe.Information,
10
);
}

EventLog.WriteE ntry(
EVENT_LOG_SOURC E,
"see event number",
EventLogEntryTy pe.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***** *********@TK2MS FTNGP10.phx.gbl ...
>Hello,
>
>
> How's everybody???
>
> I have an aspx. page that is calling an executable,.... like this...
>
>System.Diag nostics.Process StartInfo psi= new
>System.Diag nostics.Process StartInfo();
>psi.FileNam e="RATE2.exe" ;
>psi.Working Directory=Appli cation["TempDir"].ToString();
>System.Diag nostics.Process p= System.Diagnost ics.Process.Sta rt(psi );
>p.WaitForEx it();
>
>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
3750
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 2003 Server or ADO or ODBC issue, I am posting this on all of the three newsgroups. That's the setup: Windows 2003 Server with IIS and ASP.NET actiavted Access 2002 mdb file (and yes, proper rights are set on TMP paths and path,
0
2285
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 page.I am using the Custom thread pool as given in the article's sample. Implementation: =============== In AsyncPage.aspx I inhereted AsyncPage class instead of System.Web.UI.Page. SyncPage.aspx is like any other Web page which inherits
5
3414
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 5), but fails on IIS 6 running on a Win2003 server. The web uses Pages derived from a custom class I wrote (which itself derives from Page) to provide some common functionality. The Page_Load handler the failing webpage starts out like this: ...
0
1507
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 page.I am using the Custom thread pool as given in the article's sample. Implementation: =============== In AsyncPage.aspx I inhereted AsyncPage class instead of System.Web.UI.Page. SyncPage.aspx is like any other Web page which inherits
5
2070
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 option to save the file. This is the desired result. However, when I put the hyperlink on a webform, the file is opened and it's binary contents are displayed on the screen. Does anyone know why this happens? The hyperlink is as follows:
3
9077
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. If the web service is taking a long time to complete, the aspx page returns a ‘The operation has timed-out.’ Message to the web browser after 100 seconds. I’ve added: <httpRuntime executionTimeout="300" /> to the web.config files
7
2677
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 name based on the name of the VB6 application. A second choice would be a file name based on the # COM interface assembly. I have tried calling Assembly.GetCallingAssembly() but this fails when I use the VB6 client. Is there a way to get this...
1
3567
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 a file to another application server upon a certain type of data change. The way it works: Anonymous user posts the form - ASP code instantiates the COM+ component which is starting using a Domain User -Calls a method that creates the comma...
8
1983
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 installed the dll in the GAC. It is in there and has a public token. I did not create a key-value pair. I believe it is strong named, as it shows up in the GAC. How do I browse the objects of it? I would like to call it late bound, but the errors I...
0
8330
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8850
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8523
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8626
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7355
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6178
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2749
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.