appDomain Unload

G

Guest

How do we know if the appDomain.unload is working? i've tried deleting the
dll inside a program right after unloading the appdomain but there was a
exception.. SystemUnauthorizedAccess. Thanks!
 
?

=?iso-8859-1?Q?Lasse=20V=e5gs=e6ther=20Karlsen?=

How do we know if the appDomain.unload is working? i've tried deleting
the dll inside a program right after unloading the appdomain but there
was a exception.. SystemUnauthorizedAccess. Thanks!

Are you sure you didn't manage to pull the assembly into the main appdomain?
When you debug, see if the output window lists the assembly as being loaded
into the main appdomain.

You can also try enumerating the assemblies in the main appdomain after unloading
the separate one and see if the assembly has been loaded there.

This is the most common error I've encountered when I use separate appdomains.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top