ASP.Net Site Configuration Tool
When I create a user account using the ASP Create User Wizard, the site administration tool reflects that the user exists but when I look in the ASP User and Membership tables in my database there are no users. When I used the ASP Reg SQL tool it was to configure a server database which I since moved to be a local database, which may perhaps be the problem. I am tryin开发者_如何学编程g to link a Customer table to the ASP User table by way of the UserId guid, but right now there is nothing to return. Can someone please tell me what I am doing wrong?
Look for the sections below in your web.config:
<connectionStrings>
<add name="MySqlConnection" connectionString="Data Source=MySqlServer;Initial Catalog=aspnetdb;Integrated Security=SSPI;" />
</connectionStrings>
<system.web>
...
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15">
<providers>
<clear />
<add
name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="MySqlConnection"
applicationName="MyApplication"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Hashed" />
</providers>
</membership>
This will tell you what database it is using for your membership stuff. You will want to look at the connectionStingName
in the membership section (in this case MySqlConnection) and then look at the corresponding connection string to see if it is going where you expect it to.
精彩评论