Hi Folks,
I'm just completing an upgrade of BVC5 SP3.2 --> SP7.3 using the automatic upgrade tool. As far as I know the upgrader patched the files correctly. The SqlPatch.aspx kept timing out mid way through (and resulted in a DB with about half the updates made) so I rolled the DB back to it's pre-updated state and ran each of these SQL scripts on the DB through Management Studio:
BVAdmin/BVSql/SP4 (DataScript.sql and SchemaScript.sql)
BVAdmin/BVSql/SP5 (DataScript.sql and SchemaScript.sql)
BVAdmin/BVSql/SP6 (DataScript.sql and SchemaScript.sql)
BVAdmin/BVSql/SP7 (DataScript.sql and SchemaScript.sql)
I also checked the workflow configuration based on Justin's advice to another user on manually upgrading, they're all set correctly.
I spun it up and all seemed to be fine. The site shows that it's running 5.7.3 and it runs fine. The only problem is that when I try to complete an order I can the error message shown below.
I thought the problem would be the path to the AES keys but whilst I checked the path and it looked fine, when I actually look for the keys bvkeys.config (in my bin folder) the config file is not there.
I also noticed that although the 'Create New Store' exe has the option to create keys when you build a new store (which unfortunately I can't do becasue my SQL server does not have the correct collation to allow me to run) it does not seem to create any keys during the upgrade process so I might just be missing keys.
Any thoughts on how I can make some keys (if that's all that's required) or is there more to it (do they need to be inserted into the DB as well or something)?
As ever any help would be greatly appreciated.
Thanks, Matt
Code:
[b]BVSoftware.Cryptography.AesEncryption: Index was outside the bounds of the array.[/b]
ArgumentException: BVSoftware.Cryptography.AesEncryption: Index was outside the bounds of the array.
BVSoftware.Cryptography.AesEncryption.Encode(String message, String key) in c:\workspaces\cupertino\bvcommerce\Main\App\source\BVSoftware.Cryptography\AesEncryption.cs:44
BVSoftware.Bvc5.Core.Utilities.Cryptography.PciEncryption.Encode(String plainText, String salt) in c:\workspaces\cupertino\bvcommerce\Main\App\source\BVSoftware.Bvc5.Core\Utilities\Cryptography\PciEncryption.vb:54
BVSoftware.Bvc5.Core.Orders.Mapper.AddParametersToRequest(OrderPayment n, DataRequest request) in c:\workspaces\cupertino\bvcommerce\Main\App\source\BVSoftware.Bvc5.Core\Orders\OrderPayment.vb:412
BVSoftware.Bvc5.Core.Orders.Mapper.Insert(OrderPayment n) in c:\workspaces\cupertino\bvcommerce\Main\App\source\BVSoftware.Bvc5.Core\Orders\OrderPayment.vb:397
BVSoftware.Bvc5.Core.Orders.Order.AddPayment(OrderPayment op) in c:\workspaces\cupertino\bvcommerce\Main\App\source\BVSoftware.Bvc5.Core\Orders\Order.vb:855
BVModules_Controls_Payment.SavePaymentInfo(Order o) +795
BVModules_Checkouts_One_Page_Checkout_Checkout.btnSubmit_Click(Object sender, ImageClickEventArgs e) +316
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +108
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +118
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)