I have a Visual studio project with lots of commercial DLL files that I use in my program. I have used many of these DLL files so far without any problem.
Yesterday I had to use a yet another DLL file. I linked the DLL file as a referense (as usual), I can see it is added to the project since code-completion works and I could build the project successfully.
But when I run this on the target PC, I get a TypeLoadException.
A .NET exception (TypeLoadException) occured in the module
I tried to catch and print the exact information in the exception but I did not help at all.
Below is the complete exception that I receive:
A .NET exception (TypeLoadException) occured in the module LightSwitch\nError message: Could not load type 'Backbone2.LightMode_Status_Ctr_1' from assembly 'Backbone2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.\nThrowing method: DiagModule.SetSwitch\n
(I can not perform any debugging and provide more info, since I build my project as dll which is then used on the target PC, and actually I can run the program on my PC since it is missing all the required hardware)