How do I get the caller ID from the phone line in WPF?

560 views Asked by At

I've tried Tapi3 in WPF, but it gives me the following error:

Could not load file or assembly 'ITapi3.dll' or one of its dependencies. The application has failed to start because its side-by-side configuration is incorrect.

1

There are 1 answers

3
Cody Gray - on strike On BEST ANSWER

The error message means that the DLL you're attempting to use (ITapi3.dll) could not be found by your application.

From the name of the DLL, I assume you're using this library. Make sure that you have compiled the library code into a DLL (or downloaded a pre-build binary from the website), and placed that DLL into your application's directory so that it can find it.

Any time that you use the functionality from a third-party DLL (i.e., something that is not provided as part of the standard .NET Framework), you must distribute that DLL along with your application. Putting it in the same folder as your app is the recommended practice, as it keeps your dependencies from causing conflicts with other applications and makes deployment much easier.