开发者

Deployment Error: Silverlight 4.0 w/WCF RIA Services in ASP.NET MVC 2 App

I've got an MVC 2 App with an RIA Services link to a Silverlight Application. The public facing portion of my site will be strictly MVC/HTML, but the administive portion will be silverlight (hosted in an MVC view page with data coming from RIA Services). On my development machine, all is well, but when I deploy to Discount ASP servers, neither the MVC controller/view nor the WCF RIA services called from silverlight function:

A silverlight datagrid gets a load error:

System.ServiceModel.DomainServices.Client.DomainOperationException: Load operation failed for query... The remote server returned an error NotFound.

In the MVC page where I had a simple table that worked prior to adding an EF model and DomainDataSource, I now get the error:

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

This is very similar to an issue I had before (with the beta versions of RIA Se开发者_StackOverflow中文版rvices & SL4 & MVC 2), but after upgrading from the beta to the release, the fix I had made before with respect to routing doesn't seem to work any longer. The link for that issue is: SL4/MVC2/WCF RIA Services = Load Error

I'm really struggling with deploying, and could use some help if anybody can shed any light on this.

Thanks! Dennis


Mvc 2 with Ria to Silverlight? Im having the same 404 problem.

One upon a time I fixed the problem by telling my rout's to ignore the svc's.

routes.IgnoreRoute("{*allsvc}", new { allsvc = @".*\.svc(/.*)?" });

Post beta, this ignore route trick no longer works for me.


You have to deploy System.ServiceModel.DomainServices.EntityFramework to your webserver.

cyberwaelder

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜