Microsoft KB Archive/827872

From BetaArchive Wiki
Knowledge Base


FIX: Commerce Server 2002 ASP.NET Sites Return an InvalidCastException Error

Article ID: 827872

Article Last Modified on 11/15/2007



APPLIES TO

  • Microsoft Commerce Server 2002 Standard Edition



SYMPTOMS

When Commerce Server reads values from the OrderForm object, you may receive an ASP.NET exception error message. The following is an example of this exception:

General Information

Additonal Info:
ExceptionManager.MachineName: BIZDESK1
ExceptionManager.TimeStamp: 8/8/2003 7:03:20 PM
ExceptionManager.FullName: GenerealResources, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6dc7d4f4c5257af7
ExceptionManager.AppDomainName: /LM/w3svc/2/Root/Commerce-8-169268694359+28122
ExceptionManager.ThreadIdentity:
ExceptionManager.WindowsIdentity: MICROSOFT\aspnetwebservice

Exception Information
Microsoft.CommerceServer.Runtime.Orders.CommerceOrderSystemException: Failed to retrieve value for property 'sku' from the order form. ---> Microsoft.CommerceServer.Runtime.CommerceException: GetOrderFormValue Failed. ---> System.InvalidCastException: QueryInterface for interface ITypeInfo failed.
at Microsoft.VisualBasic.CompilerServices.ITypeInfo.GetDocumentation(Int32 memid, String& pBstrName, String& pBstrDocString, Int32& pdwHelpContext, String& pBstrHelpFile)
at Microsoft.VisualBasic.Information.TypeName(Object VarName)
at Microsoft.CommerceServer.Internal.Common.Util.IsBlank(Object& arg)
at Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetOrderFormValue(String strKey, Object strOrderFormName)
--- End of inner exception stack trace ---
at Microsoft.CommerceServer.Internal.Common.Util.ThrowCommerceException(String message, Exception inner, String source)
at Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetOrderFormValue(String strKey, Object strOrderFormName)
at Microsoft.CommerceServer.Runtime.Orders.OrderForm.get_Item(String keyName)
--- End of inner exception stack trace ---
at Microsoft.CommerceServer.Runtime.Orders.OrderForm.get_Item(String keyName)
at GeneralPayment.GeneralPayment.PayInCreditCard(String userId, String language, Int32 creditChecked, Int32 numOfPayment, String m_cc_number, String m_exp_date, Int32 m_cc_company, String generalStoreName, String m_userId, String m_Cvv, Int32 matbea)

Exception Message
Failed to retrieve value for property 'sku' from the order form.

Exception InnerException
Microsoft.CommerceServer.Runtime.CommerceException: GetOrderFormValue Failed. ---> System.InvalidCastException: QueryInterface for interface ITypeInfo failed.
at Microsoft.VisualBasic.CompilerServices.ITypeInfo.GetDocumentation(Int32 memid, String& pBstrName, String& pBstrDocString, Int32& pdwHelpContext, String& pBstrHelpFile)
at Microsoft.VisualBasic.Information.TypeName(Object VarName)
at Microsoft.CommerceServer.Internal.Common.Util.IsBlank(Object& arg)
at Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetOrderFormValue(String strKey, Object strOrderFormName)
--- End of inner exception stack trace ---
at Microsoft.CommerceServer.Internal.Common.Util.ThrowCommerceException(String message, Exception inner, String source)
at Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetOrderFormValue(String strKey, Object strOrderFormName)
at Microsoft.CommerceServer.Runtime.Orders.OrderForm.get_Item(String keyName)

RESOLUTION

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:

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:



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
   -----------------------------------------------------------------------------------------------
   28-Aug-2003  16:22  4.5.3325.0  98,304  Microsoft.commerceserver.interop.orders.requisition.dll
   28-Aug-2003  16:22  4.5.3325.0  61,440  Microsoft.commerceserver.runtime.shipmgr.dll

After you apply this hotfix, you must run Gacutil -if on each of the binaries to put them in the global assembly cache (GAC).


STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Keywords: kbhotfixserver kbqfe kbhotfixserver kbqfe kberrmsg kbfix kbbug KB827872