When I am trying to log something from a BizTalk orchestration I am getting below error message in the eventlog.
Error using Info(System.String,System.String): Resolution of the dependency failed, type = "Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter", name = "(none)".
Exception occurred while: while resolving.
Exception is: InvalidOperationException - The type LogWriter cannot be constructed. You must configure the container to supply this value.
-----------------------------------------------
At the time of the exception, the container was:
Resolving Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter,(none)
Inner exception: The type LogWriter cannot be constructed. You must configure the container to supply this value.
For logging in BizTalk orchestration, I have created a custom .net component which is using Microsoft Enterprise Library 5. The configuration of the Entlib logging is there in a dedicated file and from the BizTalk config files BTSNTSvc.exe.config
and BTSNTSvc64.exe.config
, the entlib.config
file is referenced. I am using BizTalk 2016 and VS2015.
I am trying to log a text in a flat text file.