I'm sorry if this is a dumb question, but I've been trying for hours with no luck , and maybe one of you can help.
I have a class/library project I made in Visual Studio, a Spreadsheet in the SS namespace. Next, I created a windows form application, I then added the DLL, and put it in my resources menu, and it builds just fine, however, at runtime, I get a TryLoadException, which the documentation seems to say it's not in the assembly, but then why does it compile just fine? Also, I doubt it is a problem with my DLL, as my friend made a similar DLL (matching the same APIs, but build differently, and it works for his windows form application), and I still get the TryLoadException. Any feedback would be greatly appreciated.
Here is the procedure I made.
- Create (and implement) the spreadsheet class.
- Create a new solution and project for the spreadsheet gui.
- In the project, right click and add an existing item, the dll found in the first solutions bin/debug (or bin/release, I tried both) folder. Also added the dll to the references.
Somewhere in the code that get's executed, add the line:
Spreadsheet ss = new Spreadsheet(); // There both in the same namespace already
Build, note that there are no errors.
- Run, execution stops right there with the TryLoadException.
Thank you for your help.