0

Dynamics CRM 2011 on premise.

I have a registered plugin DLL that is called when the case/incident entity is created.

An exception is raised when this happens. I am investigating this.

The plugin is on disk (C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly) and I have to update it manually when I want to change the code. (This situation was created before me and I won't change it now.)

Whenever the exception is raised, the DLL becomes locked and the only way I can find to overwrite it is to restart IIS.

How can I unlock the file without restarting IIS?

Responses to answers

Which application pool? enter image description here

None of the pools list the location of the DLL in this list: enter image description here

The DLL is in C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly

4

2 回答 2

3

回收应用程序池。当您回收应用程序池时,它会立即启动一个新的,并让旧的完成,最终杀死任何未在配置的时间内完成的线程。这应该让你不必杀死所有的国际空间站。只要确保等待 w3wp 工作进程终止的时间足够长。

于 2013-09-30T16:06:36.893 回答
0

只需重命名当前正在使用的 dll 并将新的新 dll 转储到那里。它对我有用。

于 2021-01-08T06:22:19.867 回答