Tuesday, February 23, 2010

'ASP 0131' and 'ASP 0196 : 80040154' errors.

Just wanted to write about my recent experience. I was supposed to configure a vendor based web ASP application on WIN3K 64 bit SP 2 server. As soon as I set it up when I went to browse the site I got an error as shown below -

Active Server Pages error 'ASP 0131' Disallowed Parent Path , line 2 The Include file '../../../Test/XXXX.inc' cannot contain '..' to indicate the parent directory.

So fine it clearly says that IIS 6.0 Disallowed Parent path. So to fix this I went to HomeDir tab and clicked Configuration and in Options I checked - Enable Parent paths and tried to browse the website again. This time I get -

Server object error 'ASP 0196 : 80040154' Cannot launch out of process component /path/Path1/Path2/XXXX.inc, line 5
Only InProc server components should be used. If you want to use LocalServer components, you must set the AspAllowOutOfProcComponents metabase setting. Please consult the help file for important considerations.

But when I checked the Metabase.xml file the AspAllowOutOfProcComponents was already set to true.I am still researching this issue but I think such behavior is encountered if you are trying to run a 32 bit application on 64 bit server. The Worker process which runs in 64 bit tried to run the code and cause these errors.
Next stop try to run this code in IIS 7.0 with Worker process set to 32 bit. I think this option is available on a WIN2008 64 bit OS. If any one else came across similar issue or think I am wrong pls leave a comment.
Thanks

Windows Service pack switches

Below are the switches that can be used with any or most of the windows SP releases which I found to be very helpful.
/x - Extract the service pack without installing. Will prompt for the folder to which the files needs to be extracted to.
/quiet - No user interaction or display.
/passive - No input needed, displays installation progress bar.
/norestart - Do not restart after installation is complete.
/forcerestart - Restart after installation /warnrestart[time in seconds] - Warn and restart with given time (if time not given, wait 30 seconds).
/promptrestart - Prompt before restarting.
/overwriteoem - Overwrite OEM files without prompting.
/nobackup - Don't back up files necessary for an uninstall.
/forceappclose - Force running applications to close at shutdown.
/integrate - Integrate the update into the path.
/d - Back up files to specific location.
/log - Location for log file.

Error 0×80070005 When Creating a Task Using Task Scheduler

Error 0×80070005 When Creating a Task Using Task Scheduler in XP, windows 2000 and 2003.
0x80070005: Access is denied.

I was getting the above error when I was trying to schedule a batch file to run via task scheduler. This error is encountered if one of the below is true -
The userid that is being used to run the job has a blank password.
The userid does not have permission to "Log as a batch job". (Control Panel - Administrative Tools - Local Security Policy - User Rights Assignment)
The userid does not have admin access to the folder where the batch job is located.
Also refer MS articles if the above does not work- http://support.microsoft.com/kb/904423 , http://support.microsoft.com/kb/816731, http://support.microsoft.com/?kbid=867466