Reputation: 1879
In Visual Studio 2010 I create a new LightSwitch project.
On the "start with data" screen I click "create new table" link.
I name and add a couple columns, I add one form and then run the project and I get this exception:
An exception occurred when building the database for the application. The target database schema provider could not be determined. Deployment cannot continue.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v1.0\Microsoft.LightSwitch.targets
Seems simple yet it doesn't work.
How can I specify the target database schema or get around this error?
Upvotes: 5
Views: 3269
Reputation: 12163
What version of SQL Server are you using?
I've seen people have this issue with SQL Server 2012 (Denali).
Can you try with SQL Server Express 2008 or 2008 R2?
You can have multiple instances of SQL Server Express installed, however only one should be running.
Ensure your SQL Express instance, has user instance enabled, which is required by LightSwitch:
How to change the database:
See this article for some more discussion on this topic.
Upvotes: 3