Updating a DLL in a Production ASP.NET Web Site bin folder

Posted by Josh Stodola on Stack Overflow See other posts from Stack Overflow or by Josh Stodola
Published on 2010-03-31T15:45:04Z Indexed on 2010/03/31 16:03 UTC
Read the original article Hit count: 358

I want to update a class library (a single DLL file) in a production web application. This web app is pre-compiled (published). I read an answer on StackOverflow (sorry, can't seem to find it anymore because the Search function does not work very well), that led me to believe that I could just paste the new DLL in the bin folder and it would be picked up without problems (this would cause the WP to recycle, which is fine with me because we do not use InProc session state).

However, when I tried this, my site blows up and gives a FileLoadException saying that the assembly manifest definition does not match the assembly reference. What in the world is this?! Updating the DLL in Visual Studio and re-deploying the entire site works just fine, but it is a huge pain in the rear. What is the point of having a separate DLL if you have to re-deploy the entire site to implement any changes?

Here's the question: How can I update a DLL on a production web site without breaking the app and without re-deploying all of the files?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about deployment