C# 远程服务器返回错误:NotFound。Silverlight&x2B;周转基金
我试着打几个小时的网络服务。 我添加了clientaccesspolicy.xml:C# 远程服务器返回错误:NotFound。Silverlight&x2B;周转基金,c#,wcf,silverlight,C#,Wcf,Silverlight,我试着打几个小时的网络服务。 我添加了clientaccesspolicy.xml: <?xml version="1.0" encoding="utf-8"?> <access-policy> <cross-domain-access> <policy> <allow-from http-request-headers="*"> <domain uri="*"/> <
<?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>
我做错了什么?在web.config中查找以下文本:IncludeExceptionDetailInFaults 设置为真。然后再次运行您的服务请求并观看Fiddler,这次它将告诉您需要知道的内容。 可以是从SQL错误到空引用的任何内容。:-) 好吧;) 现在它开始工作了。 我在web.config中打开了debug,所以在Fiddler中得到了异常消息。
我需要在IIS for sql数据库的池中设置身份用户。在移动设备中,转到wifi设置并编辑当前wifi连接。
设置代理“自动检测设置”。验证端点配置是否正确。如果您使用Visual Studio基于wsdl构建的代理类,还可以检查它是否定义正确(特别是,它是否包含具有适当参数的UserExist方法。此外,我使用sql连接创建简单的项目。我将此连接字符串放入此sqlConn,并且它正在顺利打开。。。
<?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>
public int EndUserExist(System.IAsyncResult result) {
object[] _args = new object[0];
int _result = ((int)(base.EndInvoke("UserExist", _args, result))); //Here
return _result;
}