C# 警告:程序集绑定日志已关闭

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18637013/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-10 12:49:18  来源:igfitidea点击:

WRN: Assembly binding logging is turned OFF

c#wcfwcf-binding

提问by user2750785

I encountered this error,

我遇到了这个错误,

WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

警告:程序集绑定日志已关闭。要启用程序集绑定失败日志记录,请将注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) 设置为 1。

注意:有一些与程序集绑定失败日志相关的性能损失。要关闭此功能,请删除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。

And once I got into the fusion folder, I couldn't find the EnableLogfile, can you please help me?

一旦我进入fusion文件夹,我找不到EnableLog文件,你能帮我吗?

采纳答案by idlemind

You only need to turn assembly bind logging on if you wish to diagnose a problem with loading assemblies. If you need to do this, the best way to turn logging on temporarily is using the Fusion Log Viewer, fuslogvw.exe. Instructions on how to use it can be found here.

如果您希望诊断加载程序集的问题,则只需打开程序集绑定日志记录。如果您需要这样做,暂时打开日志记录的最佳方法是使用 Fusion 日志查看器 fuslogvw.exe。可以在此处找到有关如何使用它的说明

回答by Amit Philips

Updating 'Microsoft.Extensions.Logging.Debug 1.1.0' to 'Microsoft.Extensions.Logging.Debug 1.1.2' solved this problem for me

将 'Microsoft.Extensions.Logging.Debug 1.1.0' 更新为 'Microsoft.Extensions.Logging.Debug 1.1.2' 为我解决了这个问题