Could not load file or assembly 'StreamBase.SB.Client.dll' or one of its dependencies

Could not load file or assembly 'StreamBase.SB.Client.dll' or one of its dependencies

book

Article ID: KB0073588

calendar_today

Updated On:

Products Versions
TIBCO Streaming 7.x, 10.x

Description

When attempting to run a StreamBase C++ client in Visual Studio, the following error is observed:

Could not load file or assembly 'StreamBase.SB.Client.dll' or one of its dependencies

This error occurs even when the StreamBase client library has been referenced in the Visual Studio project's References.

 

Issue/Introduction

The error "Could not load file or assembly 'StreamBase.SB.Client.dll' or one of its dependencies" in Visual Studio

Resolution

This error can occur if the Platform selected in the project's Properties doesn't match the version of the StreamBase Client library being referenced.  

To ensure the correct platform is selected, right-click on the project's root folder in Visual Studio and find the 'Platform' option at the top of the dialog window.  If you've referenced the 32-bit StreamBase client dll (under $STREAMBASE_HOME/bin/StreamBase.SB.Client.dll) in the project's References, select 'Win32' as the Platform.  If you've referenced the 64-bit StreamBase client dll (under $STREAMBASE_HOME/bin64/StreamBase.SB.Client.dll), select 'x64' as the Platform.

Make sure the Microsoft Visual C++ runtime DLLs are available on this system. Please check this product documentation page TIBCO Streaming > API Guide > Developing StreamBase Client Applications > Redistributing the .NET Client Library for the version of the product you are using for how to obtain the required version of the Microsoft Visual C++ runtime DLLs.