简体   繁体   中英

how to add a server provider name on visual studio 2013 Mvc4 c#

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM