Вопрос

I'm working on a project where administrators need to be able to add/delete/edit addins. The addins consist of 3 different dll's and 2 configuration files. when the addin hasn't been loaded ever i can delete it. however, when a user is currently using or has used the addin, I am no longer able to remove it without getting an Unauthorized access exception.

I'm able to delete the configuration files but not the dll's.

Is it possible to delete addins completely without restarting IIS or the site?

Thank you in advance!

Это было полезно?

Решение

The unauthorized access exception is likely being thrown because the dll is in use. Even it if wasn't, deleting it would restart your application since ASP.NET monitors assembly and config file changes and automatically restarts the application.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top