I have developed the COM (dll) component to work with the data (CRUD) using Visual FoxPro and deployed it as a Web Service. Сomponent implements all the business logic of the application. I want to use it in LightSwitch. How can I do this? Thanks.
To integrate custom data sources into LightSwitch, you can build a WCF RIA Service that calls into your custom data source/business logic. The WCF RIA Service can then be imported into LightSwitch, and you can use it like any other data source. Michael Washington has a ton of examples on building WCF RIA Services on his help site: http://lightswi
tchhelpwebsite. com/. For example, here's a good starter: http://lightswi tchhelpwebsite. com/Blog/tabid/ 61/EntryId/34/C reating-a-Simpl e-LightSwitch-R IA-Service-usin g-POCO.aspx
What changes are needed to execute this simple stored procedure with the VSLS HYML Client (Update 2)? I have not been able to find an example.
I'm having trouble connecting to my instance of Sql Server. "A network-related or instance-specif
ic error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)" Named Pipes is enabled and the server has been restarted. Here's my string: connectionStrin g="Provider=SQL NCLI11.1;Integr ated Security=SSPI;I nitial Catalog=Adventu reWorks2012;Dat a Source=Z7561\MS SQLSERVER" /> Thanks.
Try using the following format: connectionStrin
g="Data Source=Z7561\MS SQLSERVER;Init ial Catalog=Adventu reWorks2012;In tegrated Security=True" I don't suggest using "Provider=SQLNC LI1.1". See http://msdn.mic rosoft.com/en-u s/library/ms254 500(v=VS.80).as px for more help on using connection strings.
Awesome!! Great samples!!!