Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Password changed when deployPassword changed when deploy
Previous
 
Next
New Post
3/10/2008 6:59 PM
 

Hi ,

I develop the website by attach the database on sql express. the connection string is :
Data Source=.\SQLEXPRESS;Database=DNNData;Integrated Security=True
I have set the password for administrator (admin) and hostmanager(host)

when I deploy it to other machine, I using the attachfile mode , the connection string is :
Data Source=.\SQLExpress;AttachDbFilename=|DataDirectory|Database.mdf;Integrated Security=True;User Instance=True
the website works, but the I cannot login with the exists users, I can create new user and login with new user.
it works well on the new computer if I change the connection string back to old.

Please if anyone can help me how to keep the exists users when change the connection string .or how to create new admin or host user when change the string.

 
New Post
3/10/2008 8:47 PM
 

Gordon,

The case may be that you are using a different machine key between the different databases (value is specified in your web.config) -- user passwords are encrypted and decrypted with this key and it much match the one that was used when your users were created.

Have you set up a site and then replaced the web.config file with a new one without setting the machine key to match the old machine key?

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
3/17/2008 1:30 AM
 

oops, that is so quick answer, 
Thank you very much Ian.

I am sorry that I have only receive the email that tolds me my post has been approved, but I did not receive the inform for your reply. 
and I waiting and check it today .

you are right , but not all , 
I am really just copy all files to the deploy machine when I do deploy , But it works well if I did not change the connectin string.

and if I change the connection string and change the attach way for database, it does not work even In same computer.

anyway, 
the problem is fixed by crack.
I have change the connection string, then , create a new user, 
then , open the database by other tools and change the password and passwordsalt fied for admininistrato and host user with the value from new created user.
then , login to host and change the password.

to be frank, I think this is quite a silly way. it is quite welcome if you can show me a better way

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Password changed when deployPassword changed when deploy


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out