473,466 Members | 1,503 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Running a server side script and getting failed to initialize

I am attempting to have an asp page call a batch file.
I had it working, I was high on life and then I decided to log off the
server. Once I did, the code would no longer work. When I logged back
onto the server, I saw:

'The application failed to initialize properly (0xc0000142). Click on
OK to terminate the application.'

Now before I get the usual questions, here is what I have/did:
These servers are 'secure' so I'm not so concerned about security. I
have the anonymous access account in IIS (server 2003, so IIS6) using a
local admin account. I have granted full permission to every user
account (IUSR, IWAM, ASPNET, Network Service etc. etc.) to all the
files in the website's dir. I have granted full rights to cmd.exe,
wscript.exe.

Now, after stopping/starting IIS about 7000 times and offering up many
a prayer to the IIS/ASP gods (who obviously hate me), my ASP code
starts to work again. HOWEVER, as soon as I log off, Poof! The script
stops working and I need to go through the whole dance routine (which
isn't consistent) until the script starts working again.

I dumbed down my code to something stupid like:

<%
set wshell = server.CreateObject("WScript.Shell")
wshell.run "notepad", 1, TRUE
set wshell = nothing
%>

just so I can see notepad pop up on the server (IIS is set to 'interact
with desktop' and I'm Remote Desktop'd to the server) - which it
does.

Once I log off and log back on (as an admin) I get the 'application
failed to initialize' error again. After clearing the blood off the
monitor (smashed my head against the glass one too many times) I
searched the groups and google high and low, but I haven't come
across this issue before. I mean, it does work - as long as I leave
the server logged on. I can understand that and live with it.
However: Why in all that is holy and pure does it fail after I logged
back in?

I am a few lines of code from going Postal at my workplace and then
committing hari-kari. Please. Save my coworkers, save me and most
importantly - Save my script!

May 12 '06 #1
0 2576

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

Similar topics

9
by: Kathryn | last post by:
Hiya I have a problem with using some client side and server side scripting together in an ASP. I'm using VBScript. What I'm trying to achieve is this - - Page loads up and some server side...
1
by: Srinivas | last post by:
Hi, I am working on a project to script all database objects.The code below works fine on my machine( windows XP ) and all the creates all the db objects. But I get an error message when I run...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
1
by: daniel_xi | last post by:
Hi all, I am running a VS 2003 .NET project on my client machine (Win 2000 SP4, ..NET framework 1.1), running an ASP.NET application on a remote web server (Win 2000 Server, IIS 6.0, .NET...
6
by: Ted | last post by:
I am construvcting a number of databases, some of which contain sensitive data and most of which do not. I am attempting to handle the security issues involved in protecting sensitive data in part...
7
by: =?Utf-8?B?am9uZWZlcg==?= | last post by:
I'm hoping this is a classic question, but the answer to it would help me with a lot of things. As you can see below, this code will never display the "Getting data...." text in the lblCheck -...
51
by: Ojas | last post by:
Hi!, I just out of curiosity want to know how top detect the client side application under which the script is getting run. I mean to ask the how to know whether the script is running under...
5
by: This | last post by:
I have a pretty basic emailing script that sends a relatively small number (150) of html emails. The emails are compiled, personalised from a mysql db subscribers list, and sent using mail() -...
2
by: Steve | last post by:
Hi guys, I have a test solution (called TP2) which is checked in to a Team Project (also called TP2). The solution contains: * DLL (containing a single test class) * Unit Test project (which...
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,...
1
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...
0
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...
0
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
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...
0
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
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.