> 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.
--
Lasse Vågsæther Karlsen
http://usinglvkblog.blogspot.com/
mailto:la***@vkarlsen.no
PGP KeyID: 0x2A42A1C2