Lightswitch can't connect to the database on local development (VS 2012) -
i have lightswitch installed in vs 2012. have sql server 2012 express localdb installed on machine.
i created new project, add new table, , when run project following error:
an error occurred while establishing connection sql server instance '(localdb)\v11.0'.
network-related or instance-specific error occurred while establishing connection sql server. server not found or not accessible. verify instance name correct , sql server configured allow remote connections. (provider: sql network interfaces, error: 50 - local database runtime error occurred. error occurred during localdb instance startup: sql server process failed start.
this config in c:\users\xxx\documents\visual studio 2012\projects\nightapp\nightapp\nightapp.server
<add name="_intrinsicdata" connectionstring="data source=|sqlexpressinstancename|;attachdbfilename=|applicationdatabasepath|;integrated security=true;connect timeout=30;multipleactiveresultsets=true" /> <add name="2aaf8de2-05e2-49ae-aead-766e8c010988" connectionstring="data source=(localdb)\projects;initial catalog=nightdb;integrated security=true;connect timeout=30;encrypt=false;trustservercertificate=false" />
i went through how change connectionstrings of lightswitch application in debug mode not done.
btw, sql server explorer in vs 2012 able connect localdb.
any ideas?
this may due bug in sql runtime, re-crating sql instance may fix issue.
execute following powershell commands
- delete existing instace: sqllocaldb d v11.0
- re-create instace , start: sqllocaldb c v11.0 -s
Comments
Post a Comment