Note that there are some explanatory texts on larger screens.

plurals
  1. POException in brand new Silverlight project
    primarykey
    data
    text
    <p>I am getting the following exception message when I try to run my newly created Silverlight app:</p> <ul> <li>An error occurred while trying to make a request to URI '<a href="http://localhost:8732/Design_Time_Addresses/IsAProgrammer.Service/Service1/" rel="nofollow noreferrer">http://localhost:8732/Design_Time_Addresses/IsAProgrammer.Service/Service1/</a>'. 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.</li> </ul> <p>This is what I have done. I started with a silverlight app. That created 2 projects. My actual silverlight app and one called MySolutionName.web (not sure what that does except host my silverlight page).</p> <p>I then made a WCF project so I could have some services for my Silverlight app to consume. I made my services and then added a Service Reference to the silverlight project. I then changed the binding to be <code>basicHttpBinding</code> for my services. (I subsequently refreshed my Service Resource reference in the Silverlight app.)</p> <p>I reading about this error, I have found that I need a <code>clientaccesspolicy.xml</code> and a <code>CrossDomain.xml</code> file to fix it. I found a generic copy of each of these and added them to both my MySolutionName.Web project and my WCF project.</p> <p>Any other ideas would be great.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload