. NET use of micro-software to verify and log the license

Source: Internet
Author: User
Tags connectionstrings

Using a soft user experience, the right management method

One. Using the configured repositories,

1. First set up the library you want (just fill in the name without downloading any tables, such as: Login repository)

2. Use the VS Compatibility tool command prompt. Image:

3. Table required to guide the repository

A. Use the tool command prompt just opened, and write the code aspnet_regsql

B. Open the following window after the configuration

Note that the position of the arrows above should be the same as the previous, or pre-prepared, library.

Then the next step and finish is OK.

Table in the repository after configuration

To the current location, the configuration of the repository has been completed, the following is the use of

Two. Editing the configuration file

<configuration>
<connectionStrings> <add name="defaultconnection"connectionstring="server=.; Database=mydb;uid=sa;pwd=123"Providername="System.Data.SqlClient"/> </connectionStrings> <system.web> <profile defaultprovider="Defaultprofileprovider"> <providers> <add name="Defaultprofileprovider"Type="System.Web.Providers.DefaultProfileProvider"Connectionstringname="defaultconnection"Applicationname="/"/> </providers> </profile> <membership defaultprovider="AspNetSqlMembershipProvider"> <providers> <clear/> <Add Name="AspNetSqlMembershipProvider"type="System.Web.Security.SqlMembershipProvider, system.web, version=2.0.3600.0, Culture=neutral, publickeytoken= B03F5F7F11D50A3A"connectionStringName="defaultconnection"enablePasswordRetrieval="false"enablePasswordReset="true"requiresQuestionAndAnswer="false"requiresUniqueEmail="true"maxinvalidpasswordattempts="3"minRequiredPasswordLength="6"minRequiredNonalphanumericCharacters="0"passwordAttemptWindow="Ten"ApplicationName="/"/> </providers> </membership> <rolemanager enabled="true"Cacherolesincookie="true"> <providers> <clear/> <add connectionstringname="defaultconnection"Applicationname="/"Name="AspNetSqlRoleProvider"Type="System.Web.Security.SqlRoleProvider, system.web, version=2.0.0.0, Culture=neutral, publickeytoken= B03F5F7F11D50A3A"/> </providers> </roleManager> <compilation debug="false"targetframework="4.0"/> </system.web></configuration>

Copy the above codes to

. NET use of micro-software to verify and log the license

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.