Na pewno wywala przy korzystaniu z bazy, a dokładnie to gdy korzystam z tych instrukcji:
DataAccessLayer.Customer cust = new DataAccessLayer.Customer();
cust.getCustomerById(id);
a oto dokładny błąd:
Odwołanie do obiektu nie zostało ustawione na wystąpienie obiektu.
Server stack trace:
w System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
w System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
w System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
w System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
w System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
w System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
w System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
w System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
w IBaseClassService.GetBook(Int32 id)
w BaseClassServiceClient.GetBook(Int32 id)
Nie wiem czy problemem gdzieś nie jest łączenie z bazą danych - Jak ma być rozwiązany problem connectionStringa?