Click here to Skip to main content
15,172,754 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Set the NavigateUrl of a ImageMap in Repeater Pin
Parwej Ahamad4-Oct-11 13:01
professionalParwej Ahamad4-Oct-11 13:01 
QuestionTCP/IP Client Server Chat Application in ASP.Net Pin
nitin_ion4-Oct-11 0:11
Membernitin_ion4-Oct-11 0:11 
AnswerRe: TCP/IP Client Server Chat Application in ASP.Net Pin
Parwej Ahamad4-Oct-11 13:06
professionalParwej Ahamad4-Oct-11 13:06 
QuestionAlternate for MasterPage Pin
Ramkumar_S3-Oct-11 23:20
MemberRamkumar_S3-Oct-11 23:20 
Questionsending email on particular Date & Time Pin
prasanna2043-Oct-11 22:47
Memberprasanna2043-Oct-11 22:47 
AnswerRe: sending email on particular Date & Time Pin
Anurag Gandhi4-Oct-11 2:50
professionalAnurag Gandhi4-Oct-11 2:50 
AnswerRe: sending email on particular Date & Time Pin
Morgs Morgan4-Oct-11 6:06
MemberMorgs Morgan4-Oct-11 6:06 
QuestionConnection String problem in web.config! Pin
5553363-Oct-11 21:09
Member5553363-Oct-11 21: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 17:04
MemberCodeGust3-Oct-11 17:04 
AnswerRe: Redirect, url rewrite and login problem Pin
Morgs Morgan4-Oct-11 6:28
MemberMorgs Morgan4-Oct-11 6:28 
GeneralRe: Redirect, url rewrite and login problem Pin
CodeGust4-Oct-11 6:52
MemberCodeGust4-Oct-11 6:52 
GeneralRe: Redirect, url rewrite and login problem Pin
Morgs Morgan4-Oct-11 7:05
MemberMorgs Morgan4-Oct-11 7:05 
QuestionImprove page performance for aspx page Pin
vishnukamath3-Oct-11 2:59
Membervishnukamath3-Oct-11 2:59 
AnswerRe: Improve page performance for aspx page Pin
Parwej Ahamad3-Oct-11 9:41
professionalParwej Ahamad3-Oct-11 9:41 
AnswerRe: Improve page performance for aspx page Pin
Not Active3-Oct-11 10:51
mentorNot Active3-Oct-11 10:51 
QuestionEmail reply color Pin
Blikkies3-Oct-11 1:45
professionalBlikkies3-Oct-11 1:45 
AnswerRe: Email reply color Pin
Parwej Ahamad3-Oct-11 9:44
professionalParwej Ahamad3-Oct-11 9:44 
QuestionHow to Focus On The Next Text Box After PostBack? Pin
behzad_Sadeghi2-Oct-11 10:19
Memberbehzad_Sadeghi2-Oct-11 10:19 
QuestionCCTV in asp.net Pin
Hassan Sajedi2-Oct-11 7:32
MemberHassan Sajedi2-Oct-11 7:32 
AnswerRe: CCTV in asp.net Pin
Pravin Patil, Mumbai3-Oct-11 20:59
MemberPravin Patil, Mumbai3-Oct-11 20:59 
QuestionC# asp.net 2010 Pin
Member 82175172-Oct-11 7:25
MemberMember 82175172-Oct-11 7: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 6:59
MemberHoàng Thái Bình2-Oct-11 6: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 8:30
professionalDalek Dave2-Oct-11 8: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 11:19
MemberTheGreatAndPowerfulOz3-Oct-11 11:19 
QuestionISs there any solution. Pin
uspatel30-Sep-11 22:26
professionaluspatel30-Sep-11 22: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.