Problems encountered in Asp.net "web site administration tool" in vs2k5

Source: Internet
Author: User
Tags connectionstrings
Today, I learned about the membership function provided by ASP. net2.0, and called "Asp.net" from the website \ ASP. NET configuration menu in vs2k5. After the web site administration tool "is selected, errors always occur on the Security tab. The answer is found at the following URL:
Http://forums.microsoft.com/msdn/showpost.aspx? Postid = 81990 & siteid = 1 & pageid = 0

It turns out that this tab can only be used after one flip (I used sqlserver2k5 Enterprise Edition, express edition I don't know ). First, run aspnet_regsql to install the membership database. Then, modify the Web. config file (c: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \ config \ Web. config) on the machine or the project's web. config file. The Web. config file in my project is as follows:

<? XML version = " 1.0 " Encoding = " UTF-8 " ?>
< Configuration xmlns = " Http://schemas.microsoft.com/.NetConfiguration/v2.0 " >
< Connectionstrings >
< Remove name = " Localsqlserver "   />

< Add name = " Localsqlserver " Connectionstring = " Data Source = localhost; initial catalog = aspnetdb; Integrated Security = true "
Providername = " System. Data. sqlclient "   />
 
</ Connectionstrings >
< System. Web >
< Compilation debug = " True " />
</ System. Web >
</ Configuration >

Note the section <connectionstrings>... </connectionstrings>

If you encounter the same problem, I hopeArticleI can give you some tips.

Related Article

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.