简体   繁体   中英

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. 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?)

You really need to make more effort to present your question and with relevant code, using directives, references and versions of dlls. 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. You call LogWriterImpl. Check your references in the assembly. What does the fusion log viewer say. (search how to activate if unsure)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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