Here is the error
An error was encountered. Please return to the previous page and tryagain.
The following message may help in diagnosing the problem:Exceptionhas been thrown by the target of an invocation. atSystem.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[]arguments, SignatureStruct& sig, MethodAttributes methodAttributes,RuntimeTypeHandle typeOwner) atSystem.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[]arguments, Signature sig, MethodAttributes methodAttributes,RuntimeTypeHandle typeOwner) atSystem.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlagsinvokeAttr, Binder binder, Object[] parameters, CultureInfo culture,Boolean skipVisibilityChecks) atSystem.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlagsinvokeAttr, Binder binder, Object[] parameters, CultureInfo culture) atSystem.Web.Administration.WebAdminMembershipProvider.CallWebAdminMembershipProviderHelperMethodOutParams(StringmethodName, Object[] parameters, Type[] paramTypes) atSystem.Web.Administration.WebAdminMembershipProvider.CreateUser(Stringusername, String password, String email, String passwordQuestion,String passwordAnswer, Boolean isApproved, Object providerUserKey,MembershipCreateStatus& status) atSystem.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() atSystem.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgse) at System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source,EventArgs e) atSystem.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source,EventArgs e) atSystem.Web.UI.WebControls.Wizard.WizardChildTable.OnBubbleEvent(Objectsource, EventArgs args) atSystem.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) atSystem.Web.UI.WebControls.Button.RaisePostBackEvent(StringeventArgument) atSystem.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(StringeventArgument) atSystem.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandlersourceControl, String eventArgument) atSystem.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) atSystem.Web.UI.Page.ProcessRequestMain(BooleanincludeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Here is the Web.config for adding a new user
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ConnectionString"
enablePasswordRetrieval="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="/"
requiresUniqueEmail="false"
passwordFormat="Encrypted"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="1"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""/>
</providers>
</membership>
Hi,
Based on my understanding, when you add new user in the Web Site Administration Tool, you get the error message above. If I have misunderstood you, please feel free to let me know.
To better understand your issue, could you please confirm the following information:
Please make sure that we configure the Application Services correctly. For more information, seehttp://weblogs.asp.net/scottgu/archive/2005/08/25/423703.aspx.
I hope this helps.
0 comments:
Post a Comment