Today, I got latest code from TFS and setup my application. When I execute the application I got wired error.

An exception of type ‘Microsoft.Commerce.Providers.Exceptions.ContextCreationException’ occurred and was caught.
————————————————————————————————-
Type : Microsoft.Commerce.Providers.Exceptions.ContextCreationException, Microsoft.Commerce.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Message : Configuration specifies useSharedCommerceContexts=true. Contexts cannot be requested for other Commerce Server sites.
Source : Microsoft.Commerce.Providers
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Microsoft.CommerceServer.Catalog.CatalogContext get_Item(System.String)
Stack Trace : at Microsoft.Commerce.Providers.ContextProviders.Shared.CatalogContextProvider.get_Item(String siteName)
at Microsoft.Commerce.Providers.Metadata.CatalogMetadataProvider..ctor(String siteName)
at Microsoft.Commerce.Providers.Metadata.CatalogMetadataLoader.GetSubsystemMetadata(String siteName)
………………………….
………………………….
………………………….

I have only one commerce server site configured in my application and from frontend configuration, I can’t connect to another commerce server in different machine (currently CS and MOSS are hug and can’t work from different machines). After troubleshooting further, I found that it is due to the case sensitive of site name in channelconfiguration file. The CS site created on my desktop is “SiteName” and the site name in channel configuration file is “Sitename”. After changing the site name, the application started working fine.

Even though the fix is simple but would like to keep it in my blog so that fellow developers (like me) will not waste their time much in fixing this simple issue.

Related Articles


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


One Response to “Troubleshoot: Configuration specifies useSharedCommerceContexts=true. Contexts cannot be requested for other Commerce Server sites.”

Leave a Reply

Follow me on Google+
Couldn't get data from google+
Sign up for Newsletter