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?enter image description here

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

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -