我在使用CreateUserWizardStep注册新用户时遇到了麻烦。注册用户:CreateUserWizardStep
任何人都可以帮助我解决这个问题。我试图在web.config中更改memebership Provider Tag。
<requiresQuestionAndAnswer="false">
但是,它仍然没有工作!...我使用MYSQL数据库。
RegisterUser: CreateUserWizardStep.ContentTemplate does not contain an IEditableTextControl with ID Question for the security question, this is required if your membership provider requires a question and answer.
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:
[HttpException (0x80004005): RegisterUser: CreateUserWizardStep.ContentTemplate does not contain an IEditableTextControl with ID Question for the security question, this is required if your membership provider requires a question and answer.]
System.Web.UI.WebControls.CreateUserStepContainer.get_QuestionTextBox() +1448475 System.Web.UI.WebControls.CreateUserWizard.CreateControlHierarchy() +172 System.Web.UI.WebControls.Wizard.CreateChildControls() +137 System.Web.UI.WebControls.CreateUserWizard.CreateChildControls() +26 System.Web.UI.Control.EnsureChildControls() +87 System.Web.UI.WebControls.Wizard.OnInit(EventArgs e) +90
System.Web.UI.Control.InitRecursive(Control namingContainer) +333
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
以下是我在web.config中的MembershipProvider。
谢谢。我可以解决这个问题...我使用的web.config与那个不兼容..这就是为什么..在我改变machine.config ..我可以做.. :-) – thidar 2011-03-29 01:40:33