简体   繁体   English

找不到Logger的参考

[英]Can't find reference of Logger

I have changed the project's framework from 3.0 to 4.0 but I am getting reference error of Microsoft.Practices.EnterpriseLibrary.Logging. 我已将项目的框架从3.0更改为4.0,但是我收到了Microsoft.Practices.EnterpriseLibrary.Logging的参考错误。 I couldn't find any other references. 我找不到其他参考。 I am using some of this codes in my program: 我在程序中使用了其中一些代码:

Logger.Write("FaxPro service loop is started.", "FaxProCritical", 0, 0, TraceEventType.Start);

Error: The type or namespace name 'Practices' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) 错误:名称空间“ Microsoft”中不存在类型或名称空间名称“ Practices”(您是否缺少程序集引用?)

You really need to make more effort to present your question and with relevant code, using directives, references and versions of dlls. 您确实需要付出更多的努力,使用指令,dll的引用和版本来提出问题并提供相关代码。 Seriously, people dont have crystal balls. 说真的,人们没有水晶球。

I Assume you mean enterprise LIbrary framework. 我假设您的意思是企业库框架。 People re more likely to help when you put effort into the question. 当您对问题进行努力时,人们更有可能会提供帮助。

Note: The newer Versions of Enterprise Library LogWriter is Abstract. 注意:Enterprise Library LogWriter的较新版本为Abstract。 You call LogWriterImpl. 您调用LogWriterImpl。 Check your references in the assembly. 检查装配体中的参考。 What does the fusion log viewer say. 融合日志查看器怎么说。 (search how to activate if unsure) (搜索不确定时如何激活)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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