Click here to Skip to main content
15,868,164 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Set the NavigateUrl of a ImageMap in Repeater Pin
Parwej Ahamad4-Oct-11 12:01
professionalParwej Ahamad4-Oct-11 12:01 
QuestionTCP/IP Client Server Chat Application in ASP.Net Pin
nitin_ion3-Oct-11 23:11
nitin_ion3-Oct-11 23:11 
AnswerRe: TCP/IP Client Server Chat Application in ASP.Net Pin
Parwej Ahamad4-Oct-11 12:06
professionalParwej Ahamad4-Oct-11 12:06 
QuestionAlternate for MasterPage Pin
Ramkumar_S3-Oct-11 22:20
Ramkumar_S3-Oct-11 22:20 
Questionsending email on particular Date & Time Pin
prasanna2043-Oct-11 21:47
prasanna2043-Oct-11 21:47 
AnswerRe: sending email on particular Date & Time Pin
Anurag Gandhi4-Oct-11 1:50
professionalAnurag Gandhi4-Oct-11 1:50 
AnswerRe: sending email on particular Date & Time Pin
Morgs Morgan4-Oct-11 5:06
Morgs Morgan4-Oct-11 5:06 
QuestionConnection String problem in web.config! Pin
5553363-Oct-11 20:09
5553363-Oct-11 20:09 
XML
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>
        <clear/>
        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
      </providers>
    </roleManager>

  </system.web>

  <system.webServer>
     <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>
</configuration>

Help me, I'm a beginner..

QuestionRedirect, url rewrite and login problem Pin
CodeGust3-Oct-11 16:04
CodeGust3-Oct-11 16:04 
AnswerRe: Redirect, url rewrite and login problem Pin
Morgs Morgan4-Oct-11 5:28
Morgs Morgan4-Oct-11 5:28 
GeneralRe: Redirect, url rewrite and login problem Pin
CodeGust4-Oct-11 5:52
CodeGust4-Oct-11 5:52 
GeneralRe: Redirect, url rewrite and login problem Pin
Morgs Morgan4-Oct-11 6:05
Morgs Morgan4-Oct-11 6:05 
QuestionImprove page performance for aspx page Pin
vishnukamath3-Oct-11 1:59
vishnukamath3-Oct-11 1:59 
AnswerRe: Improve page performance for aspx page Pin
Parwej Ahamad3-Oct-11 8:41
professionalParwej Ahamad3-Oct-11 8:41 
AnswerRe: Improve page performance for aspx page Pin
Not Active3-Oct-11 9:51
mentorNot Active3-Oct-11 9:51 
QuestionEmail reply color Pin
Blikkies3-Oct-11 0:45
professionalBlikkies3-Oct-11 0:45 
AnswerRe: Email reply color Pin
Parwej Ahamad3-Oct-11 8:44
professionalParwej Ahamad3-Oct-11 8:44 
QuestionHow to Focus On The Next Text Box After PostBack? Pin
behzad_Sadeghi2-Oct-11 9:19
behzad_Sadeghi2-Oct-11 9:19 
QuestionCCTV in asp.net Pin
Hassan Sajedi2-Oct-11 6:32
Hassan Sajedi2-Oct-11 6:32 
AnswerRe: CCTV in asp.net Pin
Pravin Patil, Mumbai3-Oct-11 19:59
Pravin Patil, Mumbai3-Oct-11 19:59 
QuestionC# asp.net 2010 Pin
Member 82175172-Oct-11 6:25
Member 82175172-Oct-11 6:25 
GeneralCode chạy thủ tục thêm, xóa, sửa, xem chi tiết, hiện danh sách của bảng Nhân viên Pin
Hoàng Thái Bình2-Oct-11 5:59
Hoàng Thái Bình2-Oct-11 5:59 
AnswerRe: Code chạy thủ tục thêm, xóa, sửa, xem chi tiết, hiện danh sách của bảng Nhân viên Pin
Dalek Dave2-Oct-11 7:30
professionalDalek Dave2-Oct-11 7:30 
AnswerRe: Code chạy thủ tục thêm, xóa, sửa, xem chi tiết, hiện danh sách của bảng Nhân viên Pin
TheGreatAndPowerfulOz3-Oct-11 10:19
TheGreatAndPowerfulOz3-Oct-11 10:19 
QuestionISs there any solution. Pin
uspatel30-Sep-11 21:26
professionaluspatel30-Sep-11 21:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.