an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > Error on test site (with no key)
Last Post 11/9/2010 1:24:28 PM By Bahram. 3 replies.
11/9/2010 12:15:56 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Error on test site (with no key)
I am using Test site without problem ( A popup message of no license key appears) , but for a user with admin role, this error halts prgram from proceeding to checkout :
 

Server Error in '/eStore' Application.
--------------------------------------------------------------------------------

Could not find file 'D:\Windows\SysWOW64\inetsrv\DotshoppingcartMaster.key'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not find file 'D:\Windows\SysWOW64\inetsrv\DotshoppingcartMaster.key'.

Source Error:


Line 44:                 DSC.User user = DSC.User.GetUser(Page.User.Identity.Name);
Line 45:                 adiBilling.InitialAddressToDisplay = user.Address;
Line 46:                 List<CreditCard> creditCards = CreditCard.Get();
Line 47:                 if ((null != creditCards) && (creditCards.Count > 0)) {
Line 48:                     PopulateEmptySaveAs(creditCards);
 

Source File: d:\AcrEStore_4.0\Web\Store\SelectCreditcardPaymentMethod.ascx.cs    Line: 46

Stack Trace:


[FileNotFoundException: Could not find file 'D:\Windows\SysWOW64\inetsrv\DotshoppingcartMaster.key'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +305
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +1162
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +66
   Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.KeyManager.Read(String protectedKeyFileName, DataProtectionScope dpapiProtectionScope) +115
   Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Configuration.SymmetricAlgorithmProviderAssembler.Assemble(IBuilderContext context, SymmetricProviderData objectConfiguration, IConfigurationSource configurationSource, ConfigurationReflectionCache reflectionCache) +93
   Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerBasedObjectFactory`2.Create(IBuilderContext context, TConfiguration objectConfiguration, IConfigurationSource configurationSource, ConfigurationReflectionCache reflectionCache) +78
   Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerBasedCustomFactory`2.Create(IBuilderContext context, String name, IConfigurationSource configurationSource, ConfigurationReflectionCache reflectionCache) +72
   Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerBasedCustomFactory`2.CreateObject(IBuilderContext context, String name, IConfigurationSource configurationSource, ConfigurationReflectionCache reflectionCache) +17
   Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfiguredObjectStrategy.PreBuildUp(IBuilderContext context) +109
   Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +97

[BuildFailedException: The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.ISymmetricCryptoProvider, RijndaelManaged]) failed: Could not find file 'D:\Windows\SysWOW64\inetsrv\DotshoppingcartMaster.key'. (Strategy type ConfiguredObjectStrategy, index 2)]
   Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +275
   Microsoft.Practices.ObjectBuilder2.Builder.BuildUp(IReadWriteLocator locator, ILifetimeContainer lifetime, IPolicyList policies, IStrategyChain strategies, Object buildKey, Object existing) +59
   Microsoft.Practices.ObjectBuilder2.Builder.BuildUp(IReadWriteLocator locator, ILifetimeContainer lifetime, IPolicyList policies, IStrategyChain strategies, Object buildKey, Object existing) +45
   Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory.BuildUp(IReadWriteLocator locator, ILifetimeContainer lifetimeContainer, String id, IConfigurationSource configurationSource) +270
   Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory.BuildUp(String id, IConfigurationSource configurationSource) +47
   Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.NameTypeFactoryBase`1.Create(String name) +52
   Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.GetSymmetricCryptoProvider(String symmetricInstance) +93
   Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.DecryptSymmetric(String symmetricInstance, String ciphertextBase64) +11
   DotShoppingCart.Commercial.Core.CreditCard.LoadFromDataRow(DataRow row) +159
   DotShoppingCart.Commercial.Base.RecordList`1..ctor(IEnumerable rows) +169
   DotShoppingCart.Commercial.Base.RecordList`1..ctor(DataTable dt) +10
   DotShoppingCart.Commercial.Core.CreditCard.Get(String host, String userName) +112
   DotShoppingCart.Commercial.Core.CreditCard.Get() +25
   Controls_SelectCreditcardPaymentMethod.Page_Load(Object sender, EventArgs e) in d:\AcrEStore_4.0\Web\Store\SelectCreditcardPaymentMethod.ascx.cs:46
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

 

11/9/2010 12:32:46 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: Error on test site (with no key)
 Also this user can not go to MyAccounts. same error happens.
 
Thanks,
11/9/2010 12:49:50 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Error on test site (with no key)
Do our site search for "DotshoppingcartMaster.key'".
DotShoppingCart Staff
11/9/2010 1:24:28 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: Error on test site (with no key)
 The test site works for other users or main admin without a problem. Does it relates to MasterKey anyway?