Note

I like to help others because I am Muslim.

Monday, May 18, 2009

My Application is not loading the new Assembly (dll)

if you are trying to update (deploy) your application assemblies (bin directory) in production and you faced one of the follwoing issues:
  1.  Method Not Found Exception.
  2.  Application is loading the old assembly after updating it.
  3. Property Not Found Exception.
  4. Method Paremeters mismatch.
BUT the application is working perfect on your local machine. 
Solution:
Check the GAC (Global Assembly Cache) in c:\windows\assembly there you might find that there is an old version of the assembly you are trying to update in your bin folder. 
you can do one of the follwoing solutions:
  • Right Click and uninstall the assembly from GAC and keep the bin assembly.
  • OR update the GAC assembly by dragging the assembly from bin to the gac folder and release it there.
That it ...
Happy magic coding .... 

0 comments:

Post a Comment