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