Search code examples
c#windows-mobile

Loading dynamic DLL fails with IOException in Windows Mobile


I am new to Windows Mobile development and am running into a DLL issue.

I am using Assembly.LoadFrom() to load a DLL on my handheld and it fails with the following: System.IO.IOException: File or assembly name 'MyCustom.dll', or one of its dependencies, was not found.

The DLL does exist, I am doing a File.Exists() before this. Here is the code I used to get this error: Assembly asb = Assembly.LoadFrom(@"MyCustom.dll");

Any ideas?


Solution

  • Are you supplying the correct path for this file?

    Here is the reference for the method