Skip to main content

Microsoft Silverlight

Advanced Forum Search Results

  • Re: Implementing Silverlight Faults in SL 3.0

    I had to do the same thing jemiller mentioned as well to get mine to work. Abbreviating the type information (which I've seen work in other cases in config files in the past) doesn't seem to work in this case. Every piece of the type (namespace, assembly, version, culture, and publickeytoken) must be explicitly specified. I'm still ...
  • Re: Re: Re: Problem with RejectChanges()

    Here are some answers from the RIA Services team to the questions I posed to Microsoft: RejectChanges() Issue: This is a known issue, and they have a bug logged for it. [Required] Attribute on EntityRef Properties: Still working with them on this issue. They know of this problem when using the EF framework, but we're using Linq to Sql, so ...
  • Re: Re: Problem with RejectChanges()

    I'm glad to hear someone else ran into these same issues because I noticed both of these things myself recently (the [Required] validation issue on the server and the RejectChanges() problem with respect to associated entities). I was also unable to solve the RejectChanges() issue and figured I'd probably have to approach it kind of like ...
  • Re: Error deleting entity

    I finally figured out what was happening. When RIA Services went to delete the entity, it was using the [Association] attribute to determine the identity of the entity to delete, but the key stored in the identity cache (internal to the DomainContext) was the result of calling GetIdentity() on the entity. The two didn't match up ...
  • Re: Pass an entity from one domaincontext to another?

    If you get this solved, I'd be interested in the solution too. I ran into the same problem yesterday. In our database we have Users, Roles, and Companies. A user can be assigned to multiple companies and can be assigned a single role within each company. If I pull a role from one DomainContext and then assign it to a user in another ...
  • Re: DomaindDataSource problem in Remove

    I've run into this also but have discovered a workaround I can use until the next release. To work around this issue, I do three things: Hook up an event handler to the LoadingData event of my DomainDataSource. When I successfully delete an item from the DDS, I set a flag called _deletedItem to "true." In my ...
  • Re: RIA Service messing up my Dates

    Calling ToLocalTime() isn't the issue, at least not in my case. I already do that on the client anyway to account for the timezone difference. The issue is that even though the server-side dates are in UTC format, the code that serializes the dates and passes them across the wire (i.e. the JSON serialization code) is doing a "to UTC" ...
  • Re: Server-side validation

    The approach Klinger recommended is basically the same way I handle this, too. Client and server-side errors are both sent to the same ValidationSummary control. If I'm using a DataForm, I use the ValidationSummary control in the DataForm. Otherwise, I add my own ValidationSummary control in my XAML and use that one. Here's how a typical ...
  • Re: RIA Service messing up my Dates

    I posted the same question a week or so ago and haven't gotten an answer yet. There has to be someone else out there who's passed a date across the wire using RIA Services and has seen this. Anyone?
  • Error deleting entity

    I got an exception while deleting an entity, and this is the first time I've ever seen something like this. It normally works fine. Here's the exception: Unable to cast object of type 'System.Windows.Ria.Data.EntityKey`2[System.Int32,System.Windows.Ria.Data.EntityKey`2[System.Int32,System.Int32]]' to type ...
1 2 3 4 5 Next >
Microsoft Communities