Microsoft KB Archive/831212

= You may receive an AuthManager initialization exception when you visit an ASP site and an ASP.NET site =

Article ID: 831212

Article Last Modified on 11/15/2007

-

APPLIES TO


 * Microsoft Commerce Server 2002 Standard Edition

-



SYMPTOMS
When you visit an Active Server Pages (ASP) site, such as the Microsoft Commerce Server 2000 retail site, and a Microsoft ASP.NET site, such as the Commerce Server 2002 retail site, that are on the same server, you may receive an AuthManager initialization exception.



CAUSE
This problem occurs on computers that are running Microsoft Internet Information Services (IIS) 6.0 if the ASP site code resides on the same computer as the ASP.NET site code. AuthManager checks to see if there is an ASP context or an ASP.NET context at initialization, and then caches the result. When both sites reside in the same application pool, the sites run in the same process. The first AuthManager initialization call is successful. If the ASP site (the Commerce Server 2000 retail site, for example) is hit first, AuthManager assumes that there is an ASP context, and then fails in ASP.NET context.



Hotfix information
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Prerequisites
No prerequisites are required.

Restart requirement
After you install this hotfix, run the IISReset command at a command prompt

Hotfix replacement information
This hotfix does not replace any other hotfixes.

File information
The English version of this hotfix has the file attributes (or later) 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 --  22-Oct-2003  19:39  4.5.3340.0        192,997  Mscsauth.dll



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



WORKAROUND
To work around this problem, separate the ASP site and the ASP.NET site in different application pools. The compatibility mode in IIS 5.0 also provides a Dllhost process so that the ASP code can operate separately.



MORE INFORMATION
When you visit the Commerce Server 2000 retail site after you visit the Commerce Server 2002 retail site by using Microsoft Internet Explorer, you may receive the following exception when this error condition occurs: Commerce.AuthManager.1 (0x80004003) AuthManager(CommerceServer): Initialization of ASP objects failed. /retail/include/std_access_lib.asp, line 309

When you visit the Commerce Server 2000 retail site before you visit the Commerce Server 2002 retail site, you may receive the following exception: AuthManager (CommerceServer): API should be called only from ASP [COMException (0xc1004c24): AuthManager (CommerceServer): API should be called only from ASP.] Microsoft.CommerceServer.Interop.AuthManagerClass.IsAuthenticated(Int32 TimeWindow) +0 Microsoft.CommerceServer.Runtime.AuthManager.IsAuthenticated(Int32 timeWindow) +50

[CommerceAuthenticationException: Failed to authenticate.] Microsoft.CommerceServer.Runtime.AuthManager.IsAuthenticated(Int32 timeWindow) +143 SVTNet.C_additem.Page_Load(Object sender, EventArgs e) in d:\inetpub\wwwroot\SVTNetX\_additem.aspx.cs:62 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive +35 System.Web.UI.Page.ProcessRequestMain +714 For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Keywords: kbhotfixserver kbqfe kbhotfixserver kbqfe kbbug kbfix kbcommserv2002presp3fix KB831212

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.