wcf-ria-services

Load Operation failed for query 'Login'. The remote server returned an error: NotFound

与世无争的帅哥 提交于 2019-12-25 02:17:16
问题 I'm working with Siverlight 5.0, RIA Services and Entity framework in my project. When I deploy the application using VS, the application runs fine. However, when I use a web deployment project to publish the application, the first call to a RIA services service on the same system fails. An error similar to this is produced: Load Operation failed for query 'Login'. The remote server returned an error: NotFound I guess, the last message is not enough to get the concrete error. Suggest me what

Slow Operations In A RIA Services Domain Service Class

空扰寡人 提交于 2019-12-25 02:02:08
问题 sHi All, I am using silverlight 3 with RIA services. I was wondering how I should deal with slow operations in a domain services class? I have an operation that will take a couple of minutes. I get a WCF timeout after a minute while the client is waiting for a response from the server. Another approach perhaps? Is is possible to tell the domain services class to start an operation, and then poll the server every 5 seconds to see if it is finished. I tried implementing this and the problem I

Cannot foreach through data context

眉间皱痕 提交于 2019-12-25 01:53:59
问题 i want to compare through 2 information, one is user input and second is admin ID in database. in my project, i'm using WCF Ria. i did created one auto-generated Domain Service Class and the code to retrieve everything in tblAdmin was auto-generated. i load the data in this way :: var context = new OrganizationContext(); var x = context.tblAdmins; context.Load(context.GetTblAdminsQuery()); cb1.ItemsSource = x; it can load in this way, but i cannot get the x.adminID with this. so i tried this

Problem with WCF Ria Services RequiresRole attribute

对着背影说爱祢 提交于 2019-12-24 21:39:16
问题 I have a User class that implemented the IUser interface and is used in the AuthenticationService of my WCF RIA app. Whenever I apply the RequiresRole attribute to one of my operations I get Access to the operation is denied error even though WebContext.User.IsInRole("Managers") on the client side returns true. Does anyone know why I get this error? Thanks. 回答1: The reason WebContext.User.IsInRole returns true because the IUser has a property Roles . This property is set with the user's roles

Ria Services Entity with collection is empty when not supposed to?

一世执手 提交于 2019-12-24 16:43:14
问题 Hi I'm have an object model with an Employee and EmployeeWorksiteReference (cause it's an many to many relation I have and middle entity). I use Association, Include and Composition tags on it to be able to send it over as one when saving and so on, and when saveing it works perfectly. But when I load an Employee with some EmployeeWorksiteReferences the collection turns up empty on the client, when I check in the debugger exactly before it returns the result the list contains instances but on

How to do a server-side Insert/Update (Upsert) from Silverlight RIA services

落花浮王杯 提交于 2019-12-24 10:25:36
问题 While RIA services seems very good for table operations & queries, I am stuck on one traditional update situation. The UPSERT (Update if exists, else Insert new): First: I want to add a record server-side if the record does not already exist, otherwise if it already exists, I want to update one of its current field values. Second: I do not want to query the database from client-side, to see if the record exists. I just want to call an "UpsertData" method on RIA services and have the add or

Share WCF RIA Services Library between Silverlight Applications

女生的网名这么多〃 提交于 2019-12-24 07:24:21
问题 I have: - some count of Silverlight Web applications, hosted on different IIS virtual directories. One Application has WCF RIA Services, which part of functionality I want to share between all these SL applications How to do this? I have idea to create WCF RIA service library, which referenced to WCF RIA Services host and have needed functionality to clients. But If I will create references to this DLL from my different solutions, how this DLL (WCF RIA Services Library) known, where address

Share WCF RIA Services Library between Silverlight Applications

让人想犯罪 __ 提交于 2019-12-24 07:22:09
问题 I have: - some count of Silverlight Web applications, hosted on different IIS virtual directories. One Application has WCF RIA Services, which part of functionality I want to share between all these SL applications How to do this? I have idea to create WCF RIA service library, which referenced to WCF RIA Services host and have needed functionality to clients. But If I will create references to this DLL from my different solutions, how this DLL (WCF RIA Services Library) known, where address

Share WCF RIA Services Library between Silverlight Applications

半腔热情 提交于 2019-12-24 07:22:04
问题 I have: - some count of Silverlight Web applications, hosted on different IIS virtual directories. One Application has WCF RIA Services, which part of functionality I want to share between all these SL applications How to do this? I have idea to create WCF RIA service library, which referenced to WCF RIA Services host and have needed functionality to clients. But If I will create references to this DLL from my different solutions, how this DLL (WCF RIA Services Library) known, where address

How to use NHibernate and DTOs with RIA Services

陌路散爱 提交于 2019-12-24 02:22:36
问题 I’m using NHibernate with RIA Services and Silverlight 4. I create DTOs for transferring the data via RIA Services rather than distributing my domain layer objects (as per Martin Fowler’s First Law of Distributed Object Design: “Don’t distribute your objects!”). The DTO objects are flattened down to two layers from five corresponding layers in the domain layer. Here’s my problem. After making changes in Silverlight 4, RIA Services knows which DTO objects have been modified, but in the server