FileNotFound when load assembly with dependency to another domain

一个人想着一个人 提交于 2019-12-03 05:58:56
James Thurley

you don't specify how you're setting up your search paths for your AppDomains so that it can find the DLLs in the Plugins directory, however your problem sounds like it might be very similar to this one I answered yesterday:

AppDomain.Load() fails with FileNotFoundException

Perhaps this also will resolve your issue? Let me know how you get on.

You may want to tell the domain where to load your assemblies from:

AppDomain domain = AppDomain.CreateDomain("tmpDomain", null, new AppDomainSetup { ApplicationBase = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Plugins") });

However, I don't see why you are loading assemblies in current (default) domain and also the tmpDomain.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!