简体   繁体   中英

BindingFailure was detectedMessage with Mono.Addins

I'm using Mono.Addins for my project. Here my code :

static void Main()
     {
         string modulepath = String.Format("{0}\\{1}", Loader.GetCurrentDirectory(), "modules");
         AddinManager.Initialize(modulepath, modulepath);
         AddinManager.Registry.Update(null); //**Error in here**

    }

I'm get an error :

The assembly with display name 'Mono.Addins.CecilReflector' failed to load in the 'Load' binding context of the AppDomain with ID 2. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Addins.CecilReflector, Version=0.6.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified. File name: 'Mono.Addins.CecilReflector, Version=0.6.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'

Any ideas to solve this problem. Thank in advance.

Yeah my problem is solved by copy file Mono.Addins.CecilReflector to application path. Thank Ieppie.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM