Note that there are some explanatory texts on larger screens.

plurals
  1. POWCf REST service client side config file empty
    primarykey
    data
    text
    <p>I have a REST service and I have added it's reference in my WPF application. But as soon as I create a client of my proxy, it throws error and it throws error because my client side app.config is empty:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;configuration&gt; &lt;/configuration&gt; </code></pre> <p>This line on client throws error:</p> <pre><code> HelloWorldClient client = new HelloWorldClient(); </code></pre> <p>This is my system.servicemodel section of web.config on the server side:</p> <pre><code> &lt;system.serviceModel&gt; &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" /&gt; &lt;services&gt; &lt;service name="WCFRestExample.HelloWorld"&gt; &lt;endpoint address="" binding="webHttpBinding" contract="WCFRestExample.IHelloWorld"/&gt; &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt; &lt;/service&gt; &lt;/services&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior&gt; &lt;!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --&gt; &lt;serviceMetadata httpGetEnabled="true" /&gt; &lt;!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information --&gt; &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;/system.serviceModel&gt; </code></pre> <p>Can anybody tell me why is app.config empty? I have also restarted VS2010 but no luck. </p> <p><strong>NOTE:</strong> When I directly browse it in the browser the service is working. So, there is no problem with server side service.</p> <p>Thanks in advance :)</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