Commerce Server Blog

Build world class ecommerce applications using Microsoft Commerce Server
  •  
  • Home
  • Advertise
  • Copyright Policy
  • Disclaimer
  • About

Unrecognized element ‘Validator’

ravikanth | December 25, 2008

After installing and configuring Commerce Server 2009 December CTP, when we try to open to default website, you will get an error and the error is “Unrecognized element Validator” and the detail error is as follows.

An exception of type ‘System.Configuration.ConfigurationErrorsException’ occurred and was caught.
————————————————————————————————-
12/24/2008 14:56:42
Type : System.Configuration.ConfigurationErrorsException, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Message : Unrecognized element ‘Validator’. (C:\inetpub\wwwroot\wss\VirtualDirectories\1234\ChannelConfiguration.config line 494)
Source : System.Configuration
Help link :
BareMessage : Unrecognized element ‘Validator’.
Filename : C:\inetpub\wwwroot\wss\VirtualDirectories\1234\ChannelConfiguration.config
Line : 494
Errors : System.Configuration.ConfigurationException[]
BareMessage : Unrecognized element ‘Validator’.
Filename : C:\inetpub\wwwroot\wss\VirtualDirectories\1234\ChannelConfiguration.config
Line : 494
Errors : System.Configuration.ConfigurationException[]
Data : System.Collections.ListDictionaryInternal
TargetSite :
Data : System.Collections.ListDictionaryInternal
TargetSite : System.Object EvaluateOne(System.String[], System.Configuration.SectionInput, Boolean, System.Configuration.FactoryRecord, System.Configuration.SectionRecord, System.Object)
Stack Trace :    at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
   at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)
   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
   at System.Web.HttpContext.GetSection(String sectionName)
   at System.Web.Configuration.HttpConfigurationSystem.GetSection(String sectionName)
   at System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String configKey)
   at System.Configuration.ConfigurationManager.GetSection(String sectionName)
   at Microsoft.Commerce.Application.Common.Configuration.ServiceConfiguration.get_Current()
   at Microsoft.Commerce.Broker.OperationService.InitializeOperationContext(CommerceRequest request)
   at Microsoft.Commerce.Broker.OperationService.ProcessRequest(CommerceRequest request)

Additional Info:

MachineName : MOJAVENOVCTP
TimeStamp : 12/24/2008 9:26:42 AM
FullName : Microsoft.Commerce.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
AppDomainName : /LM/W3SVC/505501826/ROOT-3-128745843865354320
ThreadIdentity : MOJAVENOVCTP\Administrator
WindowsIdentity : MOJAVENOVCTP\Administrator

New CTP may not able to recognize the keyword Validator. The resolution is to open application web.config and delete below tag.

<Validator type="Microsoft.Commerce.Providers.Validators.DefaultValidator, Microsoft.Commerce.Providers, Version=1.0.0.0, Culture=neutral,PublicKeyToken=31bf3856ad364e35" />

Comments
No Comments »
Categories
Troubleshoot
Comments rss Comments rss
Trackback Trackback

Unrecognized attribute ‘language’. Note that attribute names are case-sensitive

ravikanth | December 24, 2008

After installing and configuring Commerce Server 2009 December CTP, when we try to open to default website, you will get an error and the error is Unrecognized attribute ‘language’. Note that attribute names are case-sensitive and the detail error is as follows.

An exception of type ‘System.Configuration.ConfigurationErrorsException’ occurred and was caught.
————————————————————————————————-
12/24/2008 14:48:39
Type : System.Configuration.ConfigurationErrorsException, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Message : Unrecognized attribute ‘language’. Note that attribute names are case-sensitive. (C:\inetpub\wwwroot\wss\VirtualDirectories\1234\ChannelConfiguration.config line 6)
Source : System.Configuration
Help link :
BareMessage : Unrecognized attribute ‘language’. Note that attribute names are case-sensitive.
Filename : C:\inetpub\wwwroot\wss\VirtualDirectories\1234\ChannelConfiguration.config
Line : 6
Errors : System.Configuration.ConfigurationException[]
BareMessage : Unrecognized attribute ‘language’. Note that attribute names are case-sensitive.
Filename : C:\inetpub\wwwroot\wss\VirtualDirectories\1234\ChannelConfiguration.config
Line : 6
Errors : System.Configuration.ConfigurationException[]
Data : System.Collections.ListDictionaryInternal
TargetSite :
Data : System.Collections.ListDictionaryInternal
TargetSite : System.Object EvaluateOne(System.String[], System.Configuration.SectionInput, Boolean, System.Configuration.FactoryRecord, System.Configuration.SectionRecord, System.Object)
Stack Trace :    at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
   at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)
   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
   at System.Web.HttpContext.GetSection(String sectionName)
   at System.Web.Configuration.HttpConfigurationSystem.GetSection(String sectionName)
   at System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String configKey)
   at System.Configuration.ConfigurationManager.GetSection(String sectionName)
   at Microsoft.Commerce.Application.Common.Configuration.ServiceConfiguration.get_Current()
   at Microsoft.Commerce.Broker.OperationService.InitializeOperationContext(CommerceRequest request)
   at Microsoft.Commerce.Broker.OperationService.ProcessRequest(CommerceRequest request)

Additional Info:

MachineName : MOJAVENOVCTP
TimeStamp : 12/24/2008 9:18:39 AM
FullName : Microsoft.Commerce.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
AppDomainName : /LM/W3SVC/505501826/ROOT-1-128745837792321728
ThreadIdentity : MOJAVENOVCTP\Administrator
WindowsIdentity : MOJAVENOVCTP\Administrator

New CTP may not able to recognize the attribute “language”. The resolution is to open application web.config and remove “language”  attribute from below tag.
  <DefaultChannel sitename="DefaultSite">

Comments
No Comments »
Categories
Troubleshoot
Comments rss Comments rss
Trackback Trackback

Which Version of Commerce Server Database I have?

ravikanth | December 24, 2008

The database version will change whenever the site is upgraded to new version or patch. To know, which version of database you are having, you can run below query on MSCS_Admin database.

Select Resources.s_DisplayName, List.* from
( SELECT SR.[i_ResourceID],
        sites.s_Name
      ,[s_PropertyName]
      ,[i_Vartype]
      ,[s_Value]
  FROM ResourceProps RP, SiteResources SR, Sites
Where RP.[i_ResourceID]= SR.[i_ResourceID]
and SR.i_SiteID = Sites.i_SiteID
and s_PropertyName like ‘%version%’ ) list, Resources
where list.i_ResourceID = Resources.i_ResourceID

Comments
No Comments »
Categories
commerce server 2007
Comments rss Comments rss
Trackback Trackback

Error while executing OrderMapping.Exe tool

ravikanth | December 22, 2008

When you try to execute OrderMapping tool as shown below, you may encounter error.

OrderMapping.exe /w c:\inetpub\wwwroot\ShippingCostDemo\web.config

The error is as follows.

Microsoft (R) Commerce Server 2007 Order Mapping Tool
Copyright (C) Microsoft Corporation

One or more errors found during validation:
Error G0002 – Storage mapping file OrderObjectMappings.xml cannot be found

Resolution : Some how orderMapping tool is not able to identify OrderObjectMappings.xml file in the directory where web.config resides but rather it will look into c:\Program Files\Microsoft Commerce Server 2007\Tools directory. The resolution is to copy OrderObjectMappings.xml file into tools directory and execute the OrderMapping.exe tool again.

If you have any custom pipelines and tried to execute Order mapping tool, you may encounter following error.

Microsoft (R) Commerce Server 2007 Order Mapping Tool
Copyright (C) Microsoft Corporation
One or more errors found during validation:

Error G0001 – Assembly ShippingLineItemExtension cannot be loaded:System.IO.FileNotFoundException: Could not load file or assembly ‘ShippingLineItemExtension’ or one of its dependencies. The system cannot find the file specified.
File name: ‘ShippingLineItemExtension’
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)at System.Reflection.Assembly.Load(String assemblyString)at Microsoft.CommerceServer.Internal.Orders.Storage.SchemaMapping.LoadAssemblies(TypeDefinition[] typeDefs, MappingResults results)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

The resolution is to copy pipeline assembly into c:\Program Files\Microsoft Commerce Server 2007\Tools directory

Comments
No Comments »
Categories
Troubleshoot
Comments rss Comments rss
Trackback Trackback

Commerce Server 2009 – December 2008 CTP Now Available

ravikanth | December 19, 2008

The Commerce Server team announced the availability of the Microsoft Commerce Server 2009 – December 2008 CTP, the feature complete pre-release of the next version of Commerce Server.  (These CTP’s were formerly known as Commerce Server 2007 code name “Mojave”.)

Commerce Server 2009 delivers the ability to increase your business reach by making it possible to sell via multiple channels using an out-of-the-box shopping site, SharePoint Commerce Services, and the Multi-Channel Commerce Foundation. The new out-of-the-box shopping site leverages SharePoint Commerce Services, which provides a gallery of ASP.NET 3.5 Web Parts, a comprehensive e-commerce shopping feature-set, and technology integration between Commerce Server and SharePoint technologies. The Multi-Channel Commerce Foundation provides a new unified, extensible run-time programming model for Commerce Server, including new run-time e-commerce capabilities.

Important

Installing this pre-release version of Commerce Server 2009 into a non-production environment is not recommended This release is for evaluation purposes only and is not intended to be used in a production environment.

To download the December CTP ISO, go to the Download Center.

To download the Commerce Server 2009 Installation Guide and the Microsoft Commerce Server 2009 December 2008 CTP Readme, click this link. Follow the instructions in the Installation Guide to install the December CTP.

To download samples of how to use the API, click this link

Comments
2 Comments »
Categories
Commerce Server 2009, What's New
Comments rss Comments rss
Trackback Trackback

« Previous Entries

Sign up for Newsletter


Categories

Quiz

  • Catalog Quiz for Beginners
  • Profile Quiz for Beginners
  • Quiz 1 for Advance Users
  • Quiz for Beginners

Recent Posts

  • Staging Deployment – Security Considerations
  • Pipeline Editor displays registered custom pipeline components as unknown in 64 Bit version.
  • How commerce server staging works
  • Steps to extend payments in Commerce Server 2009
  • Introduction to Commerce Server Staging
  • Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information
  • Commerce server staging throws Remote authorization failed to server. Ensure the service has access to this server.
  • Updated Commerce Server 2009 template pack for SharePoint 2007 released
  • RCXml2Resx.exe tool stops working
  • Commerce Server Profile Importer Tool

Archives

  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008

Tags

add discounts add images to profile Advantages of commerce server approve discounts authentication auto login process automatic user creation basket Brand Management business tools campaign management Catalog catalog import Category commerce server commerce server 2007 commerce server manager Commerce Server SP2 commerce server staging discounts ecommerce Estimation Installation inventory Kanth Koppala marketing system migration error Mojave operation components operation sequence Order subsystem Product profile profile subsystem property metadata purchase order quick checkout Ravi Ravi Kanth site cache refresh starter site tools transactions error Variant
(c) 2009 Commerce Server Blog. All rights Reserved. Articles cannot be reproduced without permission from the author.Write to me at kanth@ravikanth.net if you have any comments, questions, suggestions about this site or would like to send us a tip
About Us | Terms of Use | Disclaimer | Advertise .