Symptoms

Consider the following scenario:

  • You create a Microsoft Commerce Server 2009 website.

  • The website uses the Discount Ad Web Part to display an advertisement or discount.

  • You use the EncryptionHelper class to encrypt a query string parameter for a URL that is displayed on the Discount Ad Web Part.

In this scenario, the Web Part displays an invalid encrypted URL.

Note To work around this issue, you may have to restart Internet Information Services (IIS).

Cause

This issue occurs because of a race condition in the EncryptionHelper class.

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 website:

http://support.microsoft.com/contactus/?ws=supportNote 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

To apply this hotfix, you must have Commerce Server 2009 installed.

Restart requirement

You do not have to restart the computer after you apply this hotfix. However, you must restart IIS after you apply this hotfix.

To restart IIS, type the following command at a command prompt, and then press ENTER:

IISRESET /RESTARTNote This command stops and then restarts all IIS services that are running on a computer.

Hotfix replacement information

This hotfix does not replace any other hotfix.

Installation steps

If you use Microsoft Commerce Server 2009 together with SharePoint Server 2010, download and install the hotfix package that has the "CS2009TP_ KB2492964" label. If you use Microsoft Commerce Server 2009 RTM together with SharePoint Server 2007, download and install the hotfix package that has the "CS2009RTM_ KB2492964" label. These two hotfix packages contain the following files and a source folder that has the EncryptionHelper.cs file:

  • For the " CS2009TP_ KB2492964" hotfix package:

    • CS2009TP-KB2492964-x86.exe

    • Hotfix.txt

  • For the " CS2009RTM_ KB2492964" hotfix package:

    • Commerceserver2007sp3-KB2492964-enu.exe

    • Cs2009-KB2492964-x86.exe

    • Hotfix.txt

Notes

  • The installation file that you have to install depends on the version of SharePoint on the computer that is running Commerce Server.

  • You must use the local administrator account when you install this hotfix, or you must run the hotfix by using the Run as Administrator option. If you are running Windows Vista, Windows Server 2008, or a later operating system, and if User Account Control (UAC) is enabled, we recommend that you use the Run as Administrator option.

After you run the installation files, use the method that is described for one of the following situations:

  • Situation 1

    If no sites are deployed, run SharePoint Commerce Services Configuration Wizard to deploy the new site by using the updated MicrosoftCommerceWebParts.WSP solution file.

  • Situation 2

    If some sites are deployed, deploy the updated Web solution package (WSP) file by using the following stsadm command:

    stsadm -o upgradesolution -name microsoftcommercewebparts.wsp -filename MicrosoftCommerceWebParts.WSP -immediate -allowgacdeployment

  • Situation 3

    If Web Parts are customized by using the CommerceSharePointExtensibilityKit tool, follow these steps:

    1. Locate the updated source EncryptionHelper.cs file in the source folder that is contained in this hotfix package.

    2. Use this source file to replace the EncryptionHelper.cs file that is in the CommerceSharePointExtensibilityKit folder.

    3. Compile the assemblies for the Web Parts.

    4. Deploy the new MicrosoftCommerceWebParts.WSP file.

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 2009 RTM



File name

File version

File size

Date

Time

Platform

Cs2009hotfixhelper.exe

6.0.4171.34

13,080

11-Jan-2011

11:46

x86

Microsoft.catalogserver.dll

6.0.4171.34

756,520

11-Jan-2011

11:46

x86

Microsoft.commerceserver.runtime.dll

6.0.4171.34

850,744

11-Jan-2011

11:46

x86

Microsoft.commerceserver.catalog.dll

6.0.4171.34

961,336

11-Jan-2011

11:15

x86

Microsoft.commerce.providers.dll

1.0.20123.30

690,040

12-Jan-2011

21:25

x86

Microsoftcommercewebparts.wsp

Not applicable

699,748

12-Jan-2011

21:49

Not applicable

Encryptionhelper.cs

Not Applicable

6,013

09-Feb-2011

06:14

Not Applicable

Commerce Server 2009 Template Pack for SharePoint 2010

File name

File version

File size

Date

Time

Platform

microsoftcommercewebparts.wsp

Not applicable

707,847

11-Jan-2011

21:26

Not applicable

Encryptionhelper.cs

Not Applicable

5,446

13-Jan-2011

01:03

Not Applicable



Status

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

References

For more information about how to download Commerce Server 2009 Template Pack for SharePoint 2010, visit the following Microsoft website:

Download Commerce Server 2009 Template Pack for SharePoint 2010

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Thank you for your feedback!

×