OrderMapping.exe Problem
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > OrderMapping.exe Problem




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    OrderMapping.exe Problem  
Billiam


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-30-07 12:21 AM

Hi All,

I'm having a problem generating OrdersStorage.sql using OrderMapping.exe.
I'm trying to extend the CreditCardPayment class to save encrypted credit
card numbers in table CreditCardPayments.  From the documentation, this seem
s
simple enough but has not worked.  The error I get is:

Warning O0019 - Class XXCreditCardPayment is present in Object Mapping file
but is not present in web.config as a UserTypeName. Is this desired?
Error G0010 - Mapping defined for class XXCreditCardPayment which does not
exist in any provided assembly

To me, it appears that OrderMapping.exe is not picking up my entry for
CreditCardPayment in web.config.  The attribute UserTypeName is set to
XXCreditCardPayment contrary to the warning O0019.

Here is what I have done:

My class library is defined as
namespace test
{
[Serializable]
public class XXCreditCardPayment : CreditCardPayment...

My OrderObjectMapping.xml has these changes.  I changed CreditCardPayment to
XXCreditCardPayment.  I am just adding a column or two to this.
<Class Name="XXCreditCardPayment">
<Property Name="PaymentId"/>
<Property Name="OrderGroupId"/>...
<Property Name="JDECreditCardNumber"/>
</Class>
<ClassTableMap Class="XXCreditCardPayment" Table="CreditCardPayments">
<PropertyMap Property="PaymentId" Column="PaymentId" />
<PropertyMap Property="OrderFormId" Column="OrderFormId" />...
<PropertyMap Property="JDECreditCardNumber"
Column="JDECreditCardNumber" />
</ClassTableMap>
I left the CreditCardPayments table definition the same (did add the needed
columns).

My web.config has the following:
<Types>
<Type Key="CreditCardPayment" UserTypeName="XXCreditCardPayment"
AssemblyType="Local" NameSpace="test" Assembly="test" />...
</Types>

Has anyone else encountered issues or solutions for extending
CreditCardPayment?

Thanks,

Billiam





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:15 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register