# Error When Installing

**URL:** <https://forums.visigo.com/t/error-when-installing/519>\
**Category:** SharePoint FBA Pack\
**Tags:** sharepoint2010, codeplex\
**Created:** [June 3, 2011, 1:34pm UTC](https://forums.visigo.com/t/error-when-installing/519 "2011-06-03T13:34:56Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmack523](https://forums.visigo.com/letter_avatar_proxy/v4/letter/g/7cd45c/32.png) [@gmack523](https://forums.visigo.com/u/gmack523)\
**Post date:** [June 3, 2011, 1:34pm UTC](https://forums.visigo.com/t/error-when-installing/519/1 "2011-06-03T13:34:56Z")

</div>

Hello,

&nbsp; I am receiving the following when I try to install the web part:

&nbsp;

PS C:\Users\Administrator\desktop\SharePoint 2010 FBA Pack\> ./deploy https://myservername

Solution not installed

Going to add solution  
Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SolutionId &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Deployed---- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ---------- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; --------visigo.sharepoint.formsbase... 956715d5-f34c-4b00-bfb7-8c35d5fa0f62 FalseGoing to install solution to all web applicationsInstall-SPSolution : Admin SVC must be running in order to create deployment timer job.At C:\Users\Administrator\desktop\SharePoint 2010 FBA Pack\Deploy.ps1:50 char:19+ Install-SPSolution \<\<\<\< &nbsp;-identity $solutionName -allwebapplications -GACDeployment&nbsp; &nbsp; + CategoryInfo &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: InvalidData: (Microsoft.Share...InstallSolution:SPCmdletInstallSolution) [Install-SPSolu&nbsp; &nbsp;tion], SPCmdletException&nbsp; &nbsp; + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletInstallSolution  
Waiting for job to finish

Waiting to finish job solution-deployment-visigo.sharepoint.formsbasedauthentication.wsp-0..............................

&nbsp;

The waiting portion just continues and the web part is never installed. &nbsp;Could you please assist me? &nbsp;I think that this web part pack is an awesome idea, I just wish that I could get it to work.

&nbsp;

Kind Regards,

Gerald

---

<div class="post-metadata">

**Author:** ![ccoulson](https://forums.visigo.com/user_avatar/forums.visigo.com/ccoulson/32/6_2.png) [@ccoulson](https://forums.visigo.com/u/ccoulson)\
**Post date:** [June 3, 2011, 4:43pm UTC](https://forums.visigo.com/t/error-when-installing/519/2 "2011-06-03T16:43:33Z")

</div>

From the error it sounds like the SharePoint Administration or maybe SharePoint Timer service isn't running, so i'd check that first and make sure those are running and then try to deploy again. &nbsp;Also, make sure that you have the latest version (1.02) - the first release did have a bug where it would wait forever in some circumstances. If you continue to have problems, try a manual deploy:

[http://technet.microsoft.com/en-us/library/cc262995.aspx](http://technet.microsoft.com/en-us/library/cc262995.aspx)

---

<div class="post-metadata">

**Author:** ![gmack523](https://forums.visigo.com/letter_avatar_proxy/v4/letter/g/7cd45c/32.png) [@gmack523](https://forums.visigo.com/u/gmack523)\
**Post date:** [June 3, 2011, 5:58pm UTC](https://forums.visigo.com/t/error-when-installing/519/3 "2011-06-03T17:58:32Z")

</div>

Thank you! &nbsp;I thought that I had everything all set, however, it appears as though the SharePoint Administration service was set to manual for some reason. &nbsp;Everything installed successfully. &nbsp;Thank you again!

---

<div class="post-metadata">

**Author:** ![gmack523](https://forums.visigo.com/letter_avatar_proxy/v4/letter/g/7cd45c/32.png) [@gmack523](https://forums.visigo.com/u/gmack523)\
**Post date:** [June 3, 2011, 5:38pm UTC](https://forums.visigo.com/t/error-when-installing/519/4 "2011-06-03T17:38:46Z")

</div>

Just a quick question in regards to the password change . . . is it possible to set complexity requirements for password changes?

---

<div class="post-metadata">

**Author:** ![ccoulson](https://forums.visigo.com/user_avatar/forums.visigo.com/ccoulson/32/6_2.png) [@ccoulson](https://forums.visigo.com/u/ccoulson)\
**Post date:** [June 3, 2011, 5:43pm UTC](https://forums.visigo.com/t/error-when-installing/519/5 "2011-06-03T17:43:39Z")

</div>

You can set the complexity in your SQLMembershipProvider web.config entry:

[http://msdn.microsoft.com/en-us/library/system.web.security.sqlmembershipprovider.aspx](http://msdn.microsoft.com/en-us/library/system.web.security.sqlmembershipprovider.aspx)

---

<div class="post-metadata">

**Author:** ![gmack523](https://forums.visigo.com/letter_avatar_proxy/v4/letter/g/7cd45c/32.png) [@gmack523](https://forums.visigo.com/u/gmack523)\
**Post date:** [June 7, 2011, 5:50pm UTC](https://forums.visigo.com/t/error-when-installing/519/6 "2011-06-07T17:50:09Z")

</div>

Thank you. &nbsp;You are the best! &nbsp;Do you think that you could possibly tell me what I'm doing wrong in the following instance; I try to set the&nbsp;

maxInvalidPasswordAttempts="3" and the passwordAttemptWindow="10" . . . . what happens is that the user will incorrectly input their password three times and then they wait 10min, however, the user is not able to login even after waiting 15min or more . . . I have no idea why this is.

---

<div class="post-metadata">

**Author:** ![ccoulson](https://forums.visigo.com/user_avatar/forums.visigo.com/ccoulson/32/6_2.png) [@ccoulson](https://forums.visigo.com/u/ccoulson)\
**Post date:** [June 7, 2011, 5:58pm UTC](https://forums.visigo.com/t/error-when-installing/519/7 "2011-06-07T17:58:59Z")

</div>

Once an account gets locked out an administrator has to manually unlock it, it doesn't reset after so many minutes. &nbsp;The PasswordAttemptWindow is the window of time in which the max # of password attempts must occur to lock the user out. &nbsp;You can see more info here:

[http://msdn.microsoft.com/en-us/library/system.web.security.membership.passwordattemptwindow(v=vs.80).aspx](http://msdn.microsoft.com/en-us/library/system.web.security.membership.passwordattemptwindow(v=vs.80).aspx)

---

<div class="post-metadata">

**Author:** ![gmack523](https://forums.visigo.com/letter_avatar_proxy/v4/letter/g/7cd45c/32.png) [@gmack523](https://forums.visigo.com/u/gmack523)\
**Post date:** [June 7, 2011, 6:00pm UTC](https://forums.visigo.com/t/error-when-installing/519/8 "2011-06-07T18:00:41Z")

</div>

That has greatly helped my understanding. &nbsp;Thank you!

Now, I just don't know how to go about unlocking an account once it has been locked.

---

<div class="post-metadata">

**Author:** ![ccoulson](https://forums.visigo.com/user_avatar/forums.visigo.com/ccoulson/32/6_2.png) [@ccoulson](https://forums.visigo.com/u/ccoulson)\
**Post date:** [June 7, 2011, 6:09pm UTC](https://forums.visigo.com/t/error-when-installing/519/9 "2011-06-07T18:09:03Z")

</div>

Unfortunately we don't have that feature in the FBA Pack yet. &nbsp;I've always done it right through SQL Server, but I know that's not a good solution. &nbsp;Add a feature request in the Issue Tracker and i'll consider adding it in a future release.

---

<div class="post-metadata">

**Author:** ![gmack523](https://forums.visigo.com/letter_avatar_proxy/v4/letter/g/7cd45c/32.png) [@gmack523](https://forums.visigo.com/u/gmack523)\
**Post date:** [June 7, 2011, 6:10pm UTC](https://forums.visigo.com/t/error-when-installing/519/10 "2011-06-07T18:10:52Z")

</div>

Thank you. &nbsp;How would you do it via SQL Server?

I will submit this to the Issue Tracker as you have stated.

---

<div class="post-metadata">

**Author:** ![ccoulson](https://forums.visigo.com/user_avatar/forums.visigo.com/ccoulson/32/6_2.png) [@ccoulson](https://forums.visigo.com/u/ccoulson)\
**Post date:** [June 7, 2011, 6:15pm UTC](https://forums.visigo.com/t/error-when-installing/519/11 "2011-06-07T18:15:07Z")

</div>

For a single user:

update aspnet\_membership

set isLockedOut = 0

where userid = 'theuserid'

For all users:

update aspnet\_membership

set isLockedOut = 0

---

<div class="post-metadata">

**Author:** ![gmack523](https://forums.visigo.com/letter_avatar_proxy/v4/letter/g/7cd45c/32.png) [@gmack523](https://forums.visigo.com/u/gmack523)\
**Post date:** [June 7, 2011, 7:31pm UTC](https://forums.visigo.com/t/error-when-installing/519/12 "2011-06-07T19:31:40Z")

</div>

Thank you again for your help, however, I am receiving the following error:

&nbsp;

Msg 207, Level 16, State 1, Line 1

Invalid column name 'theuserIamtryingtounlock'

---

<div class="post-metadata">

**Author:** ![ccoulson](https://forums.visigo.com/user_avatar/forums.visigo.com/ccoulson/32/6_2.png) [@ccoulson](https://forums.visigo.com/u/ccoulson)\
**Post date:** [June 7, 2011, 7:43pm UTC](https://forums.visigo.com/t/error-when-installing/519/13 "2011-06-07T19:43:43Z")

</div>

It sounds like there's an error in the sql you're writing. &nbsp;Post the full sql you're running and i'll take a look.

Here's a real example of the exact syntax for a single user:

&nbsp;

update aspnet\_membership

set isLockedOut = 0

where userid = '01CB68C4-25D9-4342-B926-A211DBD2BDD9'

&nbsp;

To get the userid, you have to look it up from the aspnet\_users table like this:

select UserId

from aspnet\_Users

where UserName = 'ccoulson'

&nbsp;

Alternatively you can put it all together like so:

update aspnet\_membership

set isLockedOut = 0

from aspnet\_Membership join aspnet\_Users on aspnet\_membership.userid = aspnet\_users.UserId

where UserName = 'ccoulson'

&nbsp;

And, probably even easier, I just noticed that the membership database has a built in stored procedure for doing it, so you could just run:

exec aspnet\_Membership\_UnlockUser '/','ccoulson'

---

<div class="post-metadata">

**Author:** ![gmack523](https://forums.visigo.com/letter_avatar_proxy/v4/letter/g/7cd45c/32.png) [@gmack523](https://forums.visigo.com/u/gmack523)\
**Post date:** [June 7, 2011, 8:00pm UTC](https://forums.visigo.com/t/error-when-installing/519/14 "2011-06-07T20:00:08Z")

</div>

You are awesome. &nbsp;Can you tell I'm at the end of a project? LOL &nbsp;It slipped my mind that the user wouldn't be stored as their username but rather a GUID, that was my mistake.&nbsp;

You have been an incredible amount of help. &nbsp;Thank you so much.

---

<div class="post-metadata">

**Author:** ![gmack523](https://forums.visigo.com/letter_avatar_proxy/v4/letter/g/7cd45c/32.png) [@gmack523](https://forums.visigo.com/u/gmack523)\
**Post date:** [June 13, 2011, 6:16pm UTC](https://forums.visigo.com/t/error-when-installing/519/15 "2011-06-13T18:16:13Z")

</div>

Do you know the SQL Query that will return a users password from the aspnetdb? &nbsp;Something similiar to what you posted for unlocking a user's account?

exec aspnet\_Membership\_UnlockUser '/','ccoulson'

&nbsp;

Thank You in Advance!

---

<div class="post-metadata">

**Author:** ![ccoulson](https://forums.visigo.com/user_avatar/forums.visigo.com/ccoulson/32/6_2.png) [@ccoulson](https://forums.visigo.com/u/ccoulson)\
**Post date:** [June 14, 2011, 12:52am UTC](https://forums.visigo.com/t/error-when-installing/519/16 "2011-06-14T00:52:03Z")

</div>

exec aspnet\_membership\_getpasswordwithformat '/', 'ccoulson',null,null

The password is the first column returned, the password format is the 2nd. &nbsp;Note that you'll only be able to retrieve the ACTUAL users password if the format is CLEAR (0). If it's hashed (1) or Encrypted (2), the password column will only include the hashed or encrypted version of the password. &nbsp;You can set the password format used in the web config with the PasswordFormat option on the SqlMembershipProvider. &nbsp;Note that this will only set the format going forward, and won't allow for the decryption of passwords already hashed or encypted.

---

<div class="post-metadata">

**Author:** ![gmack523](https://forums.visigo.com/letter_avatar_proxy/v4/letter/g/7cd45c/32.png) [@gmack523](https://forums.visigo.com/u/gmack523)\
**Post date:** [June 14, 2011, 2:40pm UTC](https://forums.visigo.com/t/error-when-installing/519/17 "2011-06-14T14:40:44Z")

</div>

Thank you!

&nbsp;

And to reset the password what would I use? I've tried using the WebPart in the FBA Pack, but it asks a question, "YourDog" and the users have no place to submit the answer originally when their account is created. &nbsp;Ideally, I just want to set their password to something new, have them login with that new password and then have them change it to something new using the "Change Password" dropdown. &nbsp; I've tried all sorts of combinations and get nowhere, please help.

---

<div class="post-metadata">

**Author:** ![gmack523](https://forums.visigo.com/letter_avatar_proxy/v4/letter/g/7cd45c/32.png) [@gmack523](https://forums.visigo.com/u/gmack523)\
**Post date:** [June 14, 2011, 5:42pm UTC](https://forums.visigo.com/t/error-when-installing/519/18 "2011-06-14T17:42:16Z")

</div>

> **gmack523 wrote:**  
> 
> Thank you!
> 
> &nbsp;
> 
> And to reset the password what would I use? I've tried using the WebPart in the FBA Pack, but it asks a question, "YourDog" and the users have no place to submit the answer originally when their account is created. &nbsp;Ideally, I just want to set their password to something new, have them login with that new password and then have them change it to something new using the "Change Password" dropdown. &nbsp; I've tried all sorts of combinations and get nowhere, please help.

&nbsp;

&nbsp; I figured out how to do the following and thought that others may have a similar issue down the road and may be looking for how to remedy the problem. &nbsp;So here goes -- PasswordSalt is VERY important:

&nbsp;

PasswordSalt can be found in the 3rd column after running the following query:  
exec aspnet\_membership\_getpasswordwithformat '/', 'UserAccountNeedingPasswordChange',null,null  
  
  
Reset the password using the following query:  
DECLARE @changeDate datetimeset @changeDate = getdate() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;exec aspnet\_Membership\_setPassword '/','UserAccountNeedingPasswordChange', 'TypeNewPasswordHere','PasswordSalt',@changeDate

---

<div class="post-metadata">

**Author:** ![ccoulson](https://forums.visigo.com/user_avatar/forums.visigo.com/ccoulson/32/6_2.png) [@ccoulson](https://forums.visigo.com/u/ccoulson)\
**Post date:** [June 15, 2011, 3:34am UTC](https://forums.visigo.com/t/error-when-installing/519/19 "2011-06-15T03:34:45Z")

</div>

Glad to hear that you got the password reset. &nbsp;

As for the Question/Answer, this is because of the "RequiresQuestionAndAnswer" option on the SQLMembershipProvider. &nbsp;If it's set to true, the user will be asked for a question and answer when they register with the Membership Request web part. As well, the user will be asked for the answer to the question when recovering their password.

If the value was initially set to false and later changed to true, then the original registered users will not have an answer stored and will not be able to recover their password.

Also, if set to false, there is a "Reset Password" option available in the User Management page. &nbsp;It's not available when RequiresQuestionAndAnswer = true, as the answer is required by the SQLMembershipProvider to reset the password (and the administrator shouldn't have the answer to the question).

I would probably just leave it set to false, as I don't think it provides much benefit when used with the FBA Pack - as the FBA Pack sends an email to the email address registered to the account - so only the registered user should be able to receive the email with the reset password.
