title: Password Recovery tool in C# not working
body: <p>Hi (I'm pretty new to this),</p>
  
  <p>I have created a portal where the user logs in and within that, they can view other programs I've made. The problem is the password recovery does not seem to be working - I get no error messages, I just get the message "We were unable to access your information. Please try again."
  I have the ASP.NET configuration setup correctly and have tested this with different users and permissions but I was just wondering if there is something I need to do in the configuartion manager or the web.config so that this can work.</p>
  
  <p>Below is the code for the password recovery tool:</p>
  
  <pre><code>&lt;form id="form1" runat="server"&gt;
  &lt;div align="center"&gt;
      &lt;asp:PasswordRecovery ID="PasswordRecovery1" runat="server" Height="147px" Width="442px" BackColor="#F7F6F3" BorderColor="#E6E2D8" BorderPadding="4" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em"&gt;
          &lt;UserNameTemplate&gt;
              &lt;table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse"&gt;
                  &lt;tr&gt;
                      &lt;td style="width: 445px"&gt;
                          &lt;table border="0" cellpadding="0" style="width: 442px; height: 147px"&gt;
                              &lt;tr&gt;
                                  &lt;td align="center" colspan="2"&gt;
                                      &lt;strong&gt;&lt;span style="font-size: 0.9em"&gt;Password Recovery&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;
                              &lt;/tr&gt;
                              &lt;tr&gt;
                                  &lt;td align="center" colspan="2"&gt;
                                      &amp;nbsp;&lt;/td&gt;
                              &lt;/tr&gt;
                              &lt;tr&gt;
                                  &lt;td align="right"&gt;
                                      &lt;asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName"&gt;Username:&lt;/asp:Label&gt;&lt;/td&gt;
                                  &lt;td style="width: 291px"&gt;
                                      &lt;asp:TextBox ID="UserName" runat="server" Width="187px"&gt;&lt;/asp:TextBox&gt;
                                      &lt;asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                          ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="PasswordRecovery1"&gt;*&lt;/asp:RequiredFieldValidator&gt;
                                  &lt;/td&gt;
                              &lt;/tr&gt;
                              &lt;tr&gt;
                                  &lt;td align="center" colspan="2" style="color: red"&gt;
                                      &lt;asp:Literal ID="FailureText" runat="server" EnableViewState="False"&gt;&lt;/asp:Literal&gt;
                                  &lt;/td&gt;
                              &lt;/tr&gt;
                              &lt;tr&gt;
                                  &lt;td align="right" colspan="2" style="text-align: right"&gt;
                                      &lt;asp:Button ID="SubmitButton" runat="server" CommandName="Submit" Text="Submit" ValidationGroup="PasswordRecovery1"
                                          Width="103px" /&gt;
                                      &amp;nbsp; &amp;nbsp;
                                  &lt;/td&gt;
                              &lt;/tr&gt;
                          &lt;/table&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/UserNameTemplate&gt;
          &lt;InstructionTextStyle Font-Italic="True" ForeColor="Black" /&gt;
          &lt;SuccessTextStyle Font-Bold="True" ForeColor="#5D7B9D" /&gt;
          &lt;TextBoxStyle Font-Size="0.8em" /&gt;
          &lt;TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" Font-Size="0.9em" ForeColor="White" /&gt;
          &lt;SubmitButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
              BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284775" /&gt;
      &lt;/asp:PasswordRecovery&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Thank you.</p>