|
 |
 |
 |
 |
Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms
of Use |
Trademarks
Article ID: 812833 - Last Review: May 12, 2007 - Revision: 5.5 FIX: You cannot run multiple processes of ASP.NET at the same timeNote To correct this problem in the Microsoft .NET Framework version
1.1, you must apply the June 2003 ASP.NET hotfix rollup package.
For more information, click the following article
number to view the article in the Microsoft Knowledge Base: 821156Â
(http://kbalertz.com/Feedback.aspx?kbNumber=821156/
)
ASP.NET 1.1 June 2003 hotfix rollup package
On a computer that is running Microsoft Internet Information
Services (IIS) 6.0 and Microsoft Windows Server 2003, you cannot run Microsoft
ASP.NET 1.1 applications in isolation because IIS 6.0 uses application pools.
Application pools can run applications in individual W3wp.exe processes.
However, you cannot run Microsoft ASP.NET 1.0 or ASP.NET 1.1 applications in an
isolated mode. Also, you cannot run multiple ASP.NET processes. Note An ASP Web application that uses Microsoft Internet Information
Services (IIS) 5.0 on Microsoft Windows 2000 or that uses IIS 5.1 on Microsoft
Windows XP can be isolated to run in its own process space by setting the
application protection to High (Isolated). You can configure this setting in the IIS (Inetmgr.exe) window.
However, if you must use Microsoft ASP.NET application isolation or multiple
processes, we recommend that you use Microsoft Windows Server
2003. After you apply this software update, ASP.NET processes will
run inside Dllhost.exe (COM+) processes. Warning This change may cause unexpected behavior in some ASP.NET
applications. For example, to use this software update, you must disable the <processModel> configuration element in the Machine.config file. When you do
this, the attributes of the <processModel> configuration element, such as the memoryLimit attribute and the responseDeadlockInterval attribute, are ignored. Therefore, after you apply this software
update, you will no longer be able to increase the value of the responseDeadlockInterval attribute to run long queries. Software update informationA supported software update is now available from Microsoft, but
it is only intended to correct the problem that is described in this article.
Only apply it to systems that are experiencing this specific problem. This
software update may receive additional testing. Therefore, if you are not
severely affected by this problem, we recommend that you wait for the next
Microsoft .NET Framework version 1.0 service pack that contains this software
update. To resolve this problem immediately, contact Microsoft Product
Support Services to obtain the software update. For a complete list of
Microsoft Product Support Services phone numbers and information about support
costs, visit the following Microsoft Web site: Note In special cases, charges that are ordinarily incurred for
support calls may be canceled if a Microsoft Support Professional determines
that a specific update will resolve your problem. The usual support costs will
apply to additional support questions and issues that do not qualify for the
specific update in question. PrerequisitesYou must have the Framework 1.0 Service Pack 2 installed to apply
this software update. Restart requirementIf core Framework files are in use when you apply this software
update, you may have to restart your computer after you apply this software
update. Software update replacement informationThis software update does not replace any other software updates. File information The English version of this software update has the file
attributes (or later file attributes) that are listed in the following table.
The dates and times for these files are listed in Coordinated Universal Time
(UTC). When you view the file information, it is converted to local time. To
find the difference between UTC and local time, use the Time
Zone tab in the Date and Time tool in Control Panel. Date Time Version Size File name
--------------------------------------------------------------
01-May-2003 12:32 1.0.3705.398 196,608 Aspnet_isapi.dll
01-May-2003 12:32 4,169 Aspnet_perf.h
01-May-2003 12:32 20,468 Aspnet_perf.ini
01-May-2003 12:32 20,342 Aspnet_perf2.ini
01-May-2003 12:32 1.0.3705.398 24,576 Aspnet_regiis.exe
01-May-2003 12:32 1.0.3705.398 28,672 Aspnet_wp.exe
01-May-2003 12:32 1.0.3705.398 69,632 Corperfmonext.dll
01-May-2003 12:32 1.0.3705.398 303,104 Mscorjit.dll
01-May-2003 12:32 1.0.3705.398 1,953,792 Mscorlib.dll
01-May-2003 12:32 10,284 Mscorlib.ldo
01-May-2003 12:32 1.0.3705.398 2,269,184 Mscorsvr.dll
01-May-2003 12:32 1.0.3705.398 2,269,184 Mscorwks.dll
01-May-2003 12:32 15 Smartnav.htm
01-May-2003 12:32 8,728 Smartnav.js
01-May-2003 12:32 1.0.3705.398 1,191,936 System.web.dll Implementation informationAfter you apply this software update, you can run ASP.NET
processes in high isolation. You can also run multiple ASP.NET
processes. To run ASP.NET processes in high isolation, follow these
steps:
- Start Notepad, and then paste the following sample code in
a new text file.
''
' The InProcessIsapiApps.vbs modifies the IIS metabase property
' W3SVC\InProcessIsapiApps. It has three command-line options:
'
' GET - displays the modules in the InProcessIsapiApps list
' ADD - adds the specified ISAPI extension to the list
' REMOVE - removes the specified ISAPI extension from the list
''
action = "NONE"
isapiFullPath = "NONE"
DetectExeType
ParseCommandLine
set w3svc = GetObject("IIS://localhost/w3svc")
list = w3svc.GetEx("InProcessIsapiApps")
Select Case action
Case "GET"
ActionGet
Case "REMOVE"
ActionRemove
Case "ADD"
ActionAdd
Case Else
WScript.Echo("Unknown action")
WScript.Quit(1)
End Select
WScript.Quit(0)
''''''''''''''
''''''''''''''
Sub ActionAdd
For Each isapi In list
isapi = LCase(isapi)
If (InStr(1, isapi, isapiFullPath, vbTextCompare) > 0) Then
WScript.Echo("Error: " & isapiFullPath & " is already in the list!")
WScript.Quit(1)
End If
Next
Dim count
count = UBound(list) + 1
ReDim Preserve list(count)
list(count) = isapiFullPath
w3svc.Put "InProcessIsapiApps", (list)
w3svc.SetInfo
WScript.Echo("Success: added " & isapiFullPath)
End Sub
''''''''''''''
''''''''''''''
Sub ActionGet
WScript.Echo(vbCRLF & "W3SVC/InProcessIsapiApps (" & UBound(list)+1 & " modules):")
For Each isapi In list
isapi = LCase(isapi)
WScript.Echo(isapi)
Next
End Sub
''''''''''''''
''''''''''''''
Sub ActionRemove
Dim matches
matches = 0
For Each isapi In list
isapi = LCase(isapi)
If (InStr(1, isapi, isapiFullPath, vbTextCompare) > 0) Then
matches = matches + 1
End if
Next
Dim count
count = UBound(list) + 1
Dim newList()
ReDim newList(count-matches-1)
Dim idx
Dim found
idx = 0
found = 0
For Each isapi In list
isapi = LCase(isapi)
If (InStr(1, isapi, isapiFullPath, vbTextCompare) = 0) Then
newList(idx) = list(idx+found)
idx = idx + 1
Else
found = found + 1
End if
Next
If found > 0 Then
w3svc.Put "InProcessIsapiApps", (newList)
w3svc.SetInfo
WScript.Echo("Success: removed " & isapiFullPath)
Else
WScript.Echo("ERROR: " & isapiFullPath & " not found!")
WScript.Quit(1)
End If
End Sub
'''''''''''''''''''''''''''
'''''''''''''''''''''''''''
Sub DetectExeType()
Dim ScriptHost
Dim ShellObject
Dim CurrentPathExt
Dim EnvObject
Dim RegCScript
Dim RegPopupType ' This is used to set the pop-up message box flags.
' I could not locate the pre-defined names
RegPopupType = 32 + 4
On Error Resume Next
ScriptHost = WScript.FullName
ScriptHost = Right(ScriptHost, Len(ScriptHost) - InStrRev(ScriptHost, "\"))
If (UCase(ScriptHost) = "WSCRIPT.EXE") Then
WScript.Echo ("This script does not work with WScript.")
' Create a pop-up message box to prompt the user with the question "Would you like to register CScript as your default host for VBscript?"
Set ShellObject = WScript.CreateObject("WScript.Shell")
' -1 is the time to wait. 0 means wait forever.
RegCScript = ShellObject.PopUp("Would you like to register CScript as your default host for VBscript?", 0, "Register CScript", RegPopupType)
If (Err.Number <> 0) Then
ReportError ()
WScript.Echo "To run this script by using CScript, type: ""CScript.exe " & WScript.ScriptName & """"
WScript.Quit (GENERAL_FAILURE)
WScript.Quit (Err.Number)
End If
' Determine if the user pressed yes or no. Yes is 6. No is 7.
If (RegCScript = 6) Then
ShellObject.RegWrite "HKEY_CLASSES_ROOT\VBSFile\Shell\Open\Command\", "%WINDIR%\System32\CScript.exe //nologo ""%1"" %*", "REG_EXPAND_SZ"
ShellObject.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\VBSFile\Shell\Open\Command\", "%WINDIR%\System32\CScript.exe //nologo ""%1"" %*", "REG_EXPAND_SZ"
' Determine if the PATHEXT environment variable already exists.
CurrentPathExt = ShellObject.RegRead("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PATHEXT")
If Err.Number = &H80070002 Then
Err.Clear
Set EnvObject = ShellObject.Environment("PROCESS")
CurrentPathExt = EnvObject.Item("PATHEXT")
End If
ShellObject.RegWrite "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PATHEXT", CurrentPathExt & ";.VBS", "REG_SZ"
If (Err.Number <> 0) Then
ReportError ()
WScript.Echo "Error Trying to write the registry settings!"
WScript.Quit (Err.Number)
Else
WScript.Echo "Successfully registered CScript"
End If
Else
WScript.Echo "To run this script type: ""CScript.Exe adsutil.vbs <cmd> <params>"""
End If
Dim ProcString
Dim ArgIndex
Dim ArgObj
Dim Result
ProcString = "Cscript //nologo " & WScript.ScriptFullName
Set ArgObj = WScript.Arguments
For ArgIndex = 0 To ArgCount - 1
ProcString = ProcString & " " & Args(ArgIndex)
Next
'Now, run the original executable under CScript.exe.
Result = ShellObject.Run(ProcString, 0, True)
WScript.Quit (Result)
End If
End Sub
''''''''''''''
''''''''''''''
Sub ParseCommandLine
If WScript.Arguments.Count = 0 Then
Usage
WScript.Quit(0)
End if
If WScript.Arguments.Count = 1 And WScript.Arguments(0) = "GET" Then
action = "GET"
ElseIf WScript.Arguments.Count = 2 And WScript.Arguments(0) = "REMOVE" Then
action = "REMOVE"
isapiFullPath = LCase(WScript.Arguments(1))
ElseIf WScript.Arguments.Count = 2 And WScript.Arguments(0) = "ADD" Then
action = "ADD"
isapiFullPath = LCase(WScript.Arguments(1))
Else
Usage
WScript.Quit(1)
End If
End Sub
''''''''''''''
''''''''''''''
Sub Usage
WScript.Echo()
WScript.Echo("Usage:")
WScript.Echo(" cscript.exe " & WScript.ScriptName & " GET")
WScript.Echo(" cscript.exe " & WScript.ScriptName & " REMOVE <isapi full-path>")
WScript.Echo(" cscript.exe " & WScript.ScriptName & " ADD <isapi full-path>")
WScript.Echo()
WScript.Echo("Example:")
WScript.Echo(" cscript.exe " & WScript.ScriptName & " REMOVE C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322")
End Sub - Save the sample code as a script file. Name the script file
InProcessIsapiApps.vbs.
- In the last line of the script file, make sure that path of
the .NET Framework is valid for your computer and for your version of the
Framework.
- In your Machine.config file, set enable=false in the <processModel> configuration element, and then save the file.
- Run the script by using the GET parameter. To do this,
click Start, click Run, type
nProcessIsapiApps.vbs GET, and then press
ENTER.
Note You may receive a message to update your computer to the CScript
Windows Script Host. - In the script output, note the path of the Aspnet_asipi.dll
file.
- Run the script again to remove the Aspnet_asipi.dll file.
To do this, use the REMOVE parameter and the path of the .NET Framework that is
valid for your computer. For example, run the following command:
nProcessIsapiApps.vbs REMOVE C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet_isapi.dll - Give the IWAM_MACHINENAME account the same permissions as
ASP.NET.
For more information about
ASP.NET configuration requirements, click the following article number to view
the article in the Microsoft Knowledge Base:
307626Â
(http://kbalertz.com/Feedback.aspx?kbNumber=307626/
)
ASP.NET configuration overview
- In the IIS window (Inetmgr.exe), set the application
virtual directory to run in High isolation.
- At a command prompt, run IISRESET.
Microsoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section. For more information, click the
following article number to view the article in the Microsoft Knowledge Base: 824684Â
(http://kbalertz.com/Feedback.aspx?kbNumber=824684/
)
Description of the standard terminology that is used to describe Microsoft software updates
This software update also contains a secondary fix
for the .NET Framework 1.0 that lets you unload the application domain. The fix
adds the UnloadAppDomain method to the HttpRuntime class. For example, you can use the HttpRuntime.UnloadAppDomain method. This method quits the current application. The
application restarts the next time that a request for it is
received. For more information, visit the following Microsoft
Developer Network (MSDN) Web sites: For more information, click the following article number
to view the article in the Microsoft Knowledge Base: 308672Â
(http://kbalertz.com/Feedback.aspx?kbNumber=308672/
)
Roadmap for .NET Enterprise Services
APPLIES TO- Microsoft .NET Framework 1.1
- Microsoft .NET Framework 1.0
- Microsoft Visual Studio .NET 2002 Professional Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition SP1
- Microsoft Visual Studio .NET 2002 Enterprise Developer
- Microsoft ASP.NET 1.1
- Microsoft ASP.NET 1.0
| kbvs2002sp1sweep kbperformance kbhowto kbbug kbfix kbqfe kbnetframe100presp3fix KB812833 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
|
 |
 |
 |
 |
 |
 |
 |
| |