I've build wcf service under IIS 7.
I've problem with shared data.
I get error in runtime, when i try to access static data from other service.
Service 1
[ServiceContract(Name="ServiceChat", CallbackContract=typeof(IChatCallback))]
public ChatService {
static int counter;
...
}
Service 2
[ServiceContract(Name="ServiceAvatar", CallbackContract=typeof(IAvatarCallback))]
public AvatarService {
[OperationContract]
public int Test {
return ChatService.counter; // Throw error
}
...
}