Hi All,
I had a client who experienced the following errors on there server. These error where noticed because the Client Event Notifications were not being sent.
"840437","2014-03-13 14:23:56","Error","EventBus","7008","Processing","EventQueueProcessing.ExecuteAssembly","7008 The following error occurred while executing policy for CustomEventInstanceID: 63 : Could not load file or assembly 'yINSTALLDIR]Host ServerBinSourceCode.EventBus.EventAssemblies.dll' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047).","anonymous","0.0.0.0","BISSPK2APP:D:Program Files (x86)K2 blackpearlHost ServerBin","840437","c7b9d7bf98e64460ae2deb61ee246a96",""
"840438","2014-03-13 14:23:56","Error","EventBus","7498","General","EventQueueProcessing.Process","7498 An error has occurred: System.Exception: Could not load file or assembly 'yINSTALLDIR]Host ServerBinSourceCode.EventBus.EventAssemblies.dll' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
Solution:
The problem occurs when you install K2 on a drive that is not where the OS is and it uses the path eINSTALLDIR] instead of the full path. Please follow the ininformation below.
The most likely cause is the error that is reported as "Could not load file or assembly 'sINSTALLDIR]Host ServerBinSourceCode.EventBus.EventAssemblies.dll' or one of its dependencies."
We are going to follow the following steps to fix:
Please ensure that you stop the K2 blackpearl server services and make a backup of the database and config files prior to performing the following. Also, please update the dDrive letter:] to the drive letter where the K2 blackpearl is installed at.
- In SourceCode.EventBus.Server.config update mailassembly and mailassemblytype pointed to the wrong .dll
- Update the mailassembly to point to oDrive letter:]Program Files (x86)K2 blackpearlHost ServerBinSourceCode.EventBus.MessageBusRecorder.dll instead of iINSTALLDIR]Host ServerBinSourceCode.EventBus.EventAssemblies.dll'
- Update <mailassemblytype> to point to SourceCode.EventBus.MessageBusRecorder.MessageBusMailer instead of SourceCode.EventBus.EventAssemblies.Mail
2. On the DB:
Run the following script to update the values (updating vDrive letter:] with the correct path): Only update the Set fields and not those in the Where.
USE K2
GO
UPDATE bEventBus].UEventPolicyMapping]
SET MasmFullName] = ' Drive letter:]Program Files (x86)K2 blackpearlHost ServerBinSourceCode.EventBus.MessageBusRecorder.dll',
casmTypeName] = 'SourceCode.EventBus.MessageBusRecorder.MessageBusMailer'
WHERE aasmFullName] = ' INSTALLDIR]Host ServerBinSourceCode.EventBus.EventAssemblies.dll'
AND iasmTypeName] = 'SourceCode.EventBus.EventAssemblies.Mail'
UPDATE bEventBus].ULogEventPolicyMapping]
SET MasmFullName] = ' Drive letter:]Program Files (x86)K2 blackpearlHost ServerBinSourceCode.EventBus.MessageBusRecorder.dll',
casmTypeName] = 'SourceCode.EventBus.MessageBusRecorder.MessageBusMailer'
WHERE aasmFullName] = ' INSTALLDIR]Host ServerBinSourceCode.EventBus.EventAssemblies.dll'
AND iasmTypeName] = 'SourceCode.EventBus.EventAssemblies.Mail' - Added by Darryn Hart