wcf-ria-services

Building RIA services project without Visual Studio

I'm trying to build RIA-enabled Silverlight project on the continuous integration server. There is no Visual Studio installed on it. Therefore I'm missing some libraries/targets. What needs to be installed in order to build RIA project with only MSBuild? ...

WCF Published service in IIS not working

Hi My dev environment is Windows 7 and IIS 7. i develop a silverlight 4 app that used Silverlight-Enabled WCF service. It is working true in IDE (Visual Studio 2010) but after published it in my IIS 7, service not working true. clientconfig is true beacause the published service browse is working true. WCF Service don't fail and does n...

Eager loading problem with domainservice

I have 3 tables: Tab1(ID1, ID2, Message1 ...): ID2 is foreign key from Tab2 Tab2(ID2, ID3,Message2...): ID3 is foreign key from Tab3 Tab3(ID3, Message3, ...) Then I use domianservice to generate metadata and query. In Entity Tab3 metadata, attribut [Include] is added on the navigation property Tab2. In Entity Tab2 metadata, attri...

Entity Framework 4 and SQL Server 2008 R2 Change Data Capture Not Playing Nicely Together

When I try to use these two features together, I get a compilation error on my model (note, I've renamed the entity for my _CT table "ContentHistory" and my SL4 Unit Test project is called "DomainServices.UnitTest": Error 39 Property 'DomainServices.Web.ContentHistory.C___seqval' is marked as a key property and is of Type 'System.Byte[]...

Add entity from child window causes Entity cannot be attached error....why?

I've got an order details form in Silverlight that has a listbox of order payments. The order payments are bound to their own domain datasource outside of the surrounding order. I have a button that pops up a ChildWindow control to add new order payments. An order payment has an amount and a payment method associated with it. The f...

How do WCF RIA Services provide metadata for object validation on the client side?

Is it only code generation in complile-time that does the trick? Or some run-time mechanisms are involved? ...

RIA Services: Server process returns multiple entities but Client shows 1 entity duplicated

I am running into an issue where RIA Services returns 3 entities from the server (I have verified while debugging on the server process, and have verified via Fiddler that the service is in face returning 3 entities. I am using MVVM so I am calling Load on the client side using a helper function that I borrowed from a Shawn Wildermuth ...

"References" property not visible on the client's side

So as usual I have an issue with ria service + nhibernate. The question is how to make an entity property , mapped using “references”, visible on the client side. The problem is that when you load an entity without this field and try to save it , then missing values are updated as NULL inside db. Here’s class schema: public class A {...

Silverlight Autocomplete & WCF RIA Services: Is the entire list returned to the client?

I have a database which will eventually contain thousands of records and will search this list using the Silverlight autocompletebox control and WCF RIA services. I am using the base implementation without any parameters for the "GetXXXQuery" in my domain datasource: public IQuerable<XXX> GetXXXs() { return this.ObjectContext.XXXs;...

Silverlight 4, RIA Services & Data Annotations. Tooltips not appearing on DataForm.

I'm having a problem with data annotations and the automatic tool tips on my DataForm fields. The objects bound to the DataForm have been decorated with the Display and Description attributes e.g. [Display(Name = "Email Address:", Description="We do not sell your information!")] public string EmailAddress { get; set; } The expected to...

RIA Services matching a response to the request

Hey all, I was wondering if someone could provide some advice on the following problem. We are currently developing a Silverlight 4 application based on RIA .NET Services. One of the screens in the application allows users to type in a search string and after 2 seconds of inactivity the request is submitted to our domain service. This i...

Clean method of providing blank first value in Silverlight Combobox?

I've got a combobox in silverlight that is bound to a list of objects in XAML coming from RIA servcies. Is there a clean method to add a blank value for the first item so that users have to click the dropdown in order to select something? Right now, it just displays the first item, even if the selected index is set to -1. ...

Custom Domain Service Fails but Authentication Works (Silverlight Biz App Template)

I'm hosting a Silverlight Business Application Template derived application on an IIS Server. I'm using the built-in Forms Authentication which is working perfectly. Unfortunately, I've added an additional service which has peculiar behavior. If I remote into the server and use the site everything works as expected. If I connect to the ...

How can I call a RIA service from another RIA service?

In my authentication service, I would like to call methods (query or invoke) on my User service to validate credentials. So, for example: protected override AuthUser ValidateCredentials(string name, string password, string customData, out string userData) { AuthUser user = null; userData = null; ...

WCF RIA Services and Optimistic Concurrency

I have a WCF RIA service app that in one of its services Insert method I should assign an incremental identification code to a property of its entity from the previously added record. I use SQL server and Entity framework in DAL. How can I avoid optimistic concurrency in such situations and assign the code without the knowledge of the ...

Can a DomainService return a single custom type?

I would like a method on my in my domain service similar to: public SystemState GetSystemStatus() { return new SystemStatus { InterestingStatusValue1 = 1223, OtherInterstingStatusValue = "abc", } } That doesn't work. Nothing is auto-generated for the Silverlight client app. Howerver if I make this an IQue...

Is it reasonable to have both DomianService and Silverlight-enabled WCF Service

At the moment it seems that a RIA Domain Services class can not return a sinlge custom type. There are parts of my app that needs just that, so think the only way to get that is to call back to a simple silverlight-enabled WCF Service, which i beleive will not have a problem returning a custom type. I don't see where the Silverlight cl...

Difference in RIA services between .NET 3.5 and 4?

I am about to start a new project. Using VS2010, Silverlight 4, and RIA Services are a given. However, due to the web server we have available, there is some question of whether we can use .NET 4 or whether we will have to stick to .NET 3.5. I know that RIA Services can work with .NET 3.5. But what I'm curious about is whether there ...

How to programatically detect if a DataForm is in edit mode

I'm using a DataForm in Silverlight 4. Several DataForms, actually, and they share a common RIA Services context. Here's the problem I'm having... If I start editing a DataField in one of the DataForms, then click on a button that calls Context.SubmitChanges(), I get the following error: �Entity 'foo' is currently being edited and ...

Where does the navigation logic belong, View, ViewModel, or elsewhere?

I a button in a view, bound to an ICommand property of the ViewModel (actually it's RelayCommand from mvvv-light) If the user clicks on the button I want to navigate to a new view. Of course the NavigationService is part of the View not the ViewModel. That implies that the navigation is the responsibility of the View? But in my case,...