Just by the way - if you do decide to levae the non -alpahnumeric setting on your site then I would advise inserting an example on your Register page as I have found that many people who register also have problems in figuring out the use of non alpahnumeric
passwords[:(] and end up #%!&* at me.
Now this is weird, I did exactly what you told to do... now I get this error when logging in as administrator:
Configuration Error
Description:
An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The entry 'AspNetSqlMembershipProvider' has already been added.
Source Error:
Line 10: <membership> Line 11: <providers> Line 12: <add name="AspNetSqlMembershipProvider" Line 13: type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Line 14: connectionStringName="LocalSqlServer"
Source File: C:\Documents and Settings\Kresten.K\Mijn documenten\Visual Studio 2005\WebSites\WebSite1\web.config Line:
12
You must insert the following line before the <add name="AspNet... :
<remove name="AspNetSqlMembershipProvider" />
Ignorance Is Bliss... That explains all of the blissful people around you.
I tried to modify the web.config as showed in previous post but i recieve this error. Can someone please show me how to fix it? thank...
Server Error in '/website' Application.
You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Configuration.Provider.ProviderException: You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use
a non-autogenerated decryption key.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ProviderException: You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key.]
System.Web.Security.MembershipProvider.EncryptPassword(Byte[] password) +92
System.Web.Security.MembershipProvider.EncodePassword(String pass, Int32 passwordFormat, String salt) +292
System.Web.Security.SqlMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) +197
System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +389
System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +199
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +650
System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +157
System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +39
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +56
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +106
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +177
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +72
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3840
I tried to modify the web.config as showed in previous post but i recieve this error. Can someone please show me how to fix it? thank...
Server Error in '/website' Application.
You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Configuration.Provider.ProviderException: You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use
a non-autogenerated decryption key.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ProviderException: You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key.]
System.Web.Security.MembershipProvider.EncryptPassword(Byte[] password) +92
System.Web.Security.MembershipProvider.EncodePassword(String pass, Int32 passwordFormat, String salt) +292
System.Web.Security.SqlMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) +197
System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +389
System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +199
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +650
System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +157
System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +39
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +56
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +106
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +177
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +72
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3840
I added the tag in my web.config file but after crating the user this eeror appears and no user is created:
[code]
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)
Ok. .I need help. I have tried what you suggested and i am still having problems here is my membership information and i am still getting error message"
You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key.
HI. i am curretnly in need of help of a web service that is used to add users into a database. the fields i need to include are UserName, CompanyName and email form a self included table labelled CompleteUserDetails, Password from aspnet_membership as well
as rolename from aspnet_Roles. I am a newbie in programing, and i really have problems starting. Membership is very alien to me. Can anybody help me? Or do anyone have any sample codes? Thank you
hi , i have some codes which when i tried to run, provides these errors. does anyone know where the problem lies? i really appreciate your help. Thanks!
MembershipUser newUser =
Membership.CreateUser(Username,Password,Email,CompanyName,RoleName,
true, out status);
if (newUser ==
null)
{
Msg.Text = GetErrorMessage(status);
}
else
{
Response.Redirect(
"Login.aspx");
}
}
catch
{
Msg.Text =
"An exception occurred creating the user.";
}
}
}
public string GetErrorMessage(MembershipCreateStatus status)
{
switch (status)
{
case MembershipCreateStatus.DuplicateUserName:
return "Username already exists. Please enter a different user name.";
case MembershipCreateStatus.DuplicateEmail:
return "A username for that e-mail address already exists. Please enter a different e-mail address.";
case MembershipCreateStatus.InvalidPassword:
return "The password provided is invalid. Please enter a valid password value.";
case MembershipCreateStatus.InvalidEmail:
return "The e-mail address provided is invalid. Please check the value and try again.";
case MembershipCreateStatus.InvalidAnswer:
return "The password retrieval answer provided is invalid. Please check the value and try again.";
case MembershipCreateStatus.InvalidQuestion:
return "The password retrieval question provided is invalid. Please check the value and try again.";
case MembershipCreateStatus.InvalidUserName:
return "The user name provided is invalid. Please check the value and try again.";
case MembershipCreateStatus.ProviderError:
return "The authentication provider returned an error. Please verify your entry and try again. If the problem persists, please contact your system administrator.";
case MembershipCreateStatus.UserRejected:
return "The user creation request has been canceled. Please verify your entry and try again. If the problem persists, please contact your system administrator.";
default:
return "An unknown error occurred. Please verify your entry and try again. If the problem persists, please contact your system administrator.";
}
}
Errors is this: Error 2 Expected class, delegate, enum, interface, or struct D:\TryOut\App_Code\Service.cs 50 12 D:\TryOut\
HI. i am curretnly in need of help of a web service that is used to add users into a database. the fields i need to include are UserName, CompanyName and email form a self included table labelled CompleteUserDetails, Password from aspnet_membership as well
as rolename from aspnet_Roles. I am a newbie in programing, and i really have problems starting. Membership is very alien to me. Can anybody help me? Or do anyone have any sample codes? Thank you
Here is an example of accessing the roles and password for a membership user. Note that the membership provider must be configured for password retrieval in order to be able to get the password in this manner. You may also want to download my user management
project from my website and take a look at examples of using membership and profiles.
'get any roles for the user
If User.Identity.IsAuthenticated =
True Then
Dim strRoles
As String() = Roles.GetRolesForUser(User.Identity.Name)
Dim strRole
As String =
""
For i As
Integer = 0 To strRoles.Length - 1
strRole = strRoles(i)
Next
'get the password for the user. This wont work if your using hashed passwords
Dim strPassword
As String = Membership.GetUser(User.Identity.Name).GetPassword()
End If
You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Configuration.Provider.ProviderException: You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use
a non-autogenerated decryption key.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[ProviderException: You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key.] System.Web.Security.MembershipProvider.EncryptPassword(Byte[] password) +2326312 System.Web.Security.MembershipProvider.EncodePassword(String pass, Int32 passwordFormat, String salt) +490 System.Web.Security.SqlMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) +175 System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +305 System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +105 System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +453 System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +149 System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +17 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35 System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
Neil899
Member
65 Points
13 Posts
Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )
Oct 04, 2006 08:27 PM|LINK
wizkidweb
Member
15 Points
3 Posts
Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )
Oct 08, 2006 03:03 AM|LINK
Now this is weird, I did exactly what you told to do... now I get this error when logging in as administrator:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The entry 'AspNetSqlMembershipProvider' has already been added.
Source Error:
Source File: C:\Documents and Settings\Kresten.K\Mijn documenten\Visual Studio 2005\WebSites\WebSite1\web.config Line: 12
You must insert the following line before the <add name="AspNet... :
<remove name="AspNetSqlMembershipProvider" />
binarystring
Member
10 Points
5 Posts
Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )
Nov 13, 2006 12:17 AM|LINK
Hi,
I tried to modify the web.config as showed in previous post but i recieve this error. Can someone please show me how to fix it? thank...
Server Error in '/website' Application.
You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Configuration.Provider.ProviderException: You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key.
Source Error:
Stack Trace:
binarystring
Member
10 Points
5 Posts
Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )
Nov 13, 2006 12:17 AM|LINK
Hi,
I tried to modify the web.config as showed in previous post but i recieve this error. Can someone please show me how to fix it? thank...
Server Error in '/website' Application.
You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Configuration.Provider.ProviderException: You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key.
Source Error:
Stack Trace:
Hamed_Bostan
Member
4 Points
2 Posts
Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )
Mar 14, 2007 01:45 PM|LINK
I added the tag in my web.config file but after crating the user this eeror appears and no user is created:
[code]
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)
[/code]
syrus-intl
Member
2 Points
7 Posts
Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )
Mar 29, 2007 03:54 PM|LINK
Ok. .I need help. I have tried what you suggested and i am still having problems here is my membership information and i am still getting error message"
You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key.
" regardless is I use the following passwords.
Passwords
aaliyah
aaliyah0825
Aaliyah_0825
Web.config
<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="LocalSqlServer"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="/"
requiresUniqueEmail="false"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="0"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10"
passwordStrengthRegularExpression="" />
</providers>
</membership>
I dont understand. When i add <machinekey/> i still get errors. I am using godaddys
<machineKey validationKey=“AutoGenerate, IsolateApps”
decryptionKey=“AutoGenerate, IsolateApps” validation=“SHA1” />
Can someone help
non-autogenerated machine key Godady
mousemee
Member
5 Points
7 Posts
Re: Create user web service
Apr 27, 2007 07:32 AM|LINK
mousemee
Member
5 Points
7 Posts
Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )
Apr 27, 2007 10:18 AM|LINK
hi , i have some codes which when i tried to run, provides these errors. does anyone know where the problem lies? i really appreciate your help. Thanks!
using
System;using
System.Web;using
System.Web.Services;using
System.Web.Services.Protocols;using
System.Web.Security;[
WebService(Namespace = "http://tempuri.org/")][
WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]public
class Service : System.Web.Services.WebService{
public Service (){
//Uncomment the following line if using designed components //InitializeComponent();}
[
WebMethod] public void CreateUser_OnClick(object sender, EventArgs args){
// Create new user and retrieve create status result. MembershipCreateStatus status;
public string MembershipUser.CreateUser(string UserName, string Password, string Email, string CompanyName, string RoleName, bool isApproved,Object providerUserKey,out MembershipCreateStatus status){
try{
MembershipUser newUser = Membership.CreateUser(Username,Password,Email,CompanyName,RoleName, true, out status);
if (newUser == null){
Msg.Text = GetErrorMessage(status);
}
else{
Response.Redirect(
"Login.aspx");}
}
catch{
Msg.Text =
"An exception occurred creating the user.";}
}
}
public string GetErrorMessage(MembershipCreateStatus status){
switch (status){
case MembershipCreateStatus.DuplicateUserName: return "Username already exists. Please enter a different user name."; case MembershipCreateStatus.DuplicateEmail: return "A username for that e-mail address already exists. Please enter a different e-mail address."; case MembershipCreateStatus.InvalidPassword: return "The password provided is invalid. Please enter a valid password value."; case MembershipCreateStatus.InvalidEmail: return "The e-mail address provided is invalid. Please check the value and try again."; case MembershipCreateStatus.InvalidAnswer: return "The password retrieval answer provided is invalid. Please check the value and try again."; case MembershipCreateStatus.InvalidQuestion: return "The password retrieval question provided is invalid. Please check the value and try again."; case MembershipCreateStatus.InvalidUserName: return "The user name provided is invalid. Please check the value and try again."; case MembershipCreateStatus.ProviderError: return "The authentication provider returned an error. Please verify your entry and try again. If the problem persists, please contact your system administrator."; case MembershipCreateStatus.UserRejected: return "The user creation request has been canceled. Please verify your entry and try again. If the problem persists, please contact your system administrator."; default: return "An unknown error occurred. Please verify your entry and try again. If the problem persists, please contact your system administrator.";}
}
Errors is this: Error 2 Expected class, delegate, enum, interface, or struct D:\TryOut\App_Code\Service.cs 50 12 D:\TryOut\
Error 1 } expected D:\TryOut\App_Code\Service.cs 24 51 D:\TryOut\
jwadsworth
Contributor
2378 Points
542 Posts
Re: Create user web service
Apr 27, 2007 04:06 PM|LINK
Here is an example of accessing the roles and password for a membership user. Note that the membership provider must be configured for password retrieval in order to be able to get the password in this manner. You may also want to download my user management project from my website and take a look at examples of using membership and profiles.
'get any roles for the user If User.Identity.IsAuthenticated = True ThenDim strRoles As String() = Roles.GetRolesForUser(User.Identity.Name)
Dim strRole As String = ""
For i As Integer = 0 To strRoles.Length - 1
strRole = strRoles(i)
Next
'get the password for the user. This wont work if your using hashed passwords
Dim strPassword As String = Membership.GetUser(User.Identity.Name).GetPassword()
End If
Extended Personal Site Starter kit
Websta4
Member
14 Points
44 Posts
Re: Can't create user (Password length minimum: 7. Non-alphanumeric characters required: 1. )
Jul 01, 2007 03:23 AM|LINK
Server Error in '/Site' Application.
You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Configuration.Provider.ProviderException: You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key.
Source Error:
Stack Trace:
Got same error how do you resolve this