Note that there are some explanatory texts on larger screens.

plurals
  1. POwcf error with metadata
    primarykey
    data
    text
    <p>I am getting metadata error when I reference WCF service from console app. "Error downloading metadata from the address". Here is my service code. I appreciate any help.</p> <pre><code>namespace WcfService1 { public class Service1 : IService1 { public void test(string parm1, long parm2, Stream parm3) { string folder1 = @"C:\TEST"; string fileName = Path.Combine(folder1, parm1); using (FileStream target = new FileStream(fileName, FileMode.Create, FileAccess.Write, FileShare.None)) { const int bufferLen = 65536; byte[] buffer = new byte[bufferLen]; int count = 0; while ((count = parm3.Read(buffer, 0, bufferLen)) &gt; 0) { target.Write(buffer, 0, count); } } } } } namespace WcfService1 { [ServiceContract] public interface IService1 { [OperationContract] void test(string parm1, long parm2, Stream parm3); } } </code></pre> <p>Here is Config:</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;configuration&gt; &lt;system.web&gt; &lt;compilation debug="true" targetFramework="4.0" /&gt; &lt;/system.web&gt; &lt;system.serviceModel&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="false"/&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true" /&gt; &lt;/system.serviceModel&gt; &lt;system.webServer&gt; &lt;modules runAllManagedModulesForAllRequests="true"/&gt; &lt;/system.webServer&gt; &lt;/configuration&gt; </code></pre>
    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.
    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