473,666 Members | 2,038 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.createOb ject("wscript.s hell")
stringaexe = "C:\InetPub\xxx xxx\quanti\down load\ConvertXLS .EXE /S
""c:\InetPub\xx xxxxxxxxx\quant i\download\prov a.txt"" /T
""c:\InetPub\xx xxxxx\quanti\do wnload\prova.xl s"" 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 1769
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.createOb ject("wscript.s hell")
stringaexe = "C:\InetPub\xxx xxx\quanti\down load\ConvertXLS .EXE /S
""c:\InetPub\xx xxxxxxxxx\quant i\download\prov a.txt"" /T
""c:\InetPub\xx xxxxx\quanti\do wnload\prova.xl s"" 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_machinenam e 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
3314
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 hosting available to me for this particular page prohibits me from using php/mysql as i would like. my script works simply by using output buffers and an include the relevant section of code is as follows: ob_start();
8
3032
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 what I really should do. I've had a look through Programming Python and the Python Cookbook, which have given me ideas, but nothing has gelled yet, so I thought I'd put the question to the community. But first, let me be a little more detailed...
4
1563
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 script tries to run a UserControl's method or use a property, IE gives an error "Object doesn't support this property or method". Example:
4
1262
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 re-start the main app. I've found the code module that looks kind of hopefull. For instance this works great: import code
3
2091
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 asp file (as I have to read from a back-end access database). In turn in the asp file, I have a Body onload tag to execute a
14
23148
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, we're looking for a way to display the page with a "please wait..." message while the process is running, and then, when the process is done, update the page with the actual results/page content. We have a page that opens another browser/page...
1
1302
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 thing. My problem is that the Java always has code to place "fixed" or "static" text for scrolling. So I have to manually enter the words I need scrolled. Now . . I am also using a service called "FlexWindow" (www.flexwindow.com) where you can create...
3
8229
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 will change the current working directory to the directory which include the script, so my script cannot find the data file. I think this is the problem of emacs because when I start pdb from console directly, it will not change current...
1
1529
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 not need a response. Unfortunately, the only solutions I have found all require me to be on a Unix system, but this server is running windows. Right now I have a loop which does exec call to PHP and running the second script, but as you...
0
8444
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
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
8869
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...
0
8781
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8551
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
8639
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
7386
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...
0
4198
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4368
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.