Microsoft KB Archive/247139: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
(One intermediate revision by the same user not shown)
Line 90: Line 90:
<div class="indent">
<div class="indent">


<p><span class="kbd userinput"> C:\&gt;mdutil.exe appgetstatus w3svc/1/root/iisadmin</span></p>
<p><span class="kbd userinput"> C:\>mdutil.exe appgetstatus w3svc/1/root/iisadmin</span></p>


</div>
</div>
Line 102: Line 102:
<div class="indent">
<div class="indent">


<p><span class="kbd userinput"> C:\&gt;mdutil.exe appunload w3svc/1/root/iisadmin</span></p>
<p><span class="kbd userinput"> C:\>mdutil.exe appunload w3svc/1/root/iisadmin</span></p>


</div>
</div>
Line 115: Line 115:
<div class="indent">
<div class="indent">


<p><span class="kbd userinput"> C:\&gt;mdutil.exe appgetstatus w3svc/1/root/iisadmin</span></p>
<p><span class="kbd userinput"> C:\>mdutil.exe appgetstatus w3svc/1/root/iisadmin</span></p>


</div>
</div>
Line 127: Line 127:
<div class="indent">
<div class="indent">


<p><span class="kbd userinput"> C:\&gt;mdutil.exe appunload w3svc/1/root/iisadmin</span></p>
<p><span class="kbd userinput"> C:\>mdutil.exe appunload w3svc/1/root/iisadmin</span></p>


</div>
</div>
Line 139: Line 139:
<div class="indent">
<div class="indent">


<p><span class="kbd userinput"> C:\&gt;mdutil.exe appgetstatus w3svc/1/root/iisadmin</span></p>
<p><span class="kbd userinput"> C:\>mdutil.exe appgetstatus w3svc/1/root/iisadmin</span></p>


</div>
</div>
Line 156: Line 156:
<div class="indent">
<div class="indent">


<p><span class="kbd userinput"> C:\WINNT\system32\inetsrv\adminsamples&gt;adsutil appdelete w3svc/1/root/iisadmin</span></p>
<p><span class="kbd userinput"> C:\WINNT\system32\inetsrv\adminsamples>adsutil appdelete w3svc/1/root/iisadmin</span></p>


</div>
</div>
Line 163: Line 163:
<div class="indent">
<div class="indent">


<p><span class="kbd userinput"> C:\WINNT\system32\inetsrv\adminsamples&gt;adsutil appcreateinproc w3svc/1/root/iisadmin</span></p>
<p><span class="kbd userinput"> C:\WINNT\system32\inetsrv\adminsamples>adsutil appcreateinproc w3svc/1/root/iisadmin</span></p>


</div>
</div>
Line 171: Line 171:
<div class="indent">
<div class="indent">


<span class="kbd userinput"> C:\WINNT\system32\inetsrv\adminsamples&gt;adsutil delete w3svc/1/root/iisadmin/AppFriendlyName</span>
<span class="kbd userinput"> C:\WINNT\system32\inetsrv\adminsamples>adsutil delete w3svc/1/root/iisadmin/AppFriendlyName</span>




Line 198: Line 198:
<li>Under the Virtual Directory '''Application Settings''', the '''Unload''' button is disabled (grayed out).</li></ol>
<li>Under the Virtual Directory '''Application Settings''', the '''Unload''' button is disabled (grayed out).</li></ol>


When you attempt to access the site or reload a .asp page, the application does not read the Global.asa file. According to the design on an application, when the Global.asa file is unloaded, the next hit to a .asp page should produce a reload of the Global.asa file. Therefore, when you open the MMC, you should see the application status as &quot;loaded,&quot; and be able to unload. However, because the '''Unload''' button is disabled in the MMC, you cannot do this.
When you attempt to access the site or reload a .asp page, the application does not read the Global.asa file. According to the design on an application, when the Global.asa file is unloaded, the next hit to a .asp page should produce a reload of the Global.asa file. Therefore, when you open the MMC, you should see the application status as "loaded," and be able to unload. However, because the '''Unload''' button is disabled in the MMC, you cannot do this.


</div>
</div>

Latest revision as of 13:50, 21 July 2020

Article ID: 247139

Article Last Modified on 6/23/2005



APPLIES TO

  • Microsoft Internet Information Server 4.0



This article was previously published under Q247139

We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

SYMPTOMS

When you attempt to get the status of an application by using the Adsutil.vbs utility, the command fails to show the correct status of the application. There is an inconsistency between what the metabase displays and what the Internet Information Server (IIS) Microsoft Management Console (MMC) displays. In the MMC, the Application settings are not disabled (grayed out), because the MMC believes the application is loaded.

CAUSE

A confirmed bug in IIS 4.0 is the cause of this behavior. At this time, there is no fix for IIS 4.0.

RESOLUTION

This problem has been corrected in Internet Information Services (IIS) 5.0. To resolve this problem, upgrade to IIS 5.0, which is included in Windows 2000 Professional, Windows 2000 Server, and Windows 2000 Advanced Server.

WORKAROUND

There are two possible workarounds to use in an IIS 4.0 environment. To perform the workarounds, you need to obtain the Mdutil.exe utility, which can be found on the Windows NT Option Pack CD in the following location:

CDROM:\Ntoptpak\En\x86\Winnt.srv\Mdutil.exe


Workaround 1

NOTE: The following information assumes that you have copied the Mdutil.exe file to your local c: drive.

  1. At a command prompt, type the following command:

    C:\>mdutil.exe appgetstatus w3svc/1/root/iisadmin

    The screen displays the following:

    Application is running

  2. Type the following command:

    C:\>mdutil.exe appunload w3svc/1/root/iisadmin

    The screen displays the following:

    Application unloaded

    Open the browser and go to the virtual directory or Web site where you want to make changes.
  3. Type the following command:

    C:\>mdutil.exe appgetstatus w3svc/1/root/iisadmin

    The screen displays the following:

    Application is running

  4. Type the following command:

    C:\>mdutil.exe appunload w3svc/1/root/iisadmin

    The screen displays the following:

    Application unloaded

  5. Type the following command:

    C:\>mdutil.exe appgetstatus w3svc/1/root/iisadmin

    The screen displays the following:

    Application is stopped

Workaround 2

The second alternative is to use the adsutil delete function. To issue this command, perform the following steps:

  1. Type the following command at a command prompt:

    C:\WINNT\system32\inetsrv\adminsamples>adsutil appdelete w3svc/1/root/iisadmin

    The display shows Application Deleted.
  2. Type the following command:

    C:\WINNT\system32\inetsrv\adminsamples>adsutil appcreateinproc w3svc/1/root/iisadmin

    The display shows Application Created.

NOTE: To change the application's friendly name, use the following command:

C:\WINNT\system32\inetsrv\adminsamples>adsutil delete w3svc/1/root/iisadmin/AppFriendlyName


MORE INFORMATION

Steps to Reproduce this Behavior:

  1. Change to the c:\WINNT\System32\Inetsrv\Adminsamples directory and issue the following command:

    adsutil appunload w3svc/1/root/iisadmin

  2. The screen displays the following:

    Application Unloaded

  3. Open the Internet Service Manager, navigate to the Default Web Site\IISAdmin folder, right-click the folder, and then click Properties.
  4. Under the Virtual Directory Application Settings, the Unload button is disabled (grayed out).

When you attempt to access the site or reload a .asp page, the application does not read the Global.asa file. According to the design on an application, when the Global.asa file is unloaded, the next hit to a .asp page should produce a reload of the Global.asa file. Therefore, when you open the MMC, you should see the application status as "loaded," and be able to unload. However, because the Unload button is disabled in the MMC, you cannot do this.

Keywords: kbprb kbpending KB247139