471,347 Members | 1,682 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,347 software developers and data experts.

appDomain Unload

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!
Jan 30 '06 #1
1 1518
> 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
Jan 30 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Satinderpal Singh | last post: by
4 posts views Thread by Chris Lacey | last post: by
4 posts views Thread by Mirano | last post: by
2 posts views Thread by Lauren Hines | last post: by
6 posts views Thread by Wal Turner | last post: by
22 posts views Thread by JPSutor | last post: by
3 posts views Thread by Tao | last post: by
2 posts views Thread by Tim | last post: by
reply views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.