سؤال

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