0

I have this error message.
The parser error message :attribute is not recognized writeExceptionsToEventLog
What do I wrong?

Parser error message

This is my code in web.config

<membership>
      <providers>
        <clear/>
        <add name="SqlMembershipProviderOther" 
        requiresQuestionAndAnswer="false"
         connectionStringName="ConnectionString" applicationName=""
        type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
        enablePasswordRetrieval="false" enablePasswordReset="true"
        requiresUniqueEmail="true" passwordFormat="Hashed"
        minRequiredNonalphanumericCharacters="0" writeExceptionsToEventLog="false"
        minRequiredPasswordLength="8" passwordStrengthRegularExpression=""
        passwordAttemptWindow="10" maxInvalidPasswordAttempts="8"
           />
      </providers>
    </membership>

<connectionStrings>
    <add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True"
     />
  </connectionStrings>
Will_G
  • 269
  • 2
  • 5
  • 18
  • Try one thing... Rebuild/Close and Reopen the project Then build properly.Run. If nt working , we have 2nd solution ,to add provider name if not added in connectionstring. – Niks Mar 18 '13 at 08:58
  • Solution 1 doesn't work, in connectionString I got this: – Will_G Mar 18 '13 at 09:07

1 Answers1

0

Try one thing... Rebuild/Close and Reopen the project Then build properly.Run. If nt working , we have 2nd solution ,to add provider name if not added in connectionstring

Niks
  • 997
  • 2
  • 10
  • 28
  • Solution 1 doesn't work, in connectionString I got this: it doesn't work yet – Will_G Mar 18 '13 at 09:08
  • what do you means ths... ?? defaultProvider="SqlMembershipProvider" – Niks Mar 18 '13 at 09:17
  • No idea, but 2nd solution add provider name if not added in connectionstring Can you give a example? – Will_G Mar 18 '13 at 09:27
  • Because default provider is not needed.. More then Membership providers we can use with declaring any default. Just keep .. remove attributes from that. – Niks Mar 18 '13 at 09:32
  • Can you please post you web.config file contents as it ... here (Hide you password) – Niks Mar 18 '13 at 09:59
  • Here is my web.config file https://docs.google.com/document/d/1LLRvl7HOWLGVzJ0Hrgt9ELyK5NQQHit--LGcY5bd5Ms/edit?usp=sharing – Will_G Mar 18 '13 at 10:09
  • add ths lines.. after .. – Niks Mar 18 '13 at 10:23
  • It doen't work you can edit the google doc file? pls https://docs.google.com/document/d/1LLRvl7HOWLGVzJ0Hrgt9ELyK5NQQHit--LGcY5bd5Ms/edit?usp=sharing – Will_G Mar 18 '13 at 10:48
  • https://docs.google.com/document/d/1LLRvl7HOWLGVzJ0Hrgt9ELyK5NQQHit--LGcY5bd5Ms/edit?usp=sharing ..now check,. – Niks Mar 18 '13 at 10:54
  • have u checked Stack trace ? What is inner exception for this error – Niks Mar 18 '13 at 11:00
  • No i have no idea, how can i see this? – Will_G Mar 18 '13 at 11:08
  • while run application handle try ...catch (Exception e)...Put breakpoint over exception catch { string abc=e.GetBaseException().ToString(); } block ... and – Niks Mar 18 '13 at 11:39