Symptoms
In Appit, the following two errors are logged every time I load the service types (open SmartObject tester tool and click on "Register Service Type)
10521 SmartObject Runtime.Management General Error: 'Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.. C:K2Slots4BNSO6YK2 blackpearlServiceBrokerSourceCode.SmartObjects.CRMEntity.dll
Could not load file or assembly 'Microsoft.Crm.Sdk, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
10521 SmartObject Runtime.Management General Error: 'Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.. C:K2Slots4BNSO6YK2 blackpearlServiceBrokerSourceCode.SmartObjects.Services.Oracle.dll
Could not load file or assembly 'Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.
Diagnoses
During install, if you don’t specify CRM integration K2 doesn’t install the CRM redist, and for the Oracle broker Oracle must be installed.
If the above is not done the K2 broker assemblies can’t find the needed dependencies, hence the errors on hostserver.
From an Appit perspective if you use Management pages to access the service types the errors is not thrown as the unsupported brokers will be filtered out.
This only surfaces when using the SmartObject tester tool or Workspace to access / Add Service types.
Resolution
Workaround:
Stop K2 Service, Remove all CRM and Oracle broker files from the ServiceBroker folder, Start K2 Service or you can just ignore the errors, there will be no ill effect.
Logged as a BlackPearl bug.