HomeHome Product Discus... Product Discus...SmithCartSmithCartUpgrade form Smith Cart 3.87 to 5.14 errorUpgrade form Smith Cart 3.87 to 5.14 error
Previous
 
Next
New Post
9/4/2012 10:28 AM
 
Smith Cart v5.14 DNN v6.2.2
I'm upgrading Smith Cart 3.87 to 5.14 and am unable to get past the error below.
Before upgrading, I deleted all of the Smith Cart tables, stored procedures and the Desktop Modules.
It installed without an error.
Any idea what is causing this error?


An error has occurred. DotNetNuke.Services.Exceptions.PageLoadException: The type initializer for 'Smith.DNN.Modules.BuyNow.DataProvider' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Smith.DNN.Modules.BuyNow.DataProvider' threw an exception. ---> System.InvalidCastException: Unable to cast object of type 'Smith.DNN.Modules.BuyNow.SqlDataProvider' to type 'Smith.DNN.Modules.BuyNow.DataProvider'. at Smith.DNN.Modules.BuyNow.DataProvider.CreateProvider() at Smith.DNN.Modules.BuyNow.DataProvider..cctor() --- End of inner exception stack trace --- at Smith.DNN.Modules.BuyNow.DataProvider.Instance() at Smith.DNN.Modules.BuyNow.RegistrationController.GetCustomer(String login) at Smith.DNN.Modules.BuyNow.ProductsList.SetCustomerInfo() at Smith.DNN.Modules.BuyNow.ProductsList.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
 
New Post
9/4/2012 2:05 PM
 
Error with more details

STACK TRACE bindDtProductList: at Smith.DNN.Modules.BuyNow.DataProvider.Instance() at Smith.DNN.Modules.BuyNow.ProductsController.ListProductByFilter(Int32 PageNum, Int32 Records, String categoryName, String Filter, Int32 tabModuleId, Int32 PortalId, String MySort, String VendorID, String PIDList, Int32 myUserID, Boolean crossPortalShare) in C:\inetpub\wwwroot\DNN615\DesktopModules\Smith.BuyNow\Components\ProductsController.cs:line 246 at Smith.DNN.Modules.BuyNow.ProductsList.bindDtProductList() in C:\inetpub\wwwroot\DNN615\DesktopModules\Smith.BuyNow\ProductsList.ascx.cs:line 560
 
New Post
9/5/2012 2:27 AM
 
Try doing the following to see if it fixes the issue on your site:

1. From the store admin menu, click on the page template button to go into the page template editor and delete all your page templates.

2. In file explorer, navigate to your \portals\[portalid]\smithcart\templates folder

2. Delete all the files in the \portals\[portalid]\smithcart\templates folder

3. Reset iis and restart the application from the dnn host menu

4. Go to product listing page and see if your products are displayed.


Please let us know if the above resolves the issue.

Thanks
 
New Post
9/5/2012 7:38 AM
 
I am unable to get to the store admin menu.
Also, when I select the "Smith Cart Settings" tab, there is a link titled "Load BuyNow Settings".
When I click the link, I receive the following error.

Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: The type initializer for 'Smith.DNN.Modules.BuyNow.DataProvider' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Smith.DNN.Modules.BuyNow.DataProvider' threw an exception. ---> System.InvalidCastException: Unable to cast object of type 'Smith.DNN.Modules.BuyNow.SqlDataProvider' to type 'Smith.DNN.Modules.BuyNow.DataProvider'. at Smith.DNN.Modules.BuyNow.DataProvider.CreateProvider() at Smith.DNN.Modules.BuyNow.DataProvider..cctor() --- End of inner exception stack trace --- at Smith.DNN.Modules.BuyNow.DataProvider.Instance() at Smith.DNN.Modules.BuyNow.ProductsController.GetCountry() at Smith.DNN.Modules.BuyNow.BuyNowSettings.LoadSettings() --- End of inner exception stack trace ---
 
New Post
9/5/2012 10:58 AM
 
I found a folder under app_code called Smith.BuyNow and a tag under <codesubdirectory> <add directoryName="Smith.BuyNow" />, which I deleted.
I looks to be working now.
 
New Post
9/6/2012 7:11 PM
 
Thanks for posting back with an update! Glad to hear this issue has been resolved.

Kind Regards
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartUpgrade form Smith Cart 3.87 to 5.14 errorUpgrade form Smith Cart 3.87 to 5.14 error