Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
clientaccesspolicy.xml中的uri中的通配符允许Silverlight访问WCF失败_Silverlight_Wcf_Clientaccesspolicy.xml - Fatal编程技术网

clientaccesspolicy.xml中的uri中的通配符允许Silverlight访问WCF失败

clientaccesspolicy.xml中的uri中的通配符允许Silverlight访问WCF失败,silverlight,wcf,clientaccesspolicy.xml,Silverlight,Wcf,Clientaccesspolicy.xml,我已成功创建并正在使用clientaccesspolicy.xml文件向Silverlight客户端公开我的WCF,允许从域uri为http://*。我想通过使用更具体的uri(如http://www.foobar.com或http://*.foobar.com,但当我使用这些URI时,我在Silverlight客户端中会出现安全异常 以下是当前正在工作的clientaccesspolicy.xml: ) 谢谢 尝试从URI中删除“http://”。例如: <domain uri="*.

我已成功创建并正在使用clientaccesspolicy.xml文件向Silverlight客户端公开我的WCF,允许从域uri为
http://*
。我想通过使用更具体的uri(如
http://www.foobar.com
http://*.foobar.com
,但当我使用这些URI时,我在Silverlight客户端中会出现安全异常

以下是当前正在工作的clientaccesspolicy.xml:

)

谢谢

尝试从URI中删除“http://”。例如:

<domain uri="*.foobar.com"/>