小编Joã*_*nço的帖子

Silverlight:WCF在服务器上出错,但本地主机正常

我有silverlight应用程序,并且出现此错误:

[Async_ExceptionOccurred]
Arguments: 
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.0.61118.00&File=System.dll&Key=Async_ExceptionOccurred INNER >System.ServiceModel.CommunicationException: [CrossDomainError]
Arguments: http://localhost/pthaba/SimpleWCF.svc
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.0.61118.00&File=System.ServiceModel.dll&Key=CrossDomainError ---> System.Security.SecurityException ---> System.Security.SecurityException: [Arg_SecurityException]
Arguments: 
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.0.61118.00&File=mscorlib.dll&Key=Arg_SecurityException
Run Code Online (Sandbox Code Playgroud)

我有WCF服务,并且可以在浏览器上正常工作。我在根站点(位于WCF服务所在的位置)中具有如下所示的clientacesspolicy.xml。

<?xml version="1.0" encoding="utf-8" ?>
<access-policy>
  <cross-domain-access>
    <policy>
      <allow-from …
Run Code Online (Sandbox Code Playgroud)

silverlight wcf iis-7 silverlight-4.0

5
推荐指数
1
解决办法
7275
查看次数

标签 统计

iis-7 ×1

silverlight ×1

silverlight-4.0 ×1

wcf ×1