Click here to Skip to main content
15,923,015 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionneed Access to a file on root. Pin
deepaks327-Aug-06 23:08
deepaks327-Aug-06 23:08 
AnswerRe: need Access to a file on root. Pin
deepaks327-Aug-06 23:53
deepaks327-Aug-06 23:53 
QuestionWould ASP.NET proper? Pin
kkadir27-Aug-06 22:52
kkadir27-Aug-06 22:52 
AnswerRe: Would ASP.NET proper? Pin
minhpc_bk28-Aug-06 6:16
minhpc_bk28-Aug-06 6:16 
GeneralDisabling automatic culture selection Pin
Dario Solera27-Aug-06 22:25
Dario Solera27-Aug-06 22:25 
GeneralRe: Disabling automatic culture selection Pin
minhpc_bk28-Aug-06 6:13
minhpc_bk28-Aug-06 6:13 
Questionhow to write dynamic table in wep page Pin
Kissy1627-Aug-06 21:40
Kissy1627-Aug-06 21:40 
QuestionSQL Membership and Roles Providers Pin
Brendan Vogt27-Aug-06 20:48
Brendan Vogt27-Aug-06 20:48 
Hi all!!

I have been using the SQL Membership and Roles Providers, I was working the 5-part series from 4guysfromrolla.com.

Soory for the long post, but the error is very long.

My web.config file looks like this:

<membership defaultProvider="MySqlMembershipProvider" userIsOnlineTimeWindow="15">
<providers>
<clear />
<add
name="MySqlMembershipProvider"
applicationName="dev"
connectionStringName="MyDatabaseConnection"
description="Stores and retrieves membership data from the local Microsoft SQL Server database"
enablePasswordReset="true"
enablePasswordRetrieval="true"
maxInvalidPasswordAttempts="5"
minRequiredNonalphanumericCharacters="0"
minRequiredPasswordLength="6"
passwordAttemptWindow="10"
passwordFormat="Encrypted"
passwordStrengthRegularExpression=""
requiresQuestionAndAnswer="true"
type="System.Web.Security.SqlMembershipProvider" />
</providers>
</membership>

<roleManager enabled="true" defaultProvider="MySqlRoleProvider">
<providers>
<clear />
<add
name="MySqlRoleProvider"
connectionStringName="MyDatabaseConnection"
description="Stores and retrieves roles data from the local Microsoft SQL Server database"
type="System.Web.Security.SqlRoleProvider" />
</providers>
</roleManager>

So when trying to add a new user through the ASP.NET configuration tool, I get the following error, and I do not know what the error is and why I am getting it.

An error was encountered. Please return to the previous page and try again.

The following message may help in diagnosing the problem: Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Web.Administration.WebAdminMembershipProvider.CallWebAdminMembershipProviderHelperMethodOutParams(String methodName, Object[] parameters, Type[] paramTypes) at System.Web.Administration.WebAdminMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) at System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() at System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) at System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.WebControls.Wizard.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

What I did was to remove the following properties and it worked just fine:
enablePasswordReset="true"
enablePasswordRetrieval="true"
maxInvalidPasswordAttempts="5"
minRequiredNonalphanumericCharacters="0"
minRequiredPasswordLength="6"
passwordAttemptWindow="10"
passwordFormat="Encrypted"
passwordStrengthRegularExpression=""
requiresQuestionAndAnswer="true"

Please can someone tell me what I am doing wrong, what must I add extra, what must I leave out.

Thanks in advance!!!

Regards,
ma se
Questioncreate an formatted excel sheet with image [modified] Pin
flexorbits27-Aug-06 20:40
flexorbits27-Aug-06 20:40 
QuestionWeb Site Performance Improvement Pin
venkatasivaramaprasad27-Aug-06 20:03
venkatasivaramaprasad27-Aug-06 20:03 
AnswerRe: Web Site Performance Improvement Pin
_AK_27-Aug-06 20:10
_AK_27-Aug-06 20:10 
GeneralRe: Web Site Performance Improvement Pin
venkatasivaramaprasad27-Aug-06 20:37
venkatasivaramaprasad27-Aug-06 20:37 
GeneralRe: Web Site Performance Improvement Pin
_AK_27-Aug-06 20:43
_AK_27-Aug-06 20:43 
Questioncurrency manager Pin
sudharsong27-Aug-06 18:51
sudharsong27-Aug-06 18:51 
AnswerRe: currency manager Pin
minhpc_bk28-Aug-06 6:05
minhpc_bk28-Aug-06 6:05 
QuestionAdding events to dynamically created controls Pin
psid2327-Aug-06 18:43
psid2327-Aug-06 18:43 
AnswerRe: Adding events to dynamically created controls Pin
thomas_joyee27-Aug-06 20:03
thomas_joyee27-Aug-06 20:03 
GeneralRe: Adding events to dynamically created controls Pin
psid2327-Aug-06 22:31
psid2327-Aug-06 22:31 
GeneralRe: Adding events to dynamically created controls Pin
thomas_joyee27-Aug-06 23:32
thomas_joyee27-Aug-06 23:32 
GeneralRe: Adding events to dynamically created controls Pin
psid2328-Aug-06 2:06
psid2328-Aug-06 2:06 
QuestionText Allign Question .NET Pin
kalyanPaladugu27-Aug-06 12:46
kalyanPaladugu27-Aug-06 12:46 
AnswerRe: Text Allign Question .NET Pin
Guffa27-Aug-06 13:58
Guffa27-Aug-06 13:58 
QuestionNetwork course Pin
TheEagle27-Aug-06 11:17
TheEagle27-Aug-06 11:17 
AnswerRe: Network course Pin
Colin Angus Mackay27-Aug-06 12:50
Colin Angus Mackay27-Aug-06 12:50 
GeneralRe: Network course Pin
TheEagle27-Aug-06 18:45
TheEagle27-Aug-06 18:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.