.net - Could not load file or assembly 'System.Drawing' or one of its dependencies -


i'm getting error since yesterday , after 'searching trying , crying' i've ended asking question on here.

an unhandled exception of type 'system.invalidoperationexception' occurred in 'project.exe'

the error is: not load file or assembly 'system.drawing, version=4.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a' or 1 of dependencies. system cannot find file specified.

this project set use 3.5-framework. error occurs when form loads, when resources have images or uses graphics in it. (removing form-icon , button-images 'solves' problem). i've allready tried following :

  1. performed 'clean' & 'rebuild' on project
  2. removed system.drawing reference, , added in.
  3. set accessmodifier resource in *.resx 'no code generation'.
  4. searching *resx-file '4.0.0.0' replace '2.0.0.0' '4.0.0.0' not listed anywhere.

this question has been raised in past, yet no suggestions seem fix problem ?

thanks reading. time. bert

i suggest try following

  1. check in ildasm of there dll still references v4.0 of system.drawing dll

  2. add binding redirect in web.config version redirection happens properly.

hth


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

html - grunt SVG to webfont -

c# - SharpSsh Command Execution -