更新时间:2022-11-06 13:53:54
您好,
我从未见过像"../blahblah.svc"这样的端点被指定
尝试指定托管您的svc的URL,例如:
http://localhost:8080/blahblah.svc
其中8080可以用端点端口号替换,而blahblah.svc可以用svc文件替换.
Hi,
I have never seen an endpoint being specified like "../blahblah.svc"
Try specifying the url on which your svc is being hosted, like:
http://localhost:8080/blahblah.svc
where 8080 can be replaced by your endpoint portnumber and blahblah.svc by your svc file.
Solved...
I have copied XMLs quoted below in wwwroot folder ...
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 include-subpaths="true" path="/"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
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="*"/>
</cross-domain-policy>