connection string is not working with my database on Microsoft SQL Server in ASP.NET MVC 4 -


i have on web.config file

<add name="efdbcontext"  connectionstring="data source=(localdb)\v11.0;initial catalog=stadinpeli;  integrated security=true"  providername="system.data.sqlclient"/> 

and yes in server explorer in visual studio 2012 professional edition, works efdbcontext (webui). wrong database. somehow efdbcontext database copy definitions database want connect time, jon-pc\localdb#13158683.stadinpeli.dbo.

i checked properties jon-pc\localdb#13158683.stadinpeli.dbo connection string still connects efdbcontext (webui).

where problem, have tried correct 3 hours already.

(localdb) data source wrong. try updating (local) connection string looks

<add name="efdbcontext" connectionstring="data source=(local)\v11.0;initial catalog=stadinpeli; integrated security=true" providername="system.data.sqlclient"/> 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -