Archive for December 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" />

Related Articles


If you like this post, please click on our sponsor advertisement.


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">

Related Articles


If you like this post, please click on our sponsor advertisement.


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

Related Articles


If you like this post, please click on our sponsor advertisement.


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

Related Articles


If you like this post, please click on our sponsor advertisement.


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

Related Articles


If you like this post, please click on our sponsor advertisement.


Follow me on Google+
Add to circles

In 0 people's circles

Sign up for Newsletter