Website is running a cached dll somehow after changing it

dwidel picture dwidel · Apr 19, 2011 · Viewed 13.9k times · Source

The situation is I made a minor bug fix to a class, so they want to just deploy the dll affected. They stopped IIS, replaced the dll in the /bin folder of the iis directory for the web site with the new one I gave them, and started iis again. There are multiple servers, but they just changed it on one to try it out. They are still seeing the same error in the eventlog of the server in question. Looking at the stack trace I can tell it is running the old dll.

They've checked the GAC and don't see it there.

I've checked the dll with reflector to verify I gave them the correct new dll.

This is an asp.net 2.0 website and the server is 2003. I'm not sure how it was deployed originally but it has a copy of the old dll in C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\NAME_services#################\assembly\dl3###################\ and in D:\xxxx\Sites\NAME\Services\obj\Release. Could it be using one of these or building the old one or even just caching it in memory?

Answer

3Dave picture 3Dave · Apr 19, 2011

Nuke your temporary asp.net folder contents. Not sure why the update didn't automatically get compiled, though.