title: Property httpRequest' not present
body: <p>I'm receiving this error when I run a build outside Visual Studio:</p>
  
  <p>"A property with the name 'httpRequest' is not present"</p>
  
  <p>If I run the SAME code inside Visual Studio, it works. Does anyone have an idea of what I'm doing wrong?</p>
  
  <p>My app.config:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;startup&gt;
      &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /&gt;
    &lt;/startup&gt;
    &lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;basicHttpBinding&gt;
          &lt;binding name="CacheServiceEndpoint" /&gt;
          &lt;binding name="consultaWebServicePortBinding" maxBufferPoolSize="524288" maxBufferSize="10485760"
    maxReceivedMessageSize="10485760"&gt;
            &lt;readerQuotas maxDepth="32" maxStringContentLength="10485760"
              maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
            &lt;security mode="Transport" /&gt;
          &lt;/binding&gt;
          &lt;binding name="consultaWebServicePortBinding1" /&gt;
        &lt;/basicHttpBinding&gt;
        &lt;customBinding&gt;
          &lt;binding name="CustomBinding_ICacheService"&gt;
            &lt;binaryMessageEncoding /&gt;
            &lt;httpTransport /&gt;
          &lt;/binding&gt;
        &lt;/customBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
        &lt;endpoint address="http://....svc"
            binding="basicHttpBinding" bindingConfiguration="CacheServiceEndpoint"
            contract="Cache.ICacheService" name="CacheServiceEndpoint" /&gt;
        &lt;endpoint address="http://.../binary"
            binding="customBinding" bindingConfiguration="CustomBinding_ICacheService"
            contract="Cache.ICacheService" name="CustomBinding_ICacheService" /&gt;
        &lt;endpoint address="https://..."
            binding="basicHttpBinding" bindingConfiguration="consultaWebServicePortBinding"
            contract="ABC.consultaWebService" name="consultaWebServicePort" /&gt;
      &lt;/client&gt;
    &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>What I am doing to make a call:</p>
  
  <pre><code>svc = new consultaWebServiceClient ("consultaWebServicePort");                    
  svc.Endpoint.Behaviors.Add (new CustomEndpointBehavior (user, psw));
  </code></pre>
  
  <p>Thanks!</p>