This is a migrated thread and some comments may be shown as answers.
Silverlight Courseware
6 Answers 60 Views
This is a migrated thread and some comments may be shown as answers.
Will Ferguson
Top achievements
Rank 1
Will Ferguson asked on 08 Feb 2010, 04:16 AM
Thankyou for making the Silverlight courseware available. I'm finding it very helpful.

But I had a problem with page 99

4.6.3.3 Building the RIA Client

step 6.

6) Add a namespace reference to the ASP.NET service project "Imports" (VB) or "using" (C#) portion of

code.

What specifically should i be "Using"

as the line

 

 

 

    NorthwindContext context = new NorthwindContext();

 

 

 

is not succesfull

Plus here's a gotcha.: in order to use Ria Services if you have VS2010 beta installed you may need have to uninstall the WCF Ria Preview for 2010 (in control panel) and re install RIA Services for 2008  as RIA services for 2008 doesn't install side by side with it....

 

 

 

 

6 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 11 Feb 2010, 10:56 AM
Hello Will,

You should use a LinqToSql DataContext classes that are created for the Northwind database.

Hope this helps,
Stefan Dobrev
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Will Ferguson
Top achievements
Rank 1
answered on 11 Feb 2010, 09:47 PM
In my case I needed to add to the EmployeeList.xaml.cs

 

 

using HRApp.Web.Models;
using HRapp.Web.Services;

This is because I put my northwind.Edmx model in the models folder and my Organiational service in the services folder.

other users following the course would need only to 
 

 

using HRApp.web; 

 

 


The courseware walkthrough puts the model and the service in the root HRApp.Web folder.

OK so I have got through the walkthrough now. I have to say it is one of the best Walkthroughs I have done in Years.
One problem remains with my Log in. I think I might need to be accessing some asp.net roles/user database.. Is that correct??

 

 

 

 

 

 

 

 

0
Stefan Dobrev
Telerik team
answered on 17 Feb 2010, 09:00 AM
Hi Will,

You are absolutely right. By default RIA Services business application template will create an AuthenticationDomainServices which is using ASP.NET Membership provider to do its job. Here is a MSDN article which describes this in more details.

Sincerely yours,
Stefan Dobrev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Will Ferguson
Top achievements
Rank 1
answered on 17 Feb 2010, 11:06 AM
Thanks Stefan that link is just what I needed.

Now if I can just figure out vs2010rc

why can't I add a .web refernce in my app pages.
The app can't see the Data services.
There is no data in the data sources tab.
I can't builsd a "Silverlight business application"

grrr. If anyone has had this problem can they clue me in??
0
Stefan Dobrev
Telerik team
answered on 19 Feb 2010, 09:15 AM
Hello Will,

Unfortunately Silverlight 4 development is not yet possible using VS 2010 RC as you can read from this blog post. Microsoft is currently working hard to provide Silverlight 4 + RIA Services tools for VS 2010.

All the best,
Stefan Dobrev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
David Stanfield
Top achievements
Rank 1
answered on 22 Feb 2010, 06:12 PM
Unfortunately you are better off uninstalling the RC and going back to VS 20101 Beta 2 for the next month or so.

David
Asked by
Will Ferguson
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Will Ferguson
Top achievements
Rank 1
David Stanfield
Top achievements
Rank 1
Share this question
or