I'm in the process of building a custom web part in Visual Studio 2010 designed simply to report the user ID of anyone who is logged in to one of six computers on my office's network. I have found a third-party library called Cassia which exposes the Windows Terminal Services API. The web part is designed for use on a SharePoint 2010 installation.
During debugging the web part will load properly until the first time any functions from the Cassia library are used, and then I get this error:
FileNotFoundException was unhandled by user code
Could not load file or assembly 'Cassia, Version=184.108.40.206, Culture=neutral, PublicKeyToken=ccc4198e76e8f451' or one of its dependencies. The system cannot find the file specified.
I have the relevant .dll and .xml files saved in \obj\Debug and have used the Solution Explorer to add the Cassia reference from that location. I also obviously have
using Cassia; in my *UserControl.ascx.cs file.
Do I need to save the Cassia .dll in the same location where the default VS2010 assembly reference files are held? Have I made some other mistake?