Question : CS0433 error when deploying ASP.NET app, type exists two asp.net temporary files

Frequently when I redeploy .dll files for my asp.net app to the web server i get an error CS0433 that a type exists in two .dll's in c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\.  So far i've resorted to clearing this temporary files directory on the web server when i get this error but i'm trying to figure out how to eliminate this issue so I can automate my deployments.  I precompile my web app and deploy only the updated .dll's each time due to the overall size of the app.  On the web server I have several IIS web sites that all point to the same root directory so I can have multiple SSL identities and often it will only be one of the 6 sites that will have the issue.

My environment consistes of a load balancer with two web servers.  So my deployment process is:
1) take one of the nodes offline in my load balancer
2) copy updated files to the offline web server
3) test the updated sites to ensure deployment doesn't have the error above (if necessary i then have to clear the web server's temporary asp.net files which has been requiring me to perform an IISRESET since the temporary files may still be locked by the asp.net process.  this also requires testing all 6 of the IIS web sites that are pointed to this web directory since each has their own temp files and it's inconsistent about which one, if any, will have the error)
4) once the offline web server is fully updated then I update the load balancer to bring this server back online
5) repeat the update steps to the second server

I'm trying to automate this entire process but have not been able to figure out why I receive the temporary files error.  I thought that the server would update the temporary files automatically after i updated the web site.

Any guidance on my deployment process would be GREATLY appreciated!!!

Answer : CS0433 error when deploying ASP.NET app, type exists two asp.net temporary files

Random Solutions  
 
programming4us programming4us