How to delete temporary ASP.net files in a production environment?

后端 未结 1 2007
醉梦人生
醉梦人生 2021-02-13 14:16

I have deployed a new build on Production server, but I dont see the change in this version. I found out that it was caused due to old version of the DLL file under the temporar

1条回答
  •  青春惊慌失措
    2021-02-13 15:20

    When you add new DLLs to the bin folder, they should immediately overwrite the files in the ASP.NET temp folders. I have myself noticed that sometimes (I assume that happend becuase of concurrency issues) the dlls are not loaded into memory.

    If you have access to IIS management console, you could recycle the worker process. That should ensure that new temp assemblies are loaded.

    Also if you change aspx oder ascx files, the resulting assemblies should be automatically replaced in the temp folder. If there is the same problem, I recommend recycling the worker process. Maybe you can integrate this in some automated way in your deployment procedure.

    0 讨论(0)
提交回复
热议问题