Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6131827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:01:34+00:00 2026-05-23T17:01:34+00:00

i changed my password format in the web.config for hashed to encrypted and added

  • 0

i changed my password format in the web.config for hashed to encrypted and added a machine key but after that i got this error :

Format of the initialization string does not conform to specification starting at index 0

i tried changing back to hashed but i still got this error.

here is the membership code:

        <membership>
        <providers>
            <remove name="AspNetSqlMembershipProvider"/>
            <add name="AspNetSqlMembershipProvider"
                 type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
                 connectionString="LocalSqlServer"
                 enablePasswordRetrieval="false"
                 enablePasswordReset="true"
                 requiresQuestionAndAnswer="false"
                 applicationName="/"
                 requiresUniqueEmail="true"
                 minRequiredPasswordLength="6"
                 minRequiredNonalphanumericCharacters="0"
                 passwordFormat="Encrypted"
                 maxInvalidPasswordAttempts="5"
                 passwordAttemptWindow="10"
                 passwordStrengthRegularExpression=""/>
        </providers>    
    </membership>

and connection string:

    <connectionStrings>
    <remove name="LocalSqlServer"/>
    <add name="LocalSqlServer" connectionString="Data Source=AHMED-PC\SQLEXPRESS;Initial Catalog=test;Persist Security Info=True;User ID=sa;Password=123456" providerName="System.Data.SqlClient"/>
</connectionStrings>

note: the connection string was working fine before i changed the password format.

using asp.net 4.0

what is the problem, thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:01:35+00:00Added an answer on May 23, 2026 at 5:01 pm

    solved it by attaching the ASPNETDB.MDF file and removing the Initial Catalog from the connection string:

          <connectionStrings>
       <remove name="localsqlserver"/>
            <add name="localsqlserver" connectionString="Data Source=AHMED-PC\SQLEXPRESS;AttachDBFilename=|DataDirectory|aspnetdb.mdf;Persist Security Info=True;User ID=sa;Password=123456" providerName="System.Data.SqlClient"/> 
    </connectionStrings>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a connection string in my web config: <add name=MyConString connectionString=Server=dbsrv;User ID=myDbUser;Password=somepassword providerName=System.Data.SqlClient
I have create a Membership provider and changed my web.config to <membership defaultProvider=MyMembershipProvider> <providers>
I've been using this gist to send an email after deployment but I'd like
I have a user model that requires the user to change their password every
Say I create CreateUserWizard control and use AspNetSqlMembershipProvider (defined in machine.config ) as a
I have built an ASP.NET MVC 3 web application (with exlusively Razor/cshtml pages) that
I have another very puzzling question that has cropped up after my upgrade from
Given a string in the following format (the Posterous API returns posts in this
I have a SQLite database with this format: TABLE users | |---------name - text
Edit Thanks for the suggestions; to clarify, we already use SSL, but that doesn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.