Note that there are some explanatory texts on larger screens.

plurals
  1. POWhen adding Service reference to a Silverlight 4 application ServiceReferences.ClientConfig file is generated empty
    primarykey
    data
    text
    <p>I've a WCF service hosted over SSL(https) whose web.config is like this:</p> <pre><code>&lt;system.serviceModel&gt; &lt;services&gt; &lt;service name="MyProject.HTMLService" behaviorConfiguration="HTMLServiceBehavior"&gt; &lt;host&gt; &lt;baseAddresses&gt; &lt;add baseAddress="https://someip/HTMLService.svc"/&gt; &lt;add baseAddress="https://hostname/HTMLService.svc"/&gt; &lt;/baseAddresses&gt; &lt;/host&gt; &lt;endpoint address="" binding="webHttpBinding" bindingConfiguration="https" contract="MyProject.IHTMLService"/&gt; &lt;/service&gt; &lt;/services&gt; &lt;bindings&gt; &lt;webHttpBinding&gt; &lt;binding name="https"&gt; &lt;security mode="Transport"/&gt; &lt;/binding&gt; &lt;/webHttpBinding&gt; &lt;/bindings&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="HTMLServiceBehavior"&gt; &lt;serviceMetadata httpsGetEnabled="True" /&gt; &lt;serviceDebug includeExceptionDetailInFaults="false" /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true" /&gt; &lt;/system.serviceModel&gt; </code></pre> <p>ClientAccessPolicy.xml File:</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="http://*"/&gt; &lt;domain uri="https://*"/&gt; &lt;/allow-from&gt; &lt;grant-to&gt; &lt;resource path="/" include-subpaths="true"/&gt; &lt;/grant-to&gt; &lt;/policy&gt; &lt;/cross-domain-access&gt; &lt;/access-policy&gt; </code></pre> <p>When I try to add service reference into my silverlight 4 application, all the neccessary files are getting generated, but the ServiceReferences.ClientConfig file contains only tag. Also the configuration.svcinfo and configuration91.svcinfo files have no Bindinds, EndPoints and Behavior configuration.</p> <p>How can this problem be resolved? Thanks..</p>
    singulars
    1. This table or related slice is empty.
    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.
    1. This table or related slice is empty.
    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