Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 336615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:15:33+00:00 2026-05-12T10:15:33+00:00

this is going to steal my sanity. I’ve been gone through almost everything I

  • 0

this is going to steal my sanity. I’ve been gone through almost everything I found on the web and went no single step forward. Frustration is not strong enough to describe this errormessage come popping up regardless of what I am doing.

But one after the other.

I have a 64bit W2008 Server machine with VS 2008 SP1 german version, Silverlight Tools 3.0

I want to consume a WCF-Service from a Silverlight application. And, as many people, I get this very frustrating non-descript Communication Exception at the end of the invoke.

I created a new WCF-Service, named an Endpoint and set its binding to basicHttpBinding. I added the attribute

[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]

to the Service1 class and the line

<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>

to the system.serviceModel in the App.config

I left everything else as it is and tested the service via WCF-client successfully. Then I published it to my local IIS7 to http://localhost/WCFTest

Within my Silverlight application, I added the service to the Servicereference using http://europa.therestofmydomain/WCFTest/WcfTest.Service1.svc

I added the following code to the client:

using OSMDeepEarthExample.ServiceReference1;

...
Service1Client s1 = new Service1Client();
s1.GetDataCompleted += new System.EventHandler<GetDataCompletedEventArgs>(s1_GetDataCompleted);
s1.GetDataAsync(20);

void s1_GetDataCompleted(object sender, GetDataCompletedEventArgs e)
{
  CountFetchedData.Text = e.Result;
}

I added a clientaccesspolicy.xml AND a crossdomain.xml to the webroot (C:\inetpub\wwwroot)

clientaccesspolicy.xml:

<?xml version="1.0" encoding="utf-8"?>
<access-policy>
  <cross-domain-access>
    <policy>
      <allow-from>
        <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-access-from domain="*" />
  <allow-http-request-headers-from domain="*" headers="SOAPAction" />
</cross-domain-policy>

I restarted the IIS. Twice. Often.

I installed Web Development Helper to maybe get more meaningful information about WHAT is wrong. But this makes the IE crash.

I am out of ideas. And soon start to be aggressive against my hardware. Please help my hardware!

As John noted, I did forgot the full Errormessage here it comes:

Fehler beim Senden einer Anforderung an den URI “http://europa.therestofmydomain/WCFTest/WcfTest.Service1.svc“. Ursache ist möglicherweise, dass ohne die entsprechende domänenübergreifende Richtlinie oder mit einer nicht für SOAP-Dienste geeigneten Richtlinie domänenübergreifend auf einen Dienst zugegriffen wurde. Möglicherweise müssen Sie sich an den Besitzer des Diensts wenden, damit eine domänenübergreifende Richtliniendatei veröffentlicht und das Senden von sich auf SOAP beziehenden HTTP-Headern zugelassen wird. Dieser Fehler kann auch durch Verwendung von internen Typen im Webdienstproxy ohne das InternalsVisibleToAttribute-Attribut verursacht werden. Weitere Details finden Sie in der inneren Ausnahme.

In short, it says there may be an interdomain rule be missing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T10:15:33+00:00Added an answer on May 12, 2026 at 10:15 am

    Whew, I’ve done it!

    I removed the clientaccesspolicy.xml from the webroot, leaving only crossdomain.xml there. What an odyssee! Thank you for listening, it helped to clear my mind. I hope someone with a similar problem will find the text helpfull a little bit!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is going to sound too silly / too basic - sorry about that,
This is going to be a long post and just for fun, so if
This is going to be a quick discussion, but I just wanted some feedback
Hey this is going to be one of those dumb questions. I am trying
I'm guessing this is going to involve regexp or something, but I'll give it
Initially I thought this was going to work, but now I understand it won't
I think this is going to be one of those simple-when-you-see-it problems, but it
I know this is going to be something simple that I'm just missing somehow,
Ok I know this is going to sound weird but it is what the
Okay, this is going to be hard to explain but here goes nothing: Lately

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.