Click here to Skip to main content
16,018,418 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
Assembly SampleAssembly ;
SampleAssembly = Assembly.LoadFrom(@"C:\Program Files\Tavultesoft\Keyman\lpng.dll");


when i run these code i got error(Exception) message
System.BadImageFormatException was unhandled
Could not load file or assembly 'file:///C:\Program Files\Tavultesoft\Keyman\lpng.dll' or one of its dependencies. The module was expected to contain an assembly manifest.
Posted

1 solution

Chances are, this DLL file is not a valid .NET assembly. Native OS platform also has DLLs. :-)

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900