Test.dll is a simplified test case so it does not reference anything. It's placed in the same directory as the C# executable. The same configuration worked on other machines but just not this laptop.
In fact, another C# program that loads a C++ DLL also failed to execute on that machine. It looks like the C# program on that machine is not able to load any C++ DLLs. It can, however, load DLLs written in C# without problems.
Trust level for assemblies located on local disk is set to full trust.
Regards,
James
Main Topics
Browse All Topics





by: angus_young_acdcPosted on 2007-03-30 at 01:15:23ID: 18822087
I cant think of any reason why it wouldnt run on a laptop. Is the test.dll put in the correct directory so that the refernce is right? Does it reference anything that would be missing? Just go through the code making sure that test.dll has nothing missing from its references, and check that it is where it is meant to be for your main project to find it.
I hope this helps