We've been developing our AC7 site on our development server and now need to copy it to our production server.
Here's the steps I've done so far:
1. Got the new license key
2. Created a new empty database
3. Completed a new installation of AC7 with the new license key and the new empty database. New target installation is working.
4. Backed up development database -- I did this using our hosting provider's browser-based backup tool (MyLittleBackup).
5. Copied all files from development location to production location except for:
/web.config
/app_data/commercebuilder.lic
/app_data/database.config
/app_data/encryption.config
/app_data/ablecommerce.config
/app_data/AbleCommerce.mdf
/app_data/AbleCommerce_log.ldf
6. Confirmed new installation on production is still working
7. Created a new database container on production. Created a new user for db. I did this with my shared hosting provider's Helm control panel interface.
8. Restored backup of the development database to the new db container on production using hosting provider's tool (MyLittleBackup).
9. Logged into AC7 admin and changed the connection string to point to the new database container, using the login info for the new user I created.
At this point, I get the following error:
Code: Select all
Server Error in '/' Application.
Invalid object name 'ac_Stores'.
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.Data.SqlClient.SqlException: Invalid object name 'ac_Stores'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException (0x80131904): Invalid object name 'ac_Stores'.]
CommerceBuilder.Common.Token.get_Instance() +463
CommerceBuilder.Stores.AuditEventDataSource.CountForStore() +9
CommerceBuilder.Services.AbleCommerceHttpModule.Init(HttpApplication context) +230
System.Web.HttpApplication.InitModulesCommon() +66
System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +1006
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +259
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +114
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +350
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
I don't know if that's even the issue, but it seems like the most obvious discrepancy I can find right now.
I dead in the water here. Does someone have some insight?
Thanks.