远程服务器返回错误:NOTFOUND。 Silverlight的WCF + [英] The remote server returned an error: NotFound. Silverlight + WCF

查看:321
本文介绍了远程服务器返回错误:NOTFOUND。 Silverlight的WCF +的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图调用Web服务的几个小时。
我已经加入clientaccesspolicy.xml:

I'm trying to call web service for few hours. I have added clientaccesspolicy.xml:

<?xml version="1.0" encoding="utf-8"?>
<access-policy>
  <cross-domain-access>
    <policy>
      <allow-from http-request-headers="*">
        <domain uri="*"/>
      </allow-from>
      <grant-to>
        <resource path="/" include-subpaths="true"/>
      </grant-to>
    </policy>
  </cross-domain-access>
</access-policy>

和crossdomain.xml的:

and crossdomain.xml:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
  <allow-http-request-headers-from domain="*" headers="SOAPAction,Content-Type"/>
</cross-domain-policy>



到我的网站的根目录下。
Web服务从IIS调用,它的工作在这里。

to root directory of my web site. Web service is called from IIS, and it's working here.

但是,当我试图调用从Silverlight应用程序我的WCF Web服务我得到这个错误

But when I'm trying to call my wcf web service from silverlight application I get this error:

远程服务器返回错误:NOTFOUND

The remote server returned an error: NotFound.

这是日志从菲德勒:

答:InternalServiceFaultThe服务器由于$无法处理请求b $ b中的一个内部错误。有关错误的上IncludeExceptionDetailInFaults(无论是从
ServiceBehaviorAttribute或从在< serviceDebug>
配置的行为)的详细信息,或者反过来
中的服务器上,以发送该异常
信息返回给客户端,或打开跟踪根据的
的Microsoft .NET Framework 3.0 SDK文档并检查服务器
跟踪日志。

a:InternalServiceFaultThe server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.

这是代码,当我得到一个错误:

This is code, when I get an error:

public int EndUserExist(System.IAsyncResult result) {
       object[] _args = new object[0];
       int _result = ((int)(base.EndInvoke("UserExist", _args, result))); //Here
       return _result;
            }



我在做什么错了?

What am I doing wrong?

推荐答案

所有的权利;)
现在它的工作。
我在web.config中开启调试所以我得到了小提琴手异常消息。
我需要在IIS中设置身份的用户池的SQL数据库。

All right ;) Now it's working. I turned on debug in web.config so I got exception message in Fiddler. I need to set identity user in pool on IIS for sql database.

这篇关于远程服务器返回错误:NOTFOUND。 Silverlight的WCF +的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆