Skip to main content

I am getting these errors when starting up the K2 service:

 

 

63004 Failed to compose object: System.ComponentModel.Composition.ChangeRejectedException: The composition remains unchanged. The changes were rejected because of the following error(s): The composition produced multiple composition errors, with 2 root causes. The root causes are provided below. Review the CompositionException.Errors property for more detailed information.

1) No valid exports were found that match the constraint '((exportDefinition.ContractName == 'SourceCode.MessageBus.MessageParameterFormatter') AndAlso (exportDefinition.Metadata.ContainsKey('ExportTypeIdentity') AndAlso 'SourceCode.MessageBus.MessageParameterFormatter'.Equals(exportDefinition.Metadata.get_Item('ExportTypeIdentity'))))', invalid exports may have been rejected.

Resulting in: Cannot set import 'SourceCode.MessageBus.Server.MessageBusRuntime._formatter (ContractName='SourceCode.MessageBus.MessageParameterFormatter')' on part 'SourceCode.MessageBus.Server.MessageBusRuntime'.
Element: SourceCode.MessageBus.Server.MessageBusRuntime._formatter (ContractName='SourceCode.MessageBus.MessageParameterFormatter') --> SourceCode.MessageBus.Server.MessageBusRuntime

2) No valid exports were found that match the constraint '((exportDefinition.ContractName == 'SourceCode.MessageBus.ILoggingService') AndAlso (exportDefinition.Metadata.ContainsKey('ExportTypeIdentity') AndAlso 'SourceCode.MessageBus.ILoggingService'.Equals(exportDefinition.Metadata.get_Item('ExportTypeIdentity'))))', invalid exports may have been rejected.

Resulting in: Cannot set import 'SourceCode.MessageBus.Server.MessageBusRuntime._logging (ContractName='SourceCode.MessageBus.ILoggingService')' on part 'SourceCode.MessageBus.Server.MessageBusRuntime'.
Element: SourceCode.MessageBus.Server.MessageBusRuntime._logging (ContractName='SourceCode.MessageBus.ILoggingService') --> SourceCode.MessageBus.Server.MessageBusRuntime


Server stack trace:
at System.ComponentModel.Composition.Hosting.ComposablePartExportProvider.Compose(CompositionBatch batch)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Objectc] args, Object server, Objectc]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at t0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
at System.Action`3.EndInvoke(IAsyncResult result)
61003 Failed to start MessageBus service: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Composition.ChangeRejectedException: The composition remains unchanged. The changes were rejected because of the following error(s): The composition produced multiple composition errors, with 2 root causes. The root causes are provided below. Review the CompositionException.Errors property for more detailed information.

1) No valid exports were found that match the constraint '((exportDefinition.ContractName == 'SourceCode.MessageBus.MessageParameterFormatter') AndAlso (exportDefinition.Metadata.ContainsKey('ExportTypeIdentity') AndAlso 'SourceCode.MessageBus.MessageParameterFormatter'.Equals(exportDefinition.Metadata.get_Item('ExportTypeIdentity'))))', invalid exports may have been rejected.

Resulting in: Cannot set import 'SourceCode.MessageBus.Server.MessageBusRuntime._formatter (ContractName='SourceCode.MessageBus.MessageParameterFormatter')' on part 'SourceCode.MessageBus.Server.MessageBusRuntime'.
Element: SourceCode.MessageBus.Server.MessageBusRuntime._formatter (ContractName='SourceCode.MessageBus.MessageParameterFormatter') --> SourceCode.MessageBus.Server.MessageBusRuntime

2) No valid exports were found that match the constraint '((exportDefinition.ContractName == 'SourceCode.MessageBus.ILoggingService') AndAlso (exportDefinition.Metadata.ContainsKey('ExportTypeIdentity') AndAlso 'SourceCode.MessageBus.ILoggingService'.Equals(exportDefinition.Metadata.get_Item('ExportTypeIdentity'))))', invalid exports may have been rejected.

Resulting in: Cannot set import 'SourceCode.MessageBus.Server.MessageBusRuntime._logging (ContractName='SourceCode.MessageBus.ILoggingService')' on part 'SourceCode.MessageBus.Server.MessageBusRuntime'.
Element: SourceCode.MessageBus.Server.MessageBusRuntime._logging (ContractName='SourceCode.MessageBus.ILoggingService') --> SourceCode.MessageBus.Server.MessageBusRuntime


Server stack trace:
at System.ComponentModel.Composition.Hosting.ComposablePartExportProvider.Compose(CompositionBatch batch)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Objectc] args, Object server, Objectc]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at t0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
at System.Action`3.EndInvoke(IAsyncResult result)
at SourceCode.Server.Extensibility.CompositionExtensions.EndComposePartsInternal(IAsyncResult result)
--- End of inner exception stack trace ---
at SourceCode.Server.Extensibility.CompositionExtensions.EndComposeParts(IAsyncResult result)
at SourceCode.MessageBus.Server.MessageBusService.EndComposeParts(IAsyncResult result)
InnerException: The composition remains unchanged. The changes were rejected because of the following error(s): The composition produced multiple composition errors, with 2 root causes. The root causes are provided below. Review the CompositionException.Errors property for more detailed information.

1) No valid exports were found that match the constraint '((exportDefinition.ContractName == 'SourceCode.MessageBus.MessageParameterFormatter') AndAlso (exportDefinition.Metadata.ContainsKey('ExportTypeIdentity') AndAlso 'SourceCode.MessageBus.MessageParameterFormatter'.Equals(exportDefinition.Metadata.get_Item('ExportTypeIdentity'))))', invalid exports may have been rejected.

Resulting in: Cannot set import 'SourceCode.MessageBus.Server.MessageBusRuntime._formatter (ContractName='SourceCode.MessageBus.MessageParameterFormatter')' on part 'SourceCode.MessageBus.Server.MessageBusRuntime'.
Element: SourceCode.MessageBus.Server.MessageBusRuntime._formatter (ContractName='SourceCode.MessageBus.MessageParameterFormatter') --> SourceCode.MessageBus.Server.MessageBusRuntime

2) No valid exports were found that match the constraint '((exportDefinition.ContractName == 'SourceCode.MessageBus.ILoggingService') AndAlso (exportDefinition.Metadata.ContainsKey('ExportTypeIdentity') AndAlso 'SourceCode.MessageBus.ILoggingService'.Equals(exportDefinition.Metadata.get_Item('ExportTypeIdentity'))))', invalid exports may have been rejected.

Resulting in: Cannot set import 'SourceCode.MessageBus.Server.MessageBusRuntime._logging (ContractName='SourceCode.MessageBus.ILoggingService')' on part 'SourceCode.MessageBus.Server.MessageBusRuntime'.
Element: SourceCode.MessageBus.Server.MessageBusRuntime._logging (ContractName='SourceCode.MessageBus.ILoggingService') --> SourceCode.MessageBus.Server.MessageBusRuntime

After these errors, The K2 service runs as usual, with contact to sql database - but I am still worried about the service. Anyone? 

Thanks in advance

Be the first to reply!

Reply