Skip to main content


 

Symptoms


Getting the following error when trying to create package via Package and Deploying tool.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.Serialization.SerializationException: Member 'Message' was not found.
at System.Runtime.Serialization.SerializationInfo.GetElement(String name, Typeand foundType)
at System.Runtime.Serialization.SerializationInfo.GetString(String name)
at SourceCode.ComponentModel.Design.SyncState..ctor(SerializationInfo info, StreamingContext context)
at SourceCode.Deployment.Management.ValidateItemResultsRecievedState..ctor(SerializationInfo info, StreamingContext context)
at lambda_method(Closure , SerializationInfo , StreamingContext )
at SourceCode.Runtime.Serialization.FastBinaryFormatter.DeserializationInfo.CreateInstance(Type type, SerializationInfo info, StreamingContext context)
at SourceCode.Runtime.Serialization.FastBinaryFormatter.ReadComplexValue(Stream stream, Type t, Type typeHint, DeserializationTablesand tables)
at SourceCode.Runtime.Serialization.FastBinaryFormatter.Deserialize(Stream stream, Type typeHint, DeserializationTablesand tables)
at SourceCode.Runtime.Serialization.FastBinaryFormatter.Deserialize(Stream serializationStream)
at SourceCode.Deployment.Management.PackageDeploymentManager.Send(String sessionName, SyncState state)
at SourceCode.Deployment.Management.SyncRequest.OnExecute(IServiceProvider provider)
at SourceCode.Deployment.Management.SyncRequest.Complete(IServiceProvider provider)
--- End of inner exception stack trace ---
at SourceCode.Deployment.Management.Session.EndInstruction(SyncRequest result)
at SourceCode.Deployment.Management.ClientSession.Validate(ITypedItem item)
at SourceCode.Management.Controls.ExecuteScope.ShouldVisitImpllTItem,TValue](TItem item, Func`2 visit)
at SourceCode.Management.Controls.AddItemViewNodeBase.OnValidate()
at SourceCode.Management.Controls.AddItemViewComplexTypeNode.ResolveProperties()
at SourceCode.Management.Controls.ViewModelNode.OnActivate()
at SourceCode.Management.Controls.AddItemViewComplexTypeNode.OnActivate()
at SourceCode.Management.Controls.ViewModelNode.Activate()
at SourceCode.Management.Controls.ViewModelNode.ViewModelNodeCollection.InsertItem(Int32 index, ViewModelNode item)
at SourceCode.Management.Controls.AddItemViewRootNode.OnExpand()
at SourceCode.Management.Controls.ViewModelNode.Expand()
at SourceCode.Management.Controls.AddItemView.d__2.MoveNext()

 

Diagnoses


This issue is caused by .NET Framework 4.6.1 with PandD in 4.6.9.
https://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx
-the following KBs were installed on his machine:
KB3122660, KB3127231, KB3098785, KB3102467

 

Resolution

The issue is resolved by rolling back .NET Framework to 4.5.x.




 
Be the first to reply!

Reply