Solved

Help: how to start ASP engine???

Posted on 2003-11-02
4
413 Views
Last Modified: 2010-04-13
Dear Experts,

My ASP engine keep stoping by itself after a few days of its start. And I dont know how to start the engine alone from any console, instead I have to restart my server all the time in order just to get my ASP engine restarted.

W2K Advance server with SP4, IIS 5.0.

Your advice would be very much appreciated.

Sot
0
Comment
Question by:sthay
  • 3
4 Comments
 
LVL 57

Accepted Solution

by:
Pete Long earned 50 total points
ID: 9669828
Knowledge Base  

HOW TO: Troubleshoot ASP in IIS 5.0PSS ID Number: 309051

Article Last Modified on 5/20/2003


--------------------------------------------------------------------------------
The information in this article applies to:


Microsoft Internet Information Services 5.0, when used with:
the operating system: Microsoft Windows 2000

--------------------------------------------------------------------------------

This article was previously published under Q309051
IN THIS TASK
SUMMARY

How to Troubleshoot ASP in IIS 5.0
SUMMARY
This step-by-step article describes the troubleshooting steps to take if ASP (Active Server Pages) stops responding on an Internet Information Services (IIS) 5.0 Web server. The platform may be any version of Windows 2000.

back to the top
How to Troubleshoot ASP in IIS 5.0
NOTE: Before you begin, ensure that .html or .htm files open on the Web server in question. If these files do not open, this is not an ASP issue.
If a Global.asa file exists in the root of your Web site, rename it as Global.old, stop and restart the Web services, and then create a test ASP page in Notepad with the following code:
<%
Response.Write "This is a test ASP page."
%>
                              
Save this file as Test.asp in the root of your Web site, and try to open the file on the Web server.

If ASP pages load in your Web browser after you have performed this step, the problem is with the Global.asa file. If ASP pages still do not load, proceed to step 2.

For additional information on troubleshooting the Global.asa file, click the article numbers below to view the articles in the Microsoft Knowledge Base:
288245 PRB: Global.asa Does Not Fire from Personal Web Server on Windows 98

265275 FP2000: Global.asa Does Not Run in FrontPage Web

173742 FIX: Global.asa Is Not Executed If Restricting Web Access

Set the application protection for the Web site to Low and stop and restart the IISAdmin service. If ASP pages load in your Web browser after you have performed this step, the issue is with the IWAM account, and you can proceed to step 3. If ASP pages still do not load, check Component Services in Administrative Tools to ensure that you can view the IIS packages. This ensures that Component Services is not failing. Make sure the following users exist in the local Users group:
NT AUTHORITY\Authenticated Users
NT AUTHORITY\INTERACTIVE
For more information on troubleshooting the Component Services snap-in, see the following Knowledge Base article:
301919 PRB: Cannot Expand 'My Computer' in Component Services MMC Snap-In

If ASP pages load in your Web browser after you have performed step 2, set the site back to Medium or High application protection, and add the IWAM account to the local Administrators group. If ASP pages load in your Web browser after you have performed this step, a permissions issue involving the IWAM account exists, and you can proceed to step 4. If ASP pages still do not load, run the Synciwam.vbs utility from a command line. To do this, open a command prompt and type C:\Inetpub\adminscripts>cscript synciwam.vbs. For additional information on situations in which the IWAM user account causes ASP to fail, see the following Knowledge Base articles:
308622 HOW TO: Perform Administration Tasks in IIS from a Command Prompt

297989 PRB: Configured Identity Is Incorrect for IWAM Account

255770 PRB: Logon Failure: Unknown User Name or Bad Password When You Run Out-of-Process Webs

236007 Domain Controller Demotion Causes Out-of-Process Applications to Fail

To resolve permissions issues with the IWAM account, use the Regmon and Filemon third-party products for Windows 2000. To download these these utilities, see the following Web site:
http://www.sysinternals.com

Run these utilities while you make a request for an ASP page, then search for "ACCDENIED" in Regmon and "FAILURE" in Filemon for the Dllhost.exe process.

NOTE: Do not be alarmed if you see "access denied" for the Iexplore.exe (Microsoft Internet Explorer) process. This is common behavior.

For more information on the minimum permissions that are required for IIS to function properly, see the following Knowledge Base article:
271071 Minimum NTFS Permissions Required for IIS 5.0 to Work

After you have identified "access denied" error messages for the Dllhost.exe process, use Regedt32 to make any necessary modifications to NTFS permissions in the registry.
In the system event log, look for the following events:
Source: DCOM Event ID: 10010 User: NT AUTHORITY\SYSTEM Description: The server {3D14228D-FBE1-11D0-995D-00C04FD919C1} did not register with DCOM within the required timeout.
This error message is followed in the event log by a warning message like the following:
Source: W3SVC Event ID: 36 User: N/A Description: The server failed to load application 'AppPath'. The error was 'Server execution failed'.
You may also see entries like the following in your %SystemRoot%\Iis5.log file:
OC_ABOUT_TO_COMMIT_QUEUE:Unreg iis_core:FindModules: FindProcessByNameW failed!
If you receive these error messages, the NT AUTHORITY\Authenticated Users or NT AUTHORITY\INTERACTIVE entry has been removed from the Users group. To resolve the problem, make sure that Authenticated Users and INTERACTIVE are members of the Users Group for that computer.

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
327153 PRB: ASP Pages Do Not Process and DCOM Event 10010 Appears in System Log

As a last resort, you can re-create the IIS packages. To do this, follow these steps:
Browse to Component Services and delete the following packages:NOTE: To delete the packages, you must first open the properties of the package, click the Advanced tab, and then click to clear the Disable Deletion check box.


IIS In-Process Applications
IIS Out-of-Process Pooled Applications
IIS Utilities
Open a command prompt, and then use the following command to switch directories:
cd %windir%\system32\inetsrv

Run the following commands:
rundll32 wamreg.dll, CreateIISPackage

NOTE: "CreateIISPackage" must be typed exactly; it is case-sensitive.
regsvr32 asptxn.dll

Close and reopen Component Services. You should see all three IIS COM+ applications that have been recreated.
Run IISRESET from a command line and test any ASP page that previously did not load correctly.
back to the top


Additional query words: iwam ID 36 10010 500 59 C000003b

Keywords: kbhowto kbHOWTOmaster KB309051
Technology: kbiis500 kbiisSearch kbOSWin2000 kbOSWinSearch



--------------------------------------------------------------------------------

Send feedback to Microsoft

© 2003 Microsoft Corporation. All rights reserved.
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 9669833
DOS Batchfile for restarting Services

From http://infocenter.cramsession.com/TechLibrary/GetHtml.asp?ID=1076&CatID=296


Written by Eric Thurber and Kent Dyer.
http://www.win-scripts.com
webmaster@win-scripts.com

*********************************
*Supported under Windows NT/2000*
*********************************
Contents needed for srvc_restart.zip found at http://www.win-scripts.com:
Choice.exe
Getvar.exe
SC.exe
Sleep.exe

@echo off
IF EXIST "%TEMP%\%USERNAME%.BAT" DEL "%TEMP%\%USERNAME%.BAT"
IF EXIST "%TEMP%\%USERNAME%.BAT" DEL "%TEMP%\%USERNAME%1.BAT"
GETVAR.EXE -v FN -f %TEMP%\%USERNAME%.BAT -p "Enter a Server or Workstation name without back slashes: "

CALL %TEMP%\%USERNAME%.BAT

set zInput=%FN%

REM use tokens=* to allow for long filenames
::for /f "tokens=*" %%i in ('type %zInput%') do @set zInput=%%i
echo The entered Servername is %zInput%
echo Would you like to get a listing of services available on selected Server or Workstation?
choice
if %errorlevel% EQU 1 goto GETSERVICE
if %errorlevel% EQU 2 goto MOVEON

:GETSERVICE
srvinfo \\%zinput% |more
:MOVEON
echo Would you still like to restart a specific service? Y=Yes N=Exit this script
choice
if %errorlevel% EQU 1 goto YES
if %errorlevel% EQU 2 goto END
:YES
GETVAR.EXE -v FN1 -f %TEMP%\%USERNAME%1.BAT -p "Enter the Service to restart: "
CALL %TEMP%\%USERNAME%1.BAT
set zInput1=%FN1%
sc \\%zInput% stop %zInput1%
sleep 4
sc \\%zInput% start %zInput1%
echo Restart of %zInput1% Service on %zinput% Complete!
getkey -k1 -d1 -nqp "Press Enter to Exit"

:END
exit
0
 

Author Comment

by:sthay
ID: 9705331
Thanks lots Peter for your advice. It works perfectly the way I wanted. I really appreciate your effort in sharing your expertise here.

Rgds,
Sot
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 9706619
:0) ThanQ
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now