access-policy / cross domain issue
hello accessing wcf service , getting error error occurred while trying make request uri 'http://localhost:10201/stockservice'. due attempting access service in cross-domain way without proper cross-domain policy in place, or policy unsuitable soap services. may need contact owner of service publish cross-domain policy file , ensure allows soap-related http headers sent. please see inner exception more details. see file
waht cross domain
why access poilcy file for...
how give every 1 access not metter cross domain or in domain
< access-policy> < cross-domain-access>
< policy> < allow-from http-request-headers="*">
< domain uri="*"/> < grant-to>
< resource path="/" include-subpaths="true"/>
hi,
this article can you: http://msdn.microsoft.com/en-us/library/cc197955(vs.95).aspx
to avoid cross-domain issues put clientaccesspolicy.xml and/or crossdomain.xml in root of service project, if use iis host service put files in root of domain (usually c:\inetpub\wwwroot).
following can find content of 2 files:
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:
<?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>
Silverlight > Programming Silverlight with .NET – General
Comments
Post a Comment