Admin password


https://forum.kartris.com/Topic100.aspx
Print Topic | Close Window

By saturation - Sat 11 Sep 2010
Yes, I know, I was forewarned in the guide not to forget the password.   Unfortunately, I downloaded the data tool and I'm getting a "web.config" not valid message from it when I try to reset the password after picking the file.

Is there another way to get around this?   Also, I have a sandbox install, so if that doesn't work, I can reinstall, but do I need to wipe out all files or just the IIS application?
By Paul - Sat 11 Sep 2010
You can try the following:

Open up the web.config in a text editor and find this tag:

<globalization resourceProviderFactoryType="Kartris.SqlResourceProviderFactory" />


You may actually find two, one commented out, and the other not.

Make sure it (or both, if there are two) is commented out, like this:

<!-- <globalization resourceProviderFactoryType="Kartris.SqlResourceProviderFactory" />-->


Upload this web.config and then refresh the site in a browser. You should find it sends you to the install routine again.

At the db section, it should find the db and recognize that the data is already there. So click to use the existing db. But it should still generate a new admin password for you. Make sure you note it down carefully!
By saturation - Fri 17 Sep 2010
I actually just completely overwrote the web.config file and then the install reran.  Since it's a development install, I just recreated a different database.   Thanks!
By Paul - Fri 17 Sep 2010
Actually I had a similar issue recently and found that commenting the globalization tag (see above) and also changing the db connection string to a db path that does not exist fires the install routine.

At the point this asks for db details, give the actual correct details of your existing db.

The install routine will recognize that the db already exists and offer that you keep this db.

But it will still go through the stage of creating a new admin password for the admin account.

So it's a simple way to reset your store pw if you do lock yourself out.
By saturation - Tue 1 Feb 2011
Ok, now that I have rerun the install and written down as well as copied the password out, it's not letting me login to the backend with the admin account.   Just to be sure I wasn't typing it wrong, I re-ran the install several times and copied them out and wrote them down, and it's still telling me the username and password were not recognised.   Any ideas about this?
By saturation - Tue 1 Feb 2011
Got this one, too.    For some reason my web.config file wasn't being written to, and I noticed the hash salt key had no value in it.   After I pasted that, it fixed the issue.  I can get into the admin area now.