Commerce Server Blog

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

Error: StoreObject is not found in the Commerce Server metadata

ravikanth | April 2, 2009

One of my friend was able to unpack csharp site on commerce server 2009 box but when he tries to open the site he was getting following error.

Log Name:      Application
Source:        WCF Service Exception
Date:          3/31/2009 8:52:40 AM
Event ID:      0
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      VPC-WS2K8-BASE
Description:
An exception of type ‘Microsoft.Commerce.Providers.Metadata.MetadataException’ occurred and was caught.
——————————————————————————————————-
03/31/2009 08:52:40
Type : Microsoft.Commerce.Providers.Metadata.MetadataException, Microsoft.Commerce.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Message : Commerce Server class ‘Microsoft.CommerceServer.Runtime.Profiles.Profile’ or its definition ‘StoreObject’ is not found in the Commerce Server metadata.
Source : Microsoft.Commerce.Providers
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Microsoft.Commerce.Providers.Metadata.CommerceServerEntity GetCommerceServerEntity(System.String, System.String)
Stack Trace :    at Microsoft.Commerce.Providers.Metadata.MergedMetadata.GetCommerceServerEntity(String commerceClassName, String commerceDefinitionName)
   at Microsoft.Commerce.Providers.Metadata.MergedMetadata.CreateMergedMetadata(CommerceEntityDelta repositoryСommerceEntityDelta, EntityMappingDelta repositoryEntityMapping)
   at Microsoft.Commerce.Providers.Metadata.MergedMetadata.MergeMetadata(InheritableCollection`1 repositoryMetadata, MetadataCollection`1 commerceServerMetadata)
   at Microsoft.Commerce.Providers.Metadata.MergedMetadataLoader.GetMergedMetadata(String siteChannelKey, OperationCacheDictionary operationCache)
   at Microsoft.Commerce.Providers.Metadata.MergedMetadataLoader.ExecuteQuery(CommerceQueryOperation queryOperation, OperationCacheDictionary operationCache, CommerceQueryOperationResponse response)
   at Microsoft.Commerce.Providers.Components.OperationSequenceComponent.Execute(CommerceOperation operation, OperationCacheDictionary operationCache, CommerceOperationResponse response)
   at Microsoft.Commerce.Broker.OperationSequence.ExecuteComponentTree(List`1 executionTreeList, CommerceOperation operation, OperationCacheDictionary operationCache, CommerceOperationResponse response)
   at Microsoft.Commerce.Broker.OperationSequence.Execute(CommerceOperation operation)
   at Microsoft.Commerce.Broker.MessageHandler.ProcessMessage(String messageHandlerName, CommerceOperation operation)
   at Microsoft.Commerce.Broker.OperationService.InternalProcessRequest(CommerceRequest request)
   at Microsoft.Commerce.Providers.Utility.CommerceEntityMetadata.ExecuteMetadataQuery(MetadataCacheKey cacheKey, String modelName)
   at Microsoft.Commerce.Providers.Utility.CommerceEntityMetadata.<>c__DisplayClass1.<Get>b__0(MetadataCacheKey cacheKey)
   at Microsoft.Commerce.Application.Common.CachedFactory`2.GetOrCreate(TKey key, CreateInstance`2 factory)
   at Microsoft.Commerce.Providers.Utility.CommerceEntityMetadata.Get(String modelName, Nullable`1 commerceArea)
   at Microsoft.Commerce.Providers.Utility.CatalogConfigurationBuilder.GetMetadata(String modelName, EntityMapping& entityMapping, IEnumerable`1& propertyDefinitions, IEnumerable`1& definitionMappings)
   at Microsoft.Commerce.Providers.Utility.CatalogConfigurationBuilder.GetEntityMapping(String modelName)
   at Microsoft.Commerce.Providers.Components.CatalogLoader.Init(CommerceQueryOperation queryOperation, OperationCacheDictionary operationCache, CommerceQueryOperationResponse response)
   at Microsoft.Commerce.Providers.Components.CatalogLoader.ExecuteQuery(CommerceQueryOperation queryOperation, OperationCacheDictionary operationCache, CommerceQueryOperationResponse response)
   at Microsoft.Commerce.Providers.Components.OperationSequenceComponent.Execute(CommerceOperation operation, OperationCacheDictionary operationCache, CommerceOperationResponse response)
   at Microsoft.Commerce.Broker.OperationSequence.ExecuteComponentTree(List`1 executionTreeList, CommerceOperation operation, OperationCacheDictionary operationCache, CommerceOperationResponse response)
   at Microsoft.Commerce.Broker.OperationSequence.Execute(CommerceOperation operation)
   at Microsoft.Commerce.Broker.MessageHandler.ProcessMessage(String messageHandlerName, CommerceOperation operation)
   at Microsoft.Commerce.Broker.OperationService.InternalProcessRequest(CommerceRequest request)
   at Microsoft.Commerce.Broker.OperationService.ProcessRequest(CommerceRequest request)

 

One thing we should keep in mind that CSharp.pub is for CS2007 and as it is it will not work in CS2009 and this pup does not contains information for “Store Object”, “VirtualEarthConfig” & “TargetingContext”. Commerce Server 2009 has provided a separate pub similar to CSharp.pub. the pub name is “MicrosoftCommerceDefaultSiteNoData.pup” or “MicrosoftCommerceDefaultSiteWithSampleData.pup”. The only difference between these two pubs is the first pub imports only schema and the other one imports schema & data.

If you are developing a new asp.net website on top of CS2009, the new pubs will not create asp.net website for you. In that context we can use Csharp.pub file to create CSharp site only. For that open commerce server manager, right click on applications folder in newly created site and select “Add Application”

image

After selecting pub file, from the selected applications, select “CSharpsite” checkbox and get the asp.net site installed.

clip_image001

Categories
Commerce Server 2009, Troubleshoot
Comments rss
Comments rss
Trackback
Trackback

« Import CS2009 Starter pub Error: No content selection context with the name ‘Advertising’ exists for the site ‘MyDefaultSite’ »

Leave a Reply

Click here to cancel reply.

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 .