I just saw Peter Kellner give a good demo of RIA Services, so I thought I’d try my version. We all like watching Tim Heuer’s videos so everyone does their own spin on it. I’m not sure where I’ll end up with these series of blog posts, but I do know I need to start from the beginning. And this is the beginning. It is hard to do this stuff (RIA Services) if you are totally new to .NET, but if you’ve done a few Web Form or WinForm apps, you should be good to go here.
This is about “Hello World” for RIA Services using Visual Studio 2010 and Silverlight 4 Beta.
The RIA Services provides a pattern to write application logic that runs on the mid-tier and controls access to data for queries, changes and custom operations.
It also provides end-to-end support for common tasks such as data validation, authentication and roles by integrating with Silverlight components on the client.
Long term we want to build out a complete application. But for now we want to get setup.
This blog is about getting setup to develop RIA Services with VS 2010 Beta 2. We just want to verify we can say, “File, New Project,” compile, then Run.
Here is where we are going in a future blog:
Click on “Get Started with Silverlight”
That is easily fixed however.
Silverlight 4 Beta Tools for Visual Studio 2010
or
http://go.microsoft.com/fwlink/?LinkID=177508
It will take a while to install. I looked at my running processes and ngen.exe was running in the background. The Native Image Generator (Ngen.exe) is a tool that improves the performance of managed applications. Ngen.exe creates native images, which are files containing compiled processor. Cool stuff. This can take up to 15 minutes to complete.
This should be it. You will need to have Visual Studio 2010 Beta 2 installed as well. This is explained below.
The above steps should work. You may have to uninstall previous versions of Silverlight 3. Go into “Control Panel” and select “Uninstall a program.”
Important Link
We are interested in .NET RIA Services
The click we really want is:
I am using Visual Studio Beta 2, so the logical download is:
http://www.microsoft.com/downloads/details.aspx?FamilyID=91998faf-d2df-42bb-af2e-17d43d7ce078&displaylang=en
You can download the wonderful Visual Studio 2010 with Beta 2 at:
http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx
The price is right. It is free.
Never hurts to get some documentation:
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=b6127b9b-968c-46c2-8cb6-d228e017ad74
Don’t for get the Silverlight Toolkit, which is a collection of Silverlight controls, components and utilities made available outside the normal Silverlight release cycle.
Run the .msi file.
Microsoft Silverlight 4 Toolkit November 2009 Setup.
The default is to install everything.
Display the Welcome Page.
This is the welcome page.
Download some help while you are at it:
We can start by clicking “New Project” and the making the appropriate entries as seen below.
Make sure to select the following:
You should end up with the following project:
Let’s go to our Silverlight control and say “Hello World”.
Change the text “Home page content”
Goto the “Build” menu, and choose “Build Solution.”
Set the Start Page and make sure “HelloWorld.Web” is the start project.
Now run (hit F5) to see “Hello World !”
This is the beginning to a much larger journey. My goal is to get this Silverlight application to get data from the AppFabric or from Azure.