Solved

Error while trying to access a wcf service from my silverlight app

Posted on 2009-05-13
1
378 Views
Last Modified: 2013-11-12
Hi experts i am getting this error while trying to access a wcf service from my silverlight app, i have clientaccesspolicy.xml at the root of my hosting projct.

An error occurred while trying to make a request to URI 'http://tfsrtm08:4431/DomainName/MyService.svc'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. Please see the inner exception for more details.

i have attached my clientaccesspolicy.xml

Really appreciate any help...
<?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>

Open in new window

0
Comment
Question by:x1877
1 Comment
 

Accepted Solution

by:
x1877 earned 0 total points
Comment Utility
putting clientaccesspolicy.xml in C:\Inetpub\wwwroot and restarting IIS resolved this issue..
Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now