Build/Test Issues

Can not run test on Grid Node Server

Started by Allnext on 5,941 views

Hello

I configured distribution processing my test on other computer at network. But my server always switched status from Not Connected to Initialising
I use version 2.26, Visual Studio 2015 and Windows 10 with latest updates.

At ncrunch log at Visual Studio output window contains flowing:

ENGINE - [17:55:42.8105-Core-28] Sending message 'nCrunch.Core.Grid.Messages.ClientSnapshotMessage' to remote server at address: 172.16.10.41
ENGINE - [17:55:42.8636-Core-28] ERROR (Internal): System.NullReferenceException: Object reference not set to an instance of an object.
at nCrunch.Core.GridTransferrableTestFrameworkSelection.Serialize(SerializationContext context)
at nCrunch.Common.Serialization.SerializationContractType..(Object ,  )
at nCrunch.Common.Serialization.SerializationContractType.SelfSerialize(Object instance, SerializationContext context)
at nCrunch.Common.Serialization.BinarySerializer.(SerializationContext , Object , Type , Boolean )
at nCrunch.Common.Serialization.BinarySerializer.Serialize(SerializationContext context, Object instance, Type knownInstanceType, Boolean cacheInstance, Boolean cacheCollectionContents)
at nCrunch.Core.SnapshotComponent.Serialize(SerializationContext context)
at nCrunch.Common.Serialization.SerializationContractType..(Object ,  )
at nCrunch.Common.Serialization.SerializationContractType.SelfSerialize(Object instance, SerializationContext context)
at nCrunch.Common.Serialization.BinarySerializer.(SerializationContext , Object , Type , Boolean )
at nCrunch.Common.Serialization.BinarySerializer.Serialize(SerializationContext context, Object instance, Type knownInstanceType, Boolean cacheInstance, Boolean cacheCollectionContents)
at nCrunch.Common.Serialization.BinarySerializer.SerializeList[T](SerializationContext context, IList`1 list)
at nCrunch.Core.Snapshot.Serialize(SerializationContext context)
at nCrunch.Common.Serialization.SerializationContractType..(Object ,  )
at nCrunch.Common.Serialization.SerializationContractType.SelfSerialize(Object instance, SerializationContext context)
at nCrunch.Common.Serialization.BinarySerializer.(SerializationContext , Object , Type , Boolean )
at nCrunch.Common.Serialization.BinarySerializer.Serialize(SerializationContext context, Object instance, Type knownInstanceType, Boolean cacheInstance, Boolean cacheCollectionContents)
at nCrunch.Common.Serialization.BinarySerializer.(SerializationContext , Object , Type , Boolean )
at nCrunch.Common.Serialization.BinarySerializer.Serialize(SerializationContext context, Object instance, Type knownInstanceType, Boolean cacheInstance, Boolean cacheCollectionContents)
at nCrunch.Core.Grid.Messages.GridMessage.GetSerializedMessageData(BinarySerializer serializer)
at nCrunch.Core.Grid.Connectivity.GridMessageSender.()
at nCrunch.Core.Grid.Connectivity.GridMessageSender.()

Can you help me?
Hi, thanks for sharing this issue.

It looks to me as though you have a project in your solution that isn't fully loaded by NCrunch. Do you have any load errors showing in the NCrunch Tests Window?
Thanks a lot!
Allnext wrote:Thanks a lot!


Can you confirm that this was the problem? If so, I might take a look at how it's being handled.
Remco wrote:
Allnext wrote:Thanks a lot!


Can you confirm that this was the problem? If so, I might take a look at how it's being handled.


Yes, unloading projects with build failure really helps me. Before do this this behavior looks like connection issue. At our environment we run tests from local machine on grid server located in other network (VPN connection).

Post a reply

Log in to reply.