首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > CAD教程 >

Silverlight+RIA Servce部署时出有关问题

2012-03-20 
Silverlight+RIA Servce部署时出问题大家好,程序的结构如标题,我今天在部署的时候浏览器提示silverlight.j

Silverlight+RIA Servce部署时出问题
大家好,
  程序的结构如标题,我今天在部署的时候浏览器提示silverlight.js的脚本错误,错误如下:
消息: Unhandled Error in Silverlight Application Load operation failed for query 'GetSYSTEM_MST'. 远程服务器返回了错误: NotFound。 位于 System.ServiceModel.DomainServices.Client.OperationBase.Complete(Exception error)
  位于 System.ServiceModel.DomainServices.Client.LoadOperation.Complete(Exception error)
  位于 System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult)
  位于 System.ServiceModel.DomainServices.Client.DomainContext.<>c__DisplayClass1b.<Load>b__17(Object )
行: 1
字符: 1
代码: 0
我想问下这个导致这个错误的原因及解决方法,谢谢!

[解决办法]
有好几个原因可能产生这种错误。

比如一次返回太多数据,也就是没进行服务器端分页(如用DataPager)。

System.ServiceModel.DomainServices.EntityFramework,System.ServiceModel.DomainServices.Hosting,System.ServiceModel.DomainServices.Server三个设为Copy Local>True。

还有win7的IIS设置问题,参考如下:

引用Configuring IIS

RIA Services supports IIS6/IIS7 deployments.

However WCF (and by association RIA Services) has a limitation that it does not support MultipleAuthenticationSchemas enabled in IIS.

So if you are using Forms Authentication in your application (if you built your application using the Business Application template, Forms Auth is the default there) you need to make sure that for the IIS VirtualRoot that hosts your WebApp Forms Auth is enabled. Forms Auth + Anonymous will also work fine but Forms Auth + Integrated Auth is not supported.

Similarly if you are using Windows Authentication in your application (for a default Web Application no Authentication Mode is specified in the Web Config and the default Authentication Mode is Windows) you need to make sure that for your WebApp only Integrated Auth enabled.

If you do not have access to your servers IIS settings (most hosters will give you an option to choose the Authentication Mode for your Web Application) you will need to work with your Server Administrator to get those changed.

I talk later about detecting whether IIS is configured correctly for your Web application.

[解决办法]
请看我这篇文章试试http://blog.csdn.net/jaychouliyu/article/details/7055905

热点排行