View ID AllocatedID: 150 not found during lookup. Strange behaviour may occur

Hi there,

Here is my problem: When I connect to the server the first time after the server is set up, everything is fine. But when I disconnect and connect again to the server the client receives two errors:

View ID AllocatedID: 150 not found during lookup. Strange behaviour may occur

Could’t invoke RPC function ‘AnimateEveryWhere’ because the networkView ‘AllocatedID: 150’ doesn’t exist

When the player disconnects, he cleans it up by:

void OnPlayerDisconnected(NetworkPlayer networkPlayer){
   Network.DestroyPlayerObjects(networkPlayer);
   Network.RemoveRPCs(networkPlayer); 
}

Does anyone know the solution for this? Any help is appreciated!

Every time you instantiate an object in a network, it’s viewID is updated alongside. You must be using network.instantiate. That’s why. The solution is to synchronize all other gameobjects too. try reinstantiating other objects in network too. I solved my similar problem this way.