The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Database connectivity using silverlight
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Lalit ThawranieditedPosted Nov 24, 2010, 9:02 AMEdited Nov 24, 2010, 9:21 AM
I want to validate username & password in my 'login form' from the database.i am using SQL server 2008 and silverlight 4.Please tell me how to do that... i am getting an error while adding a service reference: "System.InvalidOperationException: The type 'Scragil.Web.Service1', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found"
Apurv SamantPosted Jul 29, 2010, 9:32 AM
Hi, I am getting errors in my code. Please help. namespace ApurvHSamantPlanktonprogf500 { public partial class Page : UserControl { public Page() { InitializeComponent(); } private void UserControl_Loaded(object sender, RoutedEventArgs e) { ServiceReference1.ServiceClient webService = new ServiceReference1.ServiceClient(); webService.GetaaSpeciesListsCompleted += new EventHandler<ApurvHSamantPlanktonprogf500.ServiceReference1.GetaaSpeciesListsCompletedEventArgs>(webService_GetaaSpeciesListsCompleted); webService.GetaaSpeciesListsAsync(); } void webService_GetaaSpeciesListsCompleted(Object sender, ServiceReference1.GetaaSpeciesListsCompletedEventArgs e) { grdData.ItemsSource = e.Result; } } The places in bold are the once wherein I am getting errors. Thanking you.
Chris JonesPosted Apr 17, 2010, 11:16 AM
Nice example Raj - really useful and easy to follow. I'm using VWD 2010 Beta so had to change DisplayMemberBinding -> Binding I also got sa is not a trusted user when trying to access the Vendor database. I eventually got round this by using the MS Web Platform Installer to install MS SQL Server 2008 along with its Management tool, attached your DB, added myself as a user, created the ConnectionString using a Test.udl on my Desktop and replacing the one in the WebConfig file with that.
sree vaniPosted Jul 2, 2009, 8:36 AM
how to edit and save in the datagrid to the service
Milind GokhalePosted Feb 24, 2009, 12:42 PM
Hey i tried the given solution in this article. But this is only ofr database retirieval. I would like to know how to do add delete and modify operations in database and also commit the changes. I got many solutions on internet. But htey're very complex. I expect something much simple like this one for retireval is... Please help....