Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This general error is not really very helpful. In general you might have some more luck by enabling logging in your service as this usually gives some more pointers as to what is going wrong, as this error gets thrown in many situations. </p> <p>To enable logging you can add this to the config file for the service:</p> <pre><code>&lt;configuration&gt; .... &lt;system.diagnostics&gt; &lt;trace autoflush="true" /&gt; &lt;sources&gt; &lt;source name="System.ServiceModel" switchValue="Verbose"&gt; &lt;listeners&gt; &lt;add name="sdt" type="System.Diagnostics.XmlWriterTraceListener" initializeData="D:\path\to\wcfLog.svcLog" /&gt; &lt;/listeners&gt; &lt;/source&gt; &lt;/sources&gt; &lt;/system.diagnostics&gt; &lt;/configuration&gt; </code></pre> <p>The other problem you are likely to have is the cross domain issue, especially when you first try and access the site for the first time with a silverlight client. You should add a crossdomain.xml and a clientaccesspolicy.xml at the root of the web site.</p> <p>These should contains xml like this:</p> <p>CrossDomain.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"&gt; &lt;cross-domain-policy&gt; &lt;allow-http-request-headers-from domain="*" headers="*" /&gt; &lt;/cross-domain-policy&gt; </code></pre> <p>ClientAccessPolicy.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;access-policy&gt; &lt;cross-domain-access&gt; &lt;policy&gt; &lt;allow-from http-request-headers="*"&gt; &lt;domain uri="*"/&gt; &lt;/allow-from&gt; &lt;grant-to&gt; &lt;resource include-subpaths="true" path="/"/&gt; &lt;/grant-to&gt; &lt;/policy&gt; &lt;/cross-domain-access&gt; &lt;/access-policy&gt; </code></pre> <p>Silverlight clients will try and access these files at the root of your site and so you should serve them from there, which should be straightforward if it is an ASP site hosted in IIS. <a href="http://msdn.microsoft.com/en-us/library/cc197955%28VS.95%29.aspx" rel="nofollow">Details on MSDN</a>. </p> <p>You can provide a WCF service to serve them if your service is self hosted but it is more complicated to set up. <a href="http://blogs.msdn.com/b/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx" rel="nofollow">Some details on a self hosted solution</a></p>
    singulars
    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.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      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