I have 2 projects,
The first project C# project where I have a blank form(new project).
I am compiling this form as a dll so I can reference the form.
The VB project is an ExcelDNA project which consists of a custom task pane with a button to open the form,the task pane works fine.
However, I get the following error when clicking the Button:
System.IO.FileNotFoundException: Could not load file or assembly
I can get this to work by creating a UserControl in the VB project, and then accessing it via the Button, however I have the form written in C# already and do not want to convert it to VB.
So the answer to this is to make sure your form Dll is copied to the directory where your Excel Add-In is sitting.