title: WCF service client application getting "Object not set to an instance of an object"
body: <p>just deployed my WCF service on a server here at my company using IIS 7.5  and everything seems to work fine. But when i set up my client application and add a server reference to the server and then use this code .</p>
  
  <pre><code>ServerReference.ServiceClient client = new ServerReference.ServiceClient();
  
  var s = client.GetBrand("Audi", false);
  </code></pre>
  
  <p>I get an exception that says "object reference not set to an instance of a object". 
  the s object should not b null (we tried the service on localhost where the we had it all in the same project where it worked). </p>
  
  <p>You looked at the stackstrace and it looks like this. </p>
  
  <pre><code>21.6.2012 16:16:29
  </code></pre>
  
  <p>Object reference not set to an instance of an object.</p>
  
  <pre><code>Server stack trace: 
     at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
     at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc&amp; rpc)
     at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
     at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
     at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
  </code></pre>
  
  <p>Any suggestions ?? 
  P.S The CPU where the WCF Service is hosted doesnt have visual studios so i cant debug through it</p>