wcf-ria-services

Silverlight, RIA Services, MVC2P2 = No Data

南笙酒味 提交于 2019-12-22 13:13:13
问题 I am having trouble upgrading my current project to use RIA Services. I added all the necessary web.config changes but still no luck. I everything compiles fine but when I hit the page using the datacontext I get an error. I debugged with fiddler and I'm getting a 404 on one of the request. I am getting back headers in my grid so some communication is happening but no data is actually coming through. Another thing to note is that my MVC is running windows authentication. I do have a

Silverlight 4.0 + MVC 2.0 + WCF RIA Services + EF 4.0 = Load Error

六月ゝ 毕业季﹏ 提交于 2019-12-22 10:51:39
问题 I'm trying to buid a site with the following: VS 2010 (for the updated WCF RIA Services) Silverlight 4.0 (packaged with WCF RIA Services). MVC 2 EF 4.0 I am setting it up so that the public facing pages will be html from MVC, but the administration portion will be a silverlight navigation application using using WCF RIA Services for data access. When I create the silverlight application within a webforms application, it works (I am able to add a datagrid and retrieve data using EF 4.0 and WCF

Lightswitch is slow, ADO.NET Entity Framework/Domain Service/WCF RIA Service

亡梦爱人 提交于 2019-12-21 21:26:35
问题 I'm developing an Lighswitch application in VS2012 with an external SQL Server 2008. I'm using a WCF RIA Service to fetch my data, using these techniques: http://www.c-sharpcorner.com/UploadFile/raj1979/how-to-use-wcf-ria-service-in-lightswitch-2012/. My main table contains some columns with static data and about 5 columns with foreign keys. The static data columns loads instant but all the foreign properties takes 3-5 secs to load on a screen with ~100 rows. This is not acceptable.. The

How to prevent Silverlight RIA Entity getting attached to datacontext before i'm ready

流过昼夜 提交于 2019-12-21 17:57:30
问题 I have a Silverlight 4 application for a simple 'TODO' list. The problem I'm having is that databinding is hooking up relationships on my TODO object, which causes the RIA data context to add it to the DataContext.TODOs list before I want it there. I want to treat the object as new and detached until I'm explicitly ready to add it to the datacontext. Here's how it works : I've got my TODO entity which is associated with a Status (RIA services entity relationship). I create a new TODO() entity

Ria Services Passing Complex Object as parameter to a query domain service method

淺唱寂寞╮ 提交于 2019-12-21 07:30:56
问题 I'm experiencing some difficulties with a WCF RIA Services similar to the problem specified in this thread. The domainservice method I'm creating (a Query method) should take a complex object parameter. example domainservice method: public ComplexObjectResult GetComplexObject(ComplexObjectParameter test) { //do stuff } the parameter object: public class ComplexObjectParameter { [Key] public decimal ID { get; set; } ... other fields } I get this compilation error: Error 70 Parameter 'test' of

Choice for WCF Service Hosting with IIS or Self Hosting with Windows Service

巧了我就是萌 提交于 2019-12-21 04:30:18
问题 As we want to develop a new product using Asp.Net MVC 3. The key point here is everything we talk to database by WCF web service. We are in the phase where we need to decide whether we host WCF web service in IIS OR self hosting with Windows Service. I raised this question just because I want to know that, what would be the better option to host WCF service that would satisfy my below conditions. We're expecting 120 concurrent request / second. (May be 12,000 request/visit per day) Security

Silverlight RIA Services - how to do Windows Authentication?

╄→尐↘猪︶ㄣ 提交于 2019-12-20 14:45:11
问题 I am building my first Silverlight 3 + RI Services application and need some help. It will be deployed in an controlled corporate intranet, 100% windows clients. I have started from the Silverlight Business Application template. These are my requirements: Upon launch the application needs to recognize the currently logged-in user. The application needs to have access to other properties of the user in AD, such as email, full name, and group membership. Group membership is used to grand

weird error with RIA Services “code generator encoutered a fatal exception”

牧云@^-^@ 提交于 2019-12-20 14:13:10
问题 This is the second time that I have this really weird problem with WCF RIA Services! the sad thing is that I had to solve the problem twice, going through the different hoops again :(, even though I've left a note to myself pointing to the solution :P Anyways, the "pretty useful" error message is the following: ...\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Ria.Client.targets(304,5): error : The code generator 'Microsoft.ServiceModel.DomainServices.Tools.CSharpCodeDomClientCodeGenerator'

WCF ria service SP1 timeout expired

怎甘沉沦 提交于 2019-12-19 10:15:49
问题 My solution is Silverlight which uses WCF RIA service SP1 and Entity Framework 4. I have a problem with loading large size data. I've got this error message. System.ServiceModel.DomainServices.Client.DomainException : Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. I think that it's a problem regards with timeout, so I tried below code. It worked when I hadn't install WCF Ria service "SP1". But it's not working since I've

RIA Services not returning Included Type Collection Property

↘锁芯ラ 提交于 2019-12-19 09:28:03
问题 I have a WCF RIA Services app and a model with a UserRole type that contains a collection of UserPermission objects. I use .Include("UserPermission") in the domain service and when I debug it I've verified it definitely contains the UserPermission types before returning. When I debug the Silverlight 3 client it returns the UserRoles but the UserPermission properties are all empty. These are the same UserRoles that show having UserPermissions on the service. Since everything appears correct on