首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Silverlight 5 WCF Ria Services 404 IIS 5上的错误

Silverlight 5 WCF Ria Services 404 IIS 5上的错误
EN

Stack Overflow用户
提问于 2013-04-14 21:27:17
回答 2查看 1.6K关注 0票数 4

我使用Silverlight和WCF服务开发了.an应用程序。

应用程序必须是使用IIS 5的windows XP计算机上的主机。

由于我在网上找到的信息,我没有任何问题地部署应用程序。

但是现在,当我的应用程序试图执行第一个WCF查询时,我遇到了以下错误:

消息: Silverlight应用程序加载操作中的未处理错误在查询“Login”时失败。HttpWebRequest_WebException_RemoteServer参数: NotFound调试资源字符串不可用。通常,键和参数提供足够的信息来诊断问题。(参见System.ServiceModel.DomainServices.Client.OperationBase.Complete(Exception错误处的RemoteServer ))在System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.<>c_DisplayClass1.b_0(Object状态下)在System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.RunInSynchronizationContext(SendOrPostCallback回调时,(对象状态)在System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.HandleAsyncCompleted(IAsyncResult,asyncResult)在System.ServiceModel.DomainServices.Client.AsyncResultBase.Complete() ) (在System.ServiceModel.DomainServices.Client.ApplicationServices.WebAuthenticationService.HandleOperationComplete(OperationBase操作)在System.ServiceModel.DomainServices.Client.LoadOperation.<>c_DisplayClass4`1.b0(LoadOperation__1 arg) at System.ServiceModel.DomainServices.Client.LoadOperation1.InvokeCompleteAction() (在System.ServiceModel.DomainServices.Client.OperationBase.Complete(Exception错误)在System.ServiceModel.DomainServices.Client.LoadOperation.Complete(Exception (在System.ServiceModel.DomainServices.Client.LoadOperation.Complete(Exception错误)在System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult(在System.ServiceModel.DomainServices)。Client.DomainContext.<>c_DisplayClass1b.b__17(Object )

如何纠正此错误?

在windows 7机器上的IIS 7上成功地托管了应用程序,wcf也成功地工作了。

更新:在使用Fiddler之后,我发现我的应用程序的错误是404,Silverlight找不到Ria服务。

EN

回答 2

Stack Overflow用户

发布于 2013-04-15 07:50:37

在这种情况下,NotFound意味着服务器上的任何错误。您需要获得详细的WCF日志。我建议您向web.config文件中添加以下内容,以启用WCF日志记录:

代码语言:javascript
复制
<configuration>
  ... your regular configuration here ...
  <system.diagnostics>
    <sources>
      <source name="System.ServiceModel" switchValue="All" propagateActivity="true">
        <listeners>
          <add name="traceListener" type="System.Diagnostics.XmlWriterTraceListener"
initializeData="C:\wcflogs\your_wcf_service_log.svclog"  />
        </listeners>
      </source>
    </sources>
  </system.diagnostics>
</configuration>

然后您可以使用服务跟踪查看器工具(SvcTraceViewer.exe,SvcTraceViewer.exe)打开.svclog文件,并查看所发生的详细情况。

票数 0
EN

Stack Overflow用户

发布于 2013-04-23 14:21:38

尝试在服务器上重新安装RIA服务。

我认为命令是RiaService.msi Server=true

重新安装后,尝试在web浏览器上直接访问您的服务。您的服务的URL为http://YOURDOMAIN.COM/YourAPP/Full-NameSpace-Of-Class.svc

在名称空间中,您必须更改点(.)被破折号(-)

如果它不返回响应,则必须验证是否安装了WCF并在IIS中注册。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16004517

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档