C# Project 问题及解决

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下:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值