Moving Local Dev Site to Live Server

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
gdelorey@mitcs.com
Commander (CMDR)
Commander (CMDR)
Posts: 129
Joined: Thu Oct 19, 2006 5:33 pm

Moving Local Dev Site to Live Server

Post by gdelorey@mitcs.com » Tue Aug 25, 2009 8:07 pm

Summary: I am attempting to go live with my AC 7.0.3 store from a local working instance of the site. I installed AC 7.0.3 on my remote live server and successfully connected to the DB. I then followed the instructions for copying files and restoring DB from the following topic: viewtopic.php?f=42&t=8469&p=36335&hilit ... ing#p36335

As soon as I do this and try to visit the store, I get the following server error:

Code: Select all

Server Error in '/' Application.
--------------------------------------------------------------------------------
Method not found: 'CommerceBuilder.Data.Database CommerceBuilder.Configuration.TokenBase.get_Database()'. 
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.MissingMethodException: Method not found: 'CommerceBuilder.Data.Database CommerceBuilder.Configuration.TokenBase.get_Database()'.

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: 

[MissingMethodException: Method not found: 'CommerceBuilder.Data.Database CommerceBuilder.Configuration.TokenBase.get_Database()'.]
   CommerceBuilder.Stores.AuditEventDataSource.CountForStore() +0
   CommerceBuilder.Services.AbleCommerceHttpModule.Init(HttpApplication context) +220
   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

I was sure to copy all files to the live site except the /App_Data/CommerceBuilder.lic, /App_Data/database.config, and /App_Data/Encryption.config files. I'm not sure if this would make a difference, but originally I installed 7.0.0 locally and used the upgrade tools and instructions to get it up to 7.0.3. On my live server today, I installed the 7.0.3 final.

Does anyone have insight as to why this is happening?

Thanks,

: Greg

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Moving Local Dev Site to Live Server

Post by mazhar » Wed Aug 26, 2009 12:19 am

It seems that some of website code is still attempting to use old code, or may be you have some customization. The problem you mentioned above is due to a change from 7.0.0 to 7.0.2 and above regarding how data base is accessed. Make sure upgrade was successful. Also you may have some custom component or customization coded for 7.0.0 that needs to be upgraded to 7.0.3.

gdelorey@mitcs.com
Commander (CMDR)
Commander (CMDR)
Posts: 129
Joined: Thu Oct 19, 2006 5:33 pm

Re: Moving Local Dev Site to Live Server

Post by gdelorey@mitcs.com » Wed Aug 26, 2009 6:08 am

Hi Mazhar -

I'll take a look; the only customizations done have been minor changes to ConLib files I believe. I'll try setting the local site to use standard ConLib files instead of the custom ones, and re-make the changes once I get the site working. Guess I'm a bit surprised since I did upgrade from 7.0.0 to 7.0.3 following all of the outlined steps and haven't experienced issues like this on the local dev box...

Thanks!

: Greg

Post Reply