Issue with Domino Objects

I’m developing a small app that has a plug in system for reading address books, one of these will read from an application we have written in notes.

I’m developing the app in C# .NET 3.5.

Basically I have a number of dlls to represent each plugin and it loads the class from the dll using Activator.CreateInstance.

At the minute the dll I’m writing at to interface with our notes app has the simplest code at the minute where the connect routine simply declares a new session;

NotesSession ThisSession = new NotesSession();

If I then reference my DLL directly into the project and us the plugin class it works fine.

If I try to use Activator.CreateInstance(ClassName), I get the following error;

Could not load file or assembly ‘Interop.Domino, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.

This is puzzling me as it has no problems when a direct reference is added. Has anyone else come across the same problem or have any ideas as I’m a little stumped.

Many thanks in advance,

Neil.