Im developing WPF application with Visual Studio 2010. For logging am trying to use the Enterprise Library 5.0. I've added
'Microsoft.Practices.EnterpriseLibrary.Logging' in Reference. Then am adding the using Statement as -
using Microsoft.Practices.EnterpriseLibrary.Logging ; and
when I tried to log anything inside the function like say -
Logger.Write("Test Log", "General");
am getting error as follows -
unknown build error, 'cannot resolve dependency to assembly 'Microsoft.Practices.EnterpriseLibrary.common, version =5.0.414.0, culture=neutral, Public Token ='something here' because it has not been preloaded. when using the Reflection only APIs, dependent
assemblies must be pre-loadedor loaded n demand through the ReflectionOnlyAssemblyResolve event.
The one thing I guess Enterprise Lib doesn't work with windows XP so I developed the application on Win7 but getting same error there. I've Enterprise Library installed at location -
C:\Program Files\Microsoft Enterprise Library5.0.
I tried adding settings through 'Microsoft Enterprise 5.0 ConfigurationConsole but no help.