0

Lightswitch solution with an external database was able to be built and debugged. It has lain dormant and in the meantime the development machine and myself have moved onto a domain. Now an attempt to build the solution gives: Error 15 An error occurred while establishing a connection to SQL Server instance '(LocalDB)\v11.0'. Login failed for user 'MyNewDomain\MyNewUserName'. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.0\Microsoft.LightSwitch.targets 160 10 TrueTrackLightSwitch2013

It seems I need to tell (LocalDB)\V11 about a new user (MyNewUserName) but I don't know how to do this.

It also raises concerns in that I want to pass the maintenance of this project to another developer once I get it going again.

The project is accessing data from an external SqlServer 2008 database. This external database holds the Aspnet tables for form based security.

I don't understand where '(LocalDB)\v11.0' comes into the picture

thanks

Bob

4

1 回答 1

0

解决方案是按照以下链接中的步骤删除文件夹。删除数据库步骤失败,我说数据库不存在。但我能够打开我的项目并重建它。 MSDN LightSwitchForm 发布

有效的答案是:

LightSwitch 团队的 Matt 让我再次跑步:

1)删除目录:C:\Users{您的用户名}\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\v11.0 注意:将“{您的用户名}”替换为您登录的名称和。2) 在你的 Windows 开始菜单中输入 CMD 并按下回车键。当命令行窗口出现时键入: cd "C:\Program Files\Microsoft SQL Server\110\Tools\Binn" 然后: sqllocaldb.exe delete v11.0 它会说: LocalDB instance "v11.0" deleted。然后打开一个 LightSwitch 项目并运行它,然后它应该可以工作了

于 2015-01-16T16:51:05.633 回答