Issue with accessing Wcf services RRS feed

  • Question

  • Hi There,

    I have a Wcf service that I am trying to access from a Silverlight 4
    application. I am getting this error. I am trying to find a resolution
    of this issue. This is what I have tried so far:

    - placed clientaccesspolicy.xml, crossdomain.xml in wwwroot as well as
    root of project solution.

    - make sure that ServiceReferences.ClientCinfig is part of xap file
    This is the error that I am getting. I am looking for a way to resolve
    this issue, have added as much detail here.


    An error occurred while trying to make a request to URI
    'http://localhost:2726/BookmarksService.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. This error may also be caused by using internal
    types in the web service proxy without using the
    InternalsVisibleToAttribute attribute. Please see the inner exception
    for more details.
     Def in Web.Config

       <service name="Viewer.BookmarksService">

        <endpoint address="" binding="customBinding"

         contract="Viewer.BookmarksService" />

        <endpoint address="mex" binding="mexHttpBinding"
    contract="IMetadataExchange" />







                    <binding name="CustomBinding_BookmarksService">

                        <binaryMessageEncoding />

                        <httpTransport maxReceivedMessageSize="2147483647"
    maxBufferSize="2147483647" />





                <endpoint address="http://localhost:2726/BookmarksService.svc"


    name="CustomBinding_BookmarksService" />




    Wednesday, August 24, 2011 11:53 PM