Tuesday, March 24, 2009

The entry ConnectionString has already been added.

put <clear/> before <add , like following:
 
<
connectionStrings>

<

clear />

<

add name="ConnectionString" connectionString="Data Source=SERVERNAME;Initial Catalog=DATABASE;User ID=USER" providerName="System.Data.SqlClient"/>

14 comments:

  1. thanks. that really helped. never saw this error before and was wondering how to fix it. thanks for your help.

    ReplyDelete
  2. thank's.....to help it' very useful.

    ReplyDelete
  3. Thanks... My Problem is Resolved

    ReplyDelete
  4. its great solution,since one year i never saw this error and this is solved in first attempt .using your code

    ReplyDelete
  5. Thanks yar it works.
    Really big thanks!!!!1

    ReplyDelete
  6. OH! Thanks a lot. Really helps me a lot.

    ReplyDelete
  7. I had written before add but next time another connection string enters in text box same error exist. Could you help me pls

    ReplyDelete