Skip to main content


 

Symptoms


Issue:
We are having problems with deploying K2 process. Project builds successfully but deployment fails with following errors:

Error 2 Notification Service: Task Error: System.InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.Bytee]'.
at SourceCode.EventBus.EventAdmin.Admin.GetCustomEventWithMappings(String connection, Int32 id)
at SourceCode.EventBus.EventAdmin.Admin.DeleteCustomEventWithMappings(String connection, Int32 id)
at SourceCode.EventBus.Server.ClientServerImplimentation.UpdateWorklistItemNotification(List`1 worklistItemIdentifiers) C:CODE_AKK2.BGNAAutoneum.BGNA.PremiumFreightAutoneum.BGNA.PremiumFreightobjDebugDeploymentAutoneum.BGNA.PremiumFreight.msbuild 116 6 Autoneum.BGNA.PremiumFreight


Error 3 The "SourceCode.DeploymentTasks.NotificationService.NotificationTask" task failed unexpectedly.
System.Exception: System.InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.Bytee]'.
at SourceCode.EventBus.EventAdmin.Admin.GetCustomEventWithMappings(String connection, Int32 id)
at SourceCode.EventBus.EventAdmin.Admin.DeleteCustomEventWithMappings(String connection, Int32 id)
at SourceCode.EventBus.Server.ClientServerImplimentation.UpdateWorklistItemNotification(List`1 worklistItemIdentifiers)
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName, String MethodName, Objectt] Parameters, Booleann] NullList, MarshalMessageType CallType)
at SourceCode.Hosting.Client.BaseAPI.BaseAPI.RemoteCall(String TypeName, String MethodName, Objectt] Parameters, Booleann] NullList, MarshalMessageType CallType)
at SourceCode.EventBus.ClientAPI.Notification.UpdateWorklistItemNotification(List`1 worklistItemIdentifiers)
at SourceCode.DeploymentTasks.NotificationService.Common.Publish()
at SourceCode.DeploymentTasks.NotificationService.NotificationTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__20.MoveNext() C:CODE_AKK2.BGNAAutoneum.BGNA.PremiumFreightAutoneum.BGNA.PremiumFreightobjDebugDeploymentAutoneum.BGNA.PremiumFreight.msbuild 116 6 Autoneum.BGNA.PremiumFreight


Error 4 Notification Service: Task Error: System.InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.Bytee]'.
at SourceCode.EventBus.EventAdmin.Admin.GetCustomEventWithMappings(String connection, Int32 id)
at SourceCode.EventBus.EventAdmin.Admin.DeleteCustomEventWithMappings(String connection, Int32 id)
at SourceCode.EventBus.Server.ClientServerImplimentation.UpdateWorklistItemNotification(List`1 worklistItemIdentifiers)
C:CODE_AKK2.BGNAAutoneum.BGNA.PremiumFreightAutoneum.BGNA.PremiumFreightobjDebugDeploymentAutoneum.BGNA.PremiumFreight.msbuild 117 6 Autoneum.BGNA.PremiumFreight


Error 5 The "SourceCode.DeploymentTasks.NotificationService.NotificationTask" task failed unexpectedly.
System.Exception: System.InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.Bytee]'.
at SourceCode.EventBus.EventAdmin.Admin.GetCustomEventWithMappings(String connection, Int32 id)
at SourceCode.EventBus.EventAdmin.Admin.DeleteCustomEventWithMappings(String connection, Int32 id)
at SourceCode.EventBus.Server.ClientServerImplimentation.UpdateWorklistItemNotification(List`1 worklistItemIdentifiers)
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName, String MethodName, Objectt] Parameters, Booleann] NullList, MarshalMessageType CallType)
at SourceCode.Hosting.Client.BaseAPI.BaseAPI.RemoteCall(String TypeName, String MethodName, Objectt] Parameters, Booleann] NullList, MarshalMessageType CallType)
at SourceCode.EventBus.ClientAPI.Notification.UpdateWorklistItemNotification(List`1 worklistItemIdentifiers)
at SourceCode.DeploymentTasks.NotificationService.Common.Publish()
at SourceCode.DeploymentTasks.NotificationService.NotificationTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__20.MoveNext()
C:CODE_AKK2.BGNAAutoneum.BGNA.PremiumFreightAutoneum.BGNA.PremiumFreightobjDebugDeploymentAutoneum.BGNA.PremiumFreight.msbuild 117 6 Autoneum.BGNA.PremiumFreight

 

Diagnoses


Some research in K2 Community web page produced the following results

http://community.k2.com/t5/K2-blackpearl/Notification-Service-Task-Error-System-InvalidCastException/ta-p/79004

It is Coldfix-able
 

Resolution

We applied the Coldfix and the issue was resolved.




 
Be the first to reply!

Reply