Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'

A

Albert

Hi,

Hi,

i want to create users with the control CreateUserWizard, but by only
entering the username. That's why i use the property RequireEmail="false"
and requiresUniqueEmail="false" in web.config.

In the CreateUserWizard1_CreatingUser event, the emailaddress is then
programmatically made by adding "@xxx.zz" to the username.

But when running this, i still get the error "Could not find stored
procedure 'dbo.aspnet_CheckSchemaVersion'"
How can i avoid that error and create users only with entering the username?

Thanks for help.
Albert


<asp:CreateUserWizard ID="CreateUserWizard1" RequireEmail="false"
AutoGeneratePassword="true" runat="server" >
<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1"
runat="server">
<ContentTemplate>
<asp:Label ID="UserNameLabel" Text="user:" runat="server"
AssociatedControlID="UserName">
</asp:Label>
<asp:TextBox ID="UserName" runat="server"></asp:TextBox>
</ContentTemplate>
</asp:CreateUserWizardStep>
</WizardSteps>
</asp:CreateUserWizard>

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="enq"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
applicationName="/"
requiresUniqueEmail="false"
passwordFormat="Hashed"
minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"
passwordStrengthRegularExpression=""/>
</providers>
</membership>
 
A

Albert

i found the error: i forgot to put this in web.config:
connectionStringName="LocalSqlServer"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top