Critical Error: Data Store Unavailable

The data store used by eCommerce Framework cannot be opened.


Resolution:
Please ensure that your data service is online and running and that the connection string in your web.config file is correct and make sure the key specified by
ConnnectionStringName exists in connectionStrings section.

To configure your connection string:

1. Open [Install Location of eCommerce Framework]\PublicStore\web.config

2. Within web.config find the configuration section (highlighted) below:

<configuration>
   <ClientConfig>
        <Settings ConnectionStringName="EcfSqlConnection" SubscriptionId="{SUBSCRIPTION_GUID}" 
CartKey="ShoppingCartKey" AffiliateKey="AffiliateKey" Expires="24"></Settings> 
   </ClientConfig> 
   ...

   <connectionStrings>
        <add name="EcfSqlConnection" connectionString="{connection string to your database}"/>
   </connectionStrings>
</configuration>
Error Message:
System.Configuration.Provider.ProviderException: ImageServiceProvider Failed. Check the writes permissions to the following directory: D:\ECFsites\BT\BT_TB\Website\PublicStore\images\temp at Mediachase.eCF.Providers.FileImageProvider.SaveImage(String name, Image image, String contentType) in C:\devlocal\Websites\BT_TB_ECF\Mediachase_4_1_2\SupportProjects\Providers\ImageServiceProvider\FileImageProvider.cs:line 372 at Mediachase.eCF.Providers.FileImageProvider.SaveImage(String name, Byte[] image, String contentType) in C:\devlocal\Websites\BT_TB_ECF\Mediachase_4_1_2\SupportProjects\Providers\ImageServiceProvider\FileImageProvider.cs:line 325 at Mediachase.eCF.Providers.ImageService.SaveImage(String name, Byte[] image, String contentType) in C:\devlocal\Websites\BT_TB_ECF\Mediachase_4_1_2\SupportProjects\Providers\ImageServiceProvider\ImageService.cs:line 96 at Mediachase.eCF.BusLayer.Common.Util.Helper.GetCachedImageUrl(ObjectMetaField metafield) in C:\devlocal\Websites\BT_TB_ECF\Mediachase_4_1_2\BusinessLayer\BusinessLibrary\Common\Util\Helper.cs:line 127 at Mediachase.eCF.BusFacade.Engine.ServicePipeHelper.PopulateMetaAttributes(ArrayList attributes, ArrayList files, ArrayList images, ObjectMetaField[] fields) in C:\devlocal\Websites\BT_TB_ECF\Mediachase_4_1_2\BusinessLayer\FacadeLibrary\Engine\ServicePipeHelper.cs:line 845 at Mediachase.eCF.BusFacade.Filters.Products.MetaAttributesContentFilter.CreateItem(Item& item, IMetaObject metaObject, String[] responseGroup, IList`1& errorArray) in C:\devlocal\Websites\BT_TB_ECF\Mediachase_4_1_2\BusinessLayer\FacadeLibrary\Filters\Product\MetaAttributesContentFilter.cs:line 111 at Mediachase.eCF.BusFacade.ContentFilters.PopulateProductItem(Item& productItem, Product product, String currencyCode, String[] responseGroup, IList`1& errorArray) in C:\devlocal\Websites\BT_TB_ECF\Mediachase_4_1_2\BusinessLayer\FacadeLibrary\ContentFilters.cs:line 42 at Mediachase.eCF.BusFacade.Filters.Products.ProductSearchContentFilter.CreateProductItemsBySearch(SiteSearchRequest request, IList`1& errorArray) in C:\devlocal\Websites\BT_TB_ECF\Mediachase_4_1_2\BusinessLayer\FacadeLibrary\Filters\Product\ProductSearchContentFilter.cs:line 74 at Mediachase.eCF.BusFacade.ContentFilters.PopulateProductSearchItem(SiteSearchRequest request, IList`1& errorArray) in C:\devlocal\Websites\BT_TB_ECF\Mediachase_4_1_2\BusinessLayer\FacadeLibrary\ContentFilters.cs:line 66 at Mediachase.eCF.BusFacade.SiteManager.CreateProductItemsBySearch(SiteSearchRequest request, IList`1& errorArray) in C:\devlocal\Websites\BT_TB_ECF\Mediachase_4_1_2\BusinessLayer\FacadeLibrary\SiteManager.cs:line 312 at Mediachase.eCF.BusFacade.SiteManager.SiteSearch(SiteSearch search) in C:\devlocal\Websites\BT_TB_ECF\Mediachase_4_1_2\BusinessLayer\FacadeLibrary\SiteManager.cs:line 263 at Mediachase.eCF.ClientLib2.ClientCatalog.SearchProducts(String searchIndex, String keywords, String[] searchFields, KeyValueAttribute[] productFilter, KeyValueAttribute[] skuFilter, Int32 categoryid, Boolean incSubCategoryNodes, Decimal minprice, Decimal maxprice, String sort, Boolean sortOrder, String wherest, Int32 itemsPerPage, Int32 currentPage, String[] responseGroup, Int32& totalRecords, ErrorsError[]& errors) in C:\devlocal\Websites\BT_TB_ECF\Mediachase_4_1_2\PublicLayer\ClientLibrary\ClientCatalog.cs:line 661

  For more information visit http://www.mediachase.com.