FIX: You receive a System.AccessViolationException exception in the Commerce Server Profile Service when you visit a Commerce Server 2007 SP2 or Commerce Server 2009 Web site

Article translations Article translations
Article ID: 977980 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

When you access a Microsoft Commerce Server 2007 SP2 or Commerce Server 2009 Web site, you receive the following error message:
Server Error in '/' Application.
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace: …
Note For more information about the stack trace, refer to the "More Information" section.

When this problem occurs, you must restart the application pool in Internet Information Services (IIS) Manager to make the Commerce Server site function correctly.

CAUSE

This problem occurs because of an error in the Commerce Server Profile Service.

RESOLUTION

Hotfix information

A supported hotfix is 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.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if 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. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: -
http://support.microsoft.com/contactus/?ws=support
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

You must have Commerce Server 2007 SP2 or Commerce Server 2009 installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

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 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 item in Control Panel.
Commerce Server 2007 SP2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Csdwutil.dll6.0.4109.41552,78409-Apr-201011:19x86
Csdwutil.dll6.0.4109.41801,61609-Apr-201011:19x64
Commerce Server 2009
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Csdwutil.dll6.0.4171.12552,78426-Nov-200912:50x86
Csdwutil.dll6.0.4171.12801,61626-Nov-200912:50x64

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about the CommerceProfileModule class, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn.microsoft.com/en-us/library/microsoft.commerceserver.runtime.profiles.commerceprofilemodule(CS.90).aspx

Stack trace information

[AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.]
  Microsoft.CommerceServer.Interop.Profiles.ProfileServiceClass.Initialize(String sConfigStore, String sCatalog) +0
  Microsoft.CommerceServer.Runtime.Profiles.ProfileContext..ctor(String profileServiceConnectionString, String providerConnectionString, String bdaoConnectionString, DebugContext debugContext) +806
  Microsoft.CommerceServer.Runtime.Profiles.CommerceProfileModule.CreateProfileContext() +812
  Microsoft.CommerceServer.Runtime.Profiles.CommerceProfileModule.get_ProfileContext() +127
  Microsoft.CommerceServer.Runtime.Profiles.CommerceProfileModule.OnBeginRequest(Object sender, EventArgs e) +24
  System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +176
  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +177

Properties

Article ID: 977980 - Last Review: October 7, 2011 - Revision: 3.0
APPLIES TO
  • Microsoft Commerce Server 2009 Enterprise
  • Microsoft Commerce Server 2009 Standard
  • Microsoft Commerce Server 2007 Enterprise Edition
  • Microsoft Commerce Server 2007 Standard Edition
  • Microsoft Commerce Server 2007 Developer Edition
Keywords: 
kbexpertiseadvanced kbautohotfix kbsurveynew kbqfe KB977980

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com