In the process of trying to run my development copy of the shop (on localhost) I managed to enter the wrong licence key and get redirected to the wrong store URL. I deleted the key and went back to localhost/Install/Updatekey.aspx and entered the correct key, but the store is still forwarding to the old key's URL.
I'm a bit stuck now with what else I need to change... Any help would be greatly appreciated.
Entered wrong licence key, can't change
-
- Ensign (ENS)
- Posts: 15
- Joined: Mon Oct 22, 2012 4:25 pm
Re: Entered wrong licence key, can't change
Hi b3n,
try to clear the cache of your browser also can you navigate to this page Store/Admin/Store/Security/Default.aspx if yes you can update the store url over there.
try to clear the cache of your browser also can you navigate to this page Store/Admin/Store/Security/Default.aspx if yes you can update the store url over there.
Re: Entered wrong licence key, can't change
Thanks for the pointers, I've double checked the cache and it's definitely not that (tried another browser too) and I can't navigate to that URL unfortunately because the shop uses a modified log in process which authenticates against an external source. This means the admin login form doesn't work. Where in the database should I be looking to update the URL?
Re: Entered wrong licence key, can't change
The StoreURL is in the ac_StoreSettings table. A query like this will update it:
Code: Select all
update ac_StoreSettings set FieldValue = 'http://www.mynewdomain.com' where FieldName = 'Store_StoreUrl'
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: Entered wrong licence key, can't change
Fixing the database might not help if the license is forcing redirection. You do have two options.
#1) delete the file App_Data/CommerceBuilder.lic
This is the license file. If it's missing the software will ask you to update the key on the next visit. That will give you an opportunity to enter the correct key.
#2) edit the file App_Data/ablecommerce.config and enable demo mode
Somewhere inside the <application ... > tag you can add the attribute demoMode="true". This will prevent the domain enforcement from taking place long enough for you to log in and fix the key.
#1) delete the file App_Data/CommerceBuilder.lic
This is the license file. If it's missing the software will ask you to update the key on the next visit. That will give you an opportunity to enter the correct key.
#2) edit the file App_Data/ablecommerce.config and enable demo mode
Somewhere inside the <application ... > tag you can add the attribute demoMode="true". This will prevent the domain enforcement from taking place long enough for you to log in and fix the key.
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.