just deployed my WCF service to a server here in my company using IIS 7.5 and everything works fine. But when I configure my client application and add the server link to the server, and then use this code.
ServerReference.ServiceClient client = new ServerReference.ServiceClient(); var s = client.GetBrand("Audi", false);
I get an exception that says "the reference to the object is not set to the instance of the object." the s object should not be b null (we tried the service on localhost, where we had everything in the same project where it worked).
You looked at the stack, and it looks like this.
21.6.2012 16:16:29
The reference to the object is not installed in the instance of the object.
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& 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)
Any suggestions? PS The CPU hosting the WCF service has no visual studios, so I cannot debug it through
source share