Hi, I was creating a login form in visual web developer express. In my web.config, I have inserted these codes for the connection of my database:
<connectionStrings>
<clear />
<add name="LocalSQLServer"
connectionString="Server=.;Database=youtubelogin;Trusted_Connection=Yes;" />
</connectionStrings>
The problem is when I add a Login control on my page, and click on the ASP.Net configuration website for the security to add roles, I got this error:
The connection name 'ApplicationServices' was not found in the applications configuration or the connection string is empty. (c:\documents and settings\ali\my documents\visual studio 2010\Projects\Youtube\Youtube\web.config line 25)
Here is my entire web.config below:
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<clear />
<add name="LocalSQLServer"
connectionString="Server=.;Database=youtubelogin;Trusted_Connection=Yes;" />
</connectionStrings>
<system.web>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" />
</authentication>
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"
enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
applicationName="/" />
</providers>
</membership>
<profile>
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
</providers>
</profile>
<roleManager enabled="false">
<providers>
<cl