Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Please Help me,

I designed a LightSwitch app ("Application9") with intrinsic database,
while publishing the app, I need to publish the database to a running SQL Server ("MySQLserver").


I put both of User Connection and Schema are the same:
Data Source=EHABELNAHAS-PC\MySQLserver;Initial Catalog=Application9;Integrated Security=True;Pooling=True;Connect Timeout=30;User Instance=False


But it always FAIL giving the error:

------------------------------------------------------------------------------------
Error 1 An exception occurred when deploying the database for the application.
Could not deploy package. C:\Program Files\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Publish\v2.4\Microsoft.LightSwitch.Publish.targets 1565 10 Application9
------------------------------------------------------------------------------------

Your help will be highly appreciated

Thanks in advance
Posted
Comments
kbrandwijk 7-Sep-14 14:55pm    
There are a lot of issues with SQL Deployment for LightSwitch applications. If using SQL 2014, Microsoft has confirmed it doesn't work. Try SQL 2012 or earlier.
Also, sometimes the user that the publish target tries to create causes an issue, if that user already exists in the database, or is owner. How is your publishing configured?
ehabelnahas 7-Sep-14 15:09pm    
ok, I have also SQL 2012 installed with server already created named SQLserver12
would you please tell me how should be the right connection string?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900