netriaservices

Invariant dates with WCF RIA Services

Hi Is there any way to prevent Silverlight/RIA Services from converting a datetime object on the wire? Right now, I see datetimes set to 'Local' or 'Unspecified' being converted to the local time of the server when they are sent over the wire. For example: The client and server are both in UTC -04:00:00. I use DateTime.Today (kind ...

Get ErrorMessage from ResourceFile / RIA Services

Hi My goal is simply to show a language-specific errormessage for a Required-Annotation: [Required(ErrorMessageResourceName = "LastNameRequired", ErrorMessageResourceType = typeof(ValidationMessage))] LastNameRequired is the key of the string in the resourcefile, ValidationMessage is the type generated by the resource file. The resou...

Domainservice returns error: "Argument data type text is invalid for argument 1 of lower function"

I have a domainservice with, for now since I'm debugging, only 1 fitlerdescriptor on. It gives me the weirdest error though. The error is : "Argument data type text is invalid for argument 1 of lower function" I set up the filterdescriptor like this, because the tetbox is in an expander control and therefore xaml binding is not possible...

Creating complex-featurerich yet comprehensive user-intuitive search forms with .net riaservices

I need to make some complex, feature rich search forms for my silverlight application, but I need to do it in a way that the user understands, so it's not only me as a developer who thinks that it's really smart. Are there any guidelines or guides that can help me to do this? I think I've created the form and erased it 3 times now, I rea...

RIA Service initialization problem

Hello, I have a problem with RIA services. Some times (not always) I get an InvalidOperationException with the message: "EntityTypes has already been initialized" The error comes from the generated file but I don't know how to resolve this issue. Google brings out only 2 results which are not very helpfull. Does anybody know what I co...

Validation on subclasses

Hello. I've a small inheritance-tree like this: BaseGuest -> GuestA -> GuestB -> GuestC BaseGuest has a member 'Firstname' which is required for GuestA and GuestB, but not GuestC. So I've there are Required-Annotations on GuestA.Firstname and GuestB.Firstname. [Required(ErrorMessageResourceName = "FirstNameRequired", ErrorMessag...

Making asynchronous calls in a RIA services method

I have a Silverlight 4 application using RIA services. One of the RIA service methods does something similar to the following: List<Foo> fooList = this.GetListOfFoo(); AnotherService aService = new AnotherService(); foreach (Foo foo in fooList) { aService.SomeMethodCompleted += this.methodCompleted; aService.SomeMethodAsync(foo);...

Logging in silverlight 4

How can I log serverside domainservice ria errors in my domainservice in sl4? I tried looking at clog, but that's not compiled for SL4, only SL3 and below ty ...

Silverlight 4: Business Application Template

Hello, I am developing a Silverlight 4 application which is based upon Business Application Template. I am interested to ask user to login and display a login form as soon as user arrives to my site. I need to makes sure that the user cannot see/navigate to any other page of the application until he/she logs in. Could you please help ...

cannot add new item to PagedCollectionView in SL4 app with WCF RIA Services

I created a wcf ria service application (with Silverlight 4 and SQL Server 2008 Express). Within my domain model I have two tables projects and times which are linked by a foreign key. This works all very well, as long as I use the domain context methods directly to add, update, delete objects to the underlying database. Now I wanted t...