473,507 Members | 12,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Running App From within ASP script not working

SO: W2003
Web server: IIS6 & ASP 3.0 (not .NET)

I use this simple script:
<%

RESPONSE.Write "<BR>INIZIO PROCEDURA CONVERSIONE XLS..."

'CREO IL FILE EXCEL

Set objWSH = server.createObject("wscript.shell")
stringaexe = "C:\InetPub\xxxxxx\quanti\download\ConvertXLS. EXE /S
""c:\InetPub\xxxxxxxxxxx\quanti\download\prova.txt "" /T
""c:\InetPub\xxxxxxx\quanti\download\prova.xls "" C:\/C-4143 /F6 /M2
/N""^^59"""
Response.Write "<BR>stringaexe=" & stringaexe
objWSH.Run (stringaexe)

set objWSH = Nothing

RESPONSE.Write "<BR><B>IL FILE XLS E' STATO COMPLETATO!</B>"

%>

The same thing works when using the command line, or batch file, but not
within my ASP script. It appears to launch ConvertXLS.EXE, as it is in the
task manager, however, it seems to hang.

Please tell me, what things do I need to look at to resolve this issue?

Thank you for your attention.

Allen
Jun 13 '07 #1
1 1763
Allen wrote:
SO: W2003
Web server: IIS6 & ASP 3.0 (not .NET)

I use this simple script:
<%

RESPONSE.Write "<BR>INIZIO PROCEDURA CONVERSIONE XLS..."

'CREO IL FILE EXCEL

Set objWSH = server.createObject("wscript.shell")
stringaexe = "C:\InetPub\xxxxxx\quanti\download\ConvertXLS. EXE /S
""c:\InetPub\xxxxxxxxxxx\quanti\download\prova.txt "" /T
""c:\InetPub\xxxxxxx\quanti\download\prova.xls "" C:\/C-4143 /F6 /M2
/N""^^59"""
Response.Write "<BR>stringaexe=" & stringaexe
objWSH.Run (stringaexe)

set objWSH = Nothing

RESPONSE.Write "<BR><B>IL FILE XLS E' STATO COMPLETATO!</B>"

%>

The same thing works when using the command line, or batch file, but
not within my ASP script. It appears to launch ConvertXLS.EXE, as it
is in the task manager, however, it seems to hang.

Please tell me, what things do I need to look at to resolve this
issue?
Probably, stop trying to do it. If this application requires user input,
then trying to run it on the server is doomed to fail.

If the application does not require user input, then you are likely
encountering a permissions issue. IIS processes do not run under your
user account. Unless your website has Anonymous disabled, the account
used is the IUSR_machinename account, so you need to grant that account
whatever permissions are required to run your application.

See here for better ways to create Excel files in ASP:
http://support.microsoft.com/default...;en-us;q257757

There is also a product sold by ASPOSE that handles Excel files.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jun 13 '07 #2

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

Similar topics

8
3308
by: Sticks | last post by:
ok... im not quite sure how to describe my problem. i have a php script that runs through my entire php site and writes the resulting output to html files. this is necessary as the nature of the...
8
3016
by: Paul Cochrane | last post by:
Hi all, I've got an application that I'm writing that autogenerates python code which I then execute with exec(). I know that this is not the best way to run things, and I'm not 100% sure as to...
4
1555
by: ATS | last post by:
BUG/PRODUCTION-DOWN: UserControl running from HTML not working. Someone please help, I have a production down situation. For whatever reason, UserControls are not owkring from HTML/IE. When...
4
1256
by: aph | last post by:
Hello. I'm sure this has been asked before, but I can't find an answer anywhere. I want to create a truly "dynamic" app which can get new functions "on-the-fly" and run them without having to...
3
2077
by: u0107 | last post by:
Hello, I have a multi-frame page. The frames are named Frame_1, Frame_2 and Frame_3. Frame_1 has a drop down box. When a value is selected in this drop down box, Frame_2 is updated using an...
14
23109
by: lmttag | last post by:
Hello. We're developing an ASP.NET 2.0 (C#) application and we're trying to AJAX-enable it. We're having problem with a page not showing the page while a long-running process is executing. So,...
1
1289
by: CartmanCreative | last post by:
I am totally new to Java, and would desperately like some help. I have downloaded a Java Text Scroller that uses DHTML to scroll text up and down. There are other Java scrollers that do the same...
3
8209
by: duyanning | last post by:
I have written a pyhton script that will process data file in current working directory. My script is in an different directory to data file. When I debug this script using pdb within emacs, emacs...
1
1523
by: sverkaik | last post by:
I have a PHP script which needs to run some other PHP scripts from within it. I need them to be executed on a timed basis, say, every minute. However, they can take a little while to run, and I do...
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7313
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
7372
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
5619
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,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.