0

what should i do !!? i didn't download SQl server , i just setup the default one on visual studio 2013 as you see in the web config i tried everything the problem is it the default provider name is working but when i try my new provider name it never works and get me error

  providerName="System.Data.SqlClient" />
       </connectionStrings>

that's the default connection string !! any idea's??

my web.config the error

1 Answers1

0

The problem is that you've defined the connectionStrings section twice (as you can see in the Detailed Error Information:

Config section 'connectionStrings' already defined.

Delete the first one.

UPDATE:

Check the following: Entity Framework Code First Migrations failing on Wrong Provider (3.5 instead of 4.0)

And don't forget to add the required references: System.Data.Linq and System.Data.SqlServerCe.dll version 4.0.0.0.

Community
  • 1
  • 1
mgyongyosi
  • 2,557
  • 2
  • 13
  • 20