sql server - Bad Image Format Exception when creating record in database -
i'm using entity framework(model first) in c# project ,and using sql server database.when i'm trying add record in table encounter exception. what's problem?
your error unrelated line. if view documentation exception, says:
the exception thrown when file image of dynamic link library (dll) or executable program invalid.
together message, "bad il range," think have corrupted assembly somewhere.
possible solutions
- look @ exception details determine file exception thrown
- if it's file built project, try clean solution , rebuild
- if it's library, reinstall it
- check if have processing assemblies, obfuscator -- see this post
- last resort: check viruses, hardware issues, , reinstall .net
Comments
Post a Comment