Re: OrderMapping.exe utility is not generating a TSQL ?( some additional info)
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 > Re: OrderMapping.exe utility is not generating a TSQL ?( some additional info)




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

    Re: OrderMapping.exe utility is not generating a TSQL ?( some additional info)  
Eugene B


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


 
11-13-06 01:42 PM

Sorry, i placed a little different exemple of the web.config file's
fragment. Assemby name for the AnsiEssOrderForm type in the GAC was
complete, including version and token, and deffenition of the
"AnsiEssOrderForm" type is:

<Type Key="OrderForm" UserTypeName="AnsiEssOrderForm" AssemblyType="GAC"
NameSpace="AnsiOrg.Ess.Components"
Assembly="AnsiEssComponents, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=d89c3894000fd4bf"/>

Thank you.

"Eugene B" <ebukhsht@ansi.org> wrote in message
news:ul6LQ80AHHA.4328@TK2MSFTNGP03.phx.gbl...
> Hi folks!
>
> I have to extend Order System so I followed V. Kumar's guide lines and
> made the following:
>
> I've created separate project, which would produce a dll, containing new
> and extended classes such as "AnsiEssOrderForm" class(derived from
> Microsoft.CommerceServer.Runtime.Orders.OrderForm, and implementing two
> new properties: OrderType [int], and IpAddress [string; nvarchar(5
0) in
> database]), DepositAccountPayment class (derived from Payment type and is
> similar to the CashCardPayment type, with the only difference in Property
> Name="CashCardNumber; I've changed it to the AccountNumber) , and
> KeyCodePayment class, with the same changes as previous one. The name
> space used for the new types in dll was "AnsiOrg.Ess.Components", and name
> of the produced assembly was "AnsiEssComponents". Following, very clearly
> written guide, I've modified OrderObjectMappings.xml, and
> OrderPipelineMappings.xml files, as well as "web.config" file. But when I
> tried to run OrderMapping.exe utility, to generate TSQL for procedure's
> updates, I always received this message:
>
> -----------------------
>
> One or more errors found during validation:
>
> Warning O0019 - Class AnsiEssOrderForm is present in Object Mapping file
> but is not present in web.config as a UserTypeName. Is this desired?
>
> Warning O0019 - Class DepositAccountPayment is present in Object Mapping
> file but is not present in web.config as a UserTypeName. Is this desired?
>
> Warning O0019 - Class KeyCodePayment 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 KeyCodePayment which does not
> exist in any provided assembly
>
> Error G0010 - Mapping defined for class DepositAccountPayment which does
> not exist in any provided assembly
>
> Error G0010 - Mapping defined for class AnsiEssOrderForm which does not
> exist in any provided assembly
>
>
>
> I've tried different things; including signing dll with a strong name, and
> placing it in to the GAC, but it did not work.
>
>
>
> Here is a fragment of my web.config file:
>
> <Types>
>
>                                                <Type Key="Basket"
> UserTypeName="Basket" AssemblyType="GAC"
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
>                                                <Type Key="PurchaseOrder"
> UserTypeName="PurchaseOrder" AssemblyType="GAC"
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
>                                                <Type Key="OrderTemplate"
> UserTypeName="OrderTemplate" AssemblyType="GAC"
>
>
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
>
>
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
>                                                <Type Key="OrderForm"
> UserTypeName="AnsiEssOrderForm" AssemblyType="GAC"
>
>
> NameSpace="AnsiOrg.Ess.Components"
>
>
> Assembly="AnsiEssComponents"/>
>
>                                                <Type Key="LineItem"
> UserTypeName="LineItem" AssemblyType="GAC"
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
>                                                <Type Key="Shipment"
> UserTypeName="Shipment" AssemblyType="GAC"
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
>                                                <Type Key="Payment"
> UserTypeName="Payment" AssemblyType="GAC"
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
>                                                <Type
> Key="CreditCardPayment" UserTypeName="CreditCardPayment"
> AssemblyType="GAC" NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
>                                                <Type
> Key="GiftCertificatePayment" UserTypeName="GiftCertificatePayment"
> AssemblyType="GAC" NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
>                                                <Type
> Key="PurchaseOrderPayment" UserTypeName="PurchaseOrderPayment"
> AssemblyType="GAC" NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
>                                                <Type Key="CashCardPayment"
> UserTypeName="CashCardPayment" AssemblyType="GAC"
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
>                                                <Type
> Key="DepositAccountPayment" UserTypeName="DepositAccountPayment"
> AssemblyType="GAC" NameSpace="AnsiOrg.Ess.Components"
> Assembly="AnsiEssComponents, Version=1.0.0.0, Culture=neutral,
> PublicKeyToken=d89c3894000fd4bf"/>
>
>                                                <Type Key="KeyCodePayment"
> UserTypeName="KeyCodePayment" AssemblyType="GAC"
> NameSpace="AnsiOrg.Ess.Components" Assembly="AnsiEssComponents,
> Version=1.0.0.0, Culture=neutral, PublicKeyToken=d89c3894000fd4bf"/>
>
>                                                <Type Key="OrderAddress"
> UserTypeName="OrderAddress" AssemblyType="GAC"
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
>                                                <Type
> Key="DiscountApplicationRecord" UserTypeName="DiscountApplicationRecord"
> AssemblyType="GAC" NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
>                                                <Type
> Key="ShippingDiscountRecord" UserTypeName="ShippingDiscountRecord"
> AssemblyType="GAC" NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
>                                                <Type Key="PromoCodeRecord"
> UserTypeName="PromoCodeRecord" AssemblyType="GAC"
> NameSpace="Microsoft.CommerceServer.Runtime.Orders"
> Assembly="Microsoft.CommerceServer.Runtime, Version=6.0.1.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>
>                                    </Types>
>
>
>
> And here is a fragment of my OrderObjectMapping.xml file:
>
> - <Class Name="AnsiEssOrderForm">
>
>  <Property Name="OrderFormId" />
>
>  <Property Name="OrderGroupId" />
>
>  <Property Name="Name" />
>
>  <Property Name="BillingAddressId" />
>
>  <Property Name="PromoUserIdentity" />
>
>  <Property Name="SubTotal" />
>
>  <Property Name="ShippingTotal" />
>
>  <Property Name="HandlingTotal" />
>
>  <Property Name="TaxTotal" />
>
>  <Property Name="Total" />
>
>  <Property Name="Created" />
>
>  <Property Name="LastModified" />
>
>  <Property Name="ModifiedBy" />
>
>  <Property Name="Payments" />
>
>  <Property Name="LineItems" />
>
>  <Property Name="Shipments" />
>
>  <Property Name="PromoCodeRecords" />
>
>  <Property Name="Status" />
>
>  <Property Name="OrderType" />
>
>  <Property Name="IpAddress" />
>
>  </Class>
>
>
>
> Does anybody have ideas about what I did wrong, or maybe someone can see
> something I don't notice?
>
> Has anyone of you experienced something like this, or similar?
>
> Any comments or suggestions are very much appreciated.
>
> Thank you,
>
> Sincerely,
>
> Eugene. B.
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:14 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