Bug1:
Unhandled Exception:System.IO.FileNotFoundException: Could not load file or assembly 'MLGMisc,Version=7.4.0.0, Culture=neutral, PublicKeyToken=9d6a406f61a3f983' or one ofits dependencies. The system cannot find the file specified.
File name: 'MLGMisc,Version=7.4.0.0, Culture=neutral, PublicKeyToken=9d6a406f61
a3f983'
atMLGLinearClassifierTraining.SGDTrainerBase..ctor()
atMicrosoft.Bing.IQ.Tayan.LinearClassifier.Trainer.Train(String file, Stringoffsets, String model, String[] labels) ind:\src\private\indexgen\Tayan\General\LinearClassifier\Trainer.cs:line 23
atMicrosoft.Bing.IQ.Tayan.LinearClassifier.Program.Main(String[] args) in d:
\src\private\indexgen\Tayan\General\LinearClassifier\Program.cs:line36
WRN: Assemblybinding logging is turned OFF.
To enable assemblybind failure logging, set the registry value[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is someperformance penalty associated with assembly bind failure logging.
To turn this featureoff, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
解决途径:
1.put MLGMISC.dll inbin directory
2.dll file has PublicKeyToken and Version, should use MLGMISC.dll with version 7.4.0.0, or you will get this error.
Bug2:
Unhandled Exception: System.DllNotFoundException: Unable to load DLL'DUPipelineWrapper.dll': The specified module could not be found. (Exceptionfrom HRESULT:
0x8007007E)
atMLGNativeWrapper.MLGBinaryWriter.OpenFile(String fileName)
atMLGNativeWrapper.MLGBinaryWriter..ctor(String fileName) inC:\src\scratch\chengniu\src_spamDetection\3.3Jakarta\MLGNativeWrapper\MLGBinaryWriter.cs:line12
atMLGFilterCompiler.FilterCompilerV3.Compile(String outputFileName) inC:\src\scratch\chengniu\src_spamDetection\3.3Jakarta\MLGFilterCompiler\FilterCompilerV3.cs:line667
atMicrosoft.Bing.IQ.Tayan.NGramCompiler.Program.Main(String[] args) inD:\src\private\indexgen\Tayan\General\NGramCompiler\Program.cs:line 42
解决途径:
报的错误是:没有办法加载DLL,而实际的原因是没有办法找到该DLL文件中调用的其他的一些系统DLL文件
1)下载:Dependency Walker,网址:http://www.dependencywalker.com/.使用该软件打开相应的DLL,缺失的系统文件会被红色标注。
2)将缺失的DLL文件放在windows\System32或者project bin下面。
将DUPipelineWrapper.dll及需要的Dll(红色标识)放在bin下: