Including WCF RIA Services to an existing Silverlight Project - silverlight

I want to include WCF RIA services to an already existing Silverlight Pproject that was created with MS Expression Blend. Whenever I search the web for information about creating WCF RIA services I only find tutorials about creating a solution by creating a new project with Visual Studio 2010.
I know how to create a new Silverlight application with RIA services using Visual Studio 2010, but I can't find a tutorial on how to include a RIA service after creating a Silverlight project. Is it maybe not possible to do so?
Every bit of help is welcome. Thank you in advance and please excuse my bad english.

Open your Silverlight project configuration and add a "WCF RIA Services link".
See MSDN.

Related

Creating a TFS project from a silverlight application

I am developing a Silverlight application that displays a dashboard of builds from TFS and I just found out that I cant reference TFS libraries from Silverlight as they are built with different runtime. Whats the workaround? Is their a Silverlight clr version of TFS libraries I can reference?
Thanks
You might be able to accomplish this by using the TFS OData API available here: https://tfsodata.visualstudio.com/

Use Sql Server FileStream in Silverlight application

In a silverlight applicaiton i use entity framework as Data Access Layer. I want to use FileStream Capability in Silverlight applicaiton , but entity framework does not support this.how can i implement this with or without entity framework in silverlight application?!!!
I found some excellent pointers on using SQL FILESTREAM and Silverlight + RIA Services in Chris Rouw's blog:
Storing Files in SQL Server using WCF RIA Services and Silverlight - Part 1
Storing Files in SQL Server using WCF RIA Services and Silverlight - Part 2
Part three available as well...
Pretty good answer to the question here.
Basically, you use an HTTP handler in ASP.Net to return the file over HTTP so Silverlight can download it and serve it up to the client. It is pretty hard to give you much more detail than this since your question is pretty vague.

Silverlight project will only work with Silverlight assemblies

Now a days, I make one application in Silverlight to get Emails from MS Exchange Server online. So first i create Silverlight Application in Visual Studio 2010. Now Issue is that when i add reference Microsoft.Exchange.Webservice.dll to silverlight application so error shown below:
"You cant add a reference to Microsoft.Exchange.Webservice.dll as it was not built against the Silverlight runtime. Silverlight project will only work with Silverlight assemblies".
I have searched error but failed to solve this issue.. please help me..
Silverlight uses a different runtime and a subset of the regular .Net framework, which is why you can only reference other SIlverlight libraries.
I would also think you shouldn't be referencing the Microsoft.Exchange.Webservice.dll directly anyway, rather you should be adding a web service reference to a web service exposed by an existing installation of Exchange, and then using webservice calls to retrieve the emails.
Edit:
This excellent previous StackOverflow should be enough to get you underway: Getting started with Exchange Web Services 2010

How to debug incompatibility between .NET RIA Servces (July Preview) and Silverlight MVVM toolkit?

I have discovered that when I install .NET RIA Services (July preview) it breaks all of my projects that were created with Michael Sync's Silverlight MVVM toolkit.
This MVVM toolkit includes a Visual Studio project template which is now failing to build. Here is the message I get:
The project file "..\SilverlightModelViewApplication.Web\SilverlightModelViewApplication.Web.csproj" was not found.
I don't find the string "SilverlightModelViewApplication" anywhere in the solution. I get the same message if I create an empty new project using the template. If I uninstall .NET RIA Services with Programs & Features, my MVVM projects build successfully; when I reinstall .NET RIA Services my projects fail to build again.
How can I debug this? I posted a comment on the MVVM toolkit site but there has been no response. Thanks!
+tom
This question was answered on the MS Silverlight forum by MS engineer Brett Samblanet.
Short-term fix: Turn off the RIA Service link to "SilverlightModelViewApplication.Web.csproj" in the .web project properties.
Long-term fix: Change the MVVM template .csproj file entry for <LinkedServerProject> to an empty entry.

Silverlight databinding

I have to bind sql table to one of the grid in my silverlight page.
I have seen all the examples in web using wcf services or web services for databinding.
Can i use datalayer dll (regular way of datalayer classes) to bind data to silverlight pages.
Anyone please suggest a good article on this.I am used to the regular way of devolopment like datalayer as dll.
Is this possible in silverlight?If this is possible why system.data dll's are missing from the project.?
Thanks
SNA
System.Data.dlls are missing from Silverlight because Silverlight is a subset of .Net designed to run in a browser - and browsers don't usually have databases available! For this reason you usually have to create custom objects and return these through a WCF service.
Scott Guthrie's tutorial might be helpful as a guide to building Data Driven silverlight applciations.
Looking a few months into the future, you'll soon be able to use .Net RIA Services (Rich Internet Applications) for this kind of thing. Here's a link to the preview

Resources