2010-09-25, 01:54 PM
I am writing a plugin that uses external mediainfo.dll. The presence of the dll in the plugin folder results in:
No further plugins from the the data folder are loaded afterwards.
Code:
2010-09-25 15:09:10.097 [DEBUG][1] About to check for plugin interfaces in: C:\Users\Public\NPVR\Plugins\Files\MediaInfo.dll
2010-09-25 15:09:10.113 [ERROR][1] Unexpected error loading plugins: System.BadImageFormatException: Could not load file or assembly '2580480 bytes loaded from NUtility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
File name: '2580480 bytes loaded from NUtility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.BadImageFormatException: Bad IL format.
at System.Reflection.Assembly.nLoadImage(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence evidence, StackCrawlMark& stackMark, Boolean fIntrospection)
at System.AppDomain.Load(Byte[] rawAssembly)
at NUtility.PluginRegistry.LoadPluginsFromRoot(String pluginDirectoryBase)
2010-09-25 15:09:10.113 [DEBUG][1] About to look for plugin directories in: C:\Program Files (x86)\NPVR\Plugins\